Show / Hide Table of Contents

Interface IRdfAContext

Interface for RDFa Vocabularies.

Namespace: VDS.RDF.Parsing
Assembly: dotNetRdf.dll
Syntax
public interface IRdfAContext

Properties

| Edit this page View Source

Mappings

Gets the Term Mappings.

Declaration
IEnumerable<KeyValuePair<string, string>> Mappings { get; }
Property Value
Type Description
IEnumerable<KeyValuePair<string, string>>
| Edit this page View Source

NamespaceMap

Gets the namespace mappings.

Declaration
INamespaceMapper NamespaceMap { get; }
Property Value
Type Description
INamespaceMapper
| Edit this page View Source

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>>
| Edit this page View Source

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 Source

AddNamespace(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.

| Edit this page View Source

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.

| Edit this page View Source

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
| Edit this page View Source

Merge(IRdfAContext)

Merges another Vocabulary into this one.

Declaration
void Merge(IRdfAContext vocab)
Parameters
Type Name Description
IRdfAContext vocab

Vocabulary.

| Edit this page View Source

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
| Edit this page View Source

ResolveTerm(string)

Resolves a Term in the Vocabulary.

Declaration
string ResolveTerm(string term)
Parameters
Type Name Description
string term

Term.

Returns
Type Description
string

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Properties
    • Mappings
    • NamespaceMap
    • Namespaces
    • VocabularyUri
  • Methods
    • AddNamespace(string, string)
    • AddTerm(string, string)
    • HasTerm(string)
    • Merge(IRdfAContext)
    • ResolveCurie(string, Uri)
    • ResolveTerm(string)
  • Extension Methods
Back to top Generated by DocFX