Interface IRdfAContext
Interface for RDFa Vocabularies.
Namespace: VDS.RDF.Parsing
Assembly: dotNetRdf.dll
Syntax
public interface IRdfAContext
  Properties
| Edit this page View SourceMappings
Gets the Term Mappings.
Declaration
IEnumerable<KeyValuePair<string, string>> Mappings { get; }
  Property Value
| Type | Description | 
|---|---|
| IEnumerable<KeyValuePair<string, string>> | 
NamespaceMap
Gets the namespace mappings.
Declaration
INamespaceMapper NamespaceMap { get; }
  Property Value
| Type | Description | 
|---|---|
| INamespaceMapper | 
Namespaces
Gets the Namespace Mappings.
Declaration
[Obsolete("Use the NamespaceMapper property to access the namespace map")]
IEnumerable<KeyValuePair<string, string>> Namespaces { get; }
  Property Value
| Type | Description | 
|---|---|
| IEnumerable<KeyValuePair<string, string>> | 
VocabularyUri
Gets/Sets the Default Vocabulary URI.
Declaration
string VocabularyUri { get; set; }
  Property Value
| Type | Description | 
|---|---|
| string | 
Remarks
May be NULL if the context does not define a default vocabulary URI.
Methods
| Edit this page View SourceAddNamespace(string, string)
Adds a Namespace to the Vocabulary.
Declaration
void AddNamespace(string prefix, string nsUri)
  Parameters
| Type | Name | Description | 
|---|---|---|
| string | prefix | Prefix.  | 
      
| string | nsUri | Namespace URI.  | 
      
AddTerm(string, string)
Adds a Term to the Vocabulary.
Declaration
void AddTerm(string term, string uri)
  Parameters
| Type | Name | Description | 
|---|---|---|
| string | term | Term.  | 
      
| string | uri | URI.  | 
      
HasTerm(string)
Gets whether a Vocabulary contains a Term.
Declaration
bool HasTerm(string term)
  Parameters
| Type | Name | Description | 
|---|---|---|
| string | term | Term.  | 
      
Returns
| Type | Description | 
|---|---|
| bool | 
Merge(IRdfAContext)
Merges another Vocabulary into this one.
Declaration
void Merge(IRdfAContext vocab)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IRdfAContext | vocab | Vocabulary.  | 
      
ResolveCurie(string, Uri)
Resolve a CURIE using the namespaces defined in this vocabulary.
Declaration
string ResolveCurie(string curie, Uri baseUri)
  Parameters
| Type | Name | Description | 
|---|---|---|
| string | curie | The CURIE string to resolve.  | 
      
| Uri | baseUri | 
Returns
| Type | Description | 
|---|---|
| string | 
ResolveTerm(string)
Resolves a Term in the Vocabulary.
Declaration
string ResolveTerm(string term)
  Parameters
| Type | Name | Description | 
|---|---|---|
| string | term | Term.  | 
      
Returns
| Type | Description | 
|---|---|
| string |