Interface IRdfAVocabulary
Interface for RDFa Vocabularies.
Namespace: VDS.RDF.Parsing
Assembly: dotNetRdf.dll
Syntax
public interface IRdfAVocabulary
Properties
| Improve this Doc View SourceMappings
Gets the Term Mappings.
Declaration
IEnumerable<KeyValuePair<string, string>> Mappings { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<T><KeyValuePair<string, string>> |
Namespaces
Gets the Namespace Mappings.
Declaration
IEnumerable<KeyValuePair<string, string>> Namespaces { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<T><KeyValuePair<string, string>> |
VocabularyUri
Gets/Sets the Vocabulary URI.
Declaration
string VocabularyUri { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
| Improve this Doc 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 |
|---|---|
| System.Boolean |
Merge(IRdfAVocabulary)
Merges another Vocabulary into this one.
Declaration
void Merge(IRdfAVocabulary vocab)
Parameters
| Type | Name | Description |
|---|---|---|
| IRdfAVocabulary | vocab | Vocabulary. |
ResolveTerm(string)
Resolves a Term in the Vocabulary.
Declaration
string ResolveTerm(string term)
Parameters
| Type | Name | Description |
|---|---|---|
| string | term | Term. |
Returns
| Type | Description |
|---|---|
| string |