Class TermMappings
Represents a dynamic vocabulary for RDFa.
Inheritance
System.Object
TermMappings
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: VDS.RDF.Parsing
Assembly: dotNetRDF.dll
Syntax
public class TermMappings : IRdfAVocabulary
Constructors
| Improve this Doc View SourceTermMappings()
Creates a new set of Term Mappings.
Declaration
public TermMappings()
TermMappings(String)
Creates a new set of Term Mappings with the given Vocabulary URI.
Declaration
public TermMappings(string vocabUri)
Parameters
Type | Name | Description |
---|---|---|
System.String | vocabUri | Vocabulary URI. |
TermMappings(IRdfAVocabulary)
Creates a new set of Term Mappings from the given Vocabulary.
Declaration
public TermMappings(IRdfAVocabulary vocab)
Parameters
Type | Name | Description |
---|---|---|
IRdfAVocabulary | vocab | Vocabulary. |
Properties
| Improve this Doc View SourceMappings
Gets the Term Mappings.
Declaration
public IEnumerable<KeyValuePair<string, string>> Mappings { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String, System.String>> |
Namespaces
Gets the Namespace Mappings.
Declaration
public IEnumerable<KeyValuePair<string, string>> Namespaces { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String, System.String>> |
VocabularyUri
Gets/Sets the Vocabulary URI.
Declaration
public string VocabularyUri { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceAddNamespace(String, String)
Adds a Namespace to the Vocabulary.
Declaration
public void AddNamespace(string prefix, string nsUri)
Parameters
Type | Name | Description |
---|---|---|
System.String | prefix | Prefix. |
System.String | nsUri | Namespace URI. |
AddTerm(String, String)
Adds a Term to the Vocabulary.
Declaration
public void AddTerm(string term, string uri)
Parameters
Type | Name | Description |
---|---|---|
System.String | term | Term. |
System.String | uri | URI. |
HasTerm(String)
Gets whether the Vocabulary contains a Term.
Declaration
public bool HasTerm(string term)
Parameters
Type | Name | Description |
---|---|---|
System.String | term | Term. |
Returns
Type | Description |
---|---|
System.Boolean |
Merge(IRdfAVocabulary)
Merges another Vocabulary into this one.
Declaration
public void Merge(IRdfAVocabulary vocab)
Parameters
Type | Name | Description |
---|---|---|
IRdfAVocabulary | vocab | Vocabulary. |
ResolveTerm(String)
Resolves a Term in the Vocabulary.
Declaration
public string ResolveTerm(string term)
Parameters
Type | Name | Description |
---|---|---|
System.String | term | Term. |
Returns
Type | Description |
---|---|
System.String |