Show / Hide Table of Contents

Class XHtmlRdfAVocabulary

Vocabulary for XHTML+RDFa (and HTML+RDFa).

Inheritance
System.Object
XHtmlRdfAVocabulary
Implements
IRdfAVocabulary
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VDS.RDF.Parsing
Assembly: dotNetRdf.dll
Syntax
public class XHtmlRdfAVocabulary : IRdfAVocabulary

Properties

| Improve this Doc View Source

Mappings

Gets the Term Mappings.

Declaration
public IEnumerable<KeyValuePair<string, string>> Mappings { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<T><KeyValuePair<string, string>>
| Improve this Doc View Source

Namespaces

Gets the Namespace Mappings.

Declaration
public IEnumerable<KeyValuePair<string, string>> Namespaces { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<T><KeyValuePair<string, string>>
| Improve this Doc View Source

VocabularyUri

Gets/Sets the Vocabulary URI.

Declaration
public string VocabularyUri { get; set; }
Property Value
Type Description
string
Exceptions
Type Condition
System.NotSupportedException

Set throws this since this vocabulary is fixed and cannot be changed.

Methods

| Improve this Doc View Source

AddNamespace(string, string)

Adds a Namespace to the Vocabulary.

Declaration
public void AddNamespace(string prefix, string nsUri)
Parameters
Type Name Description
string prefix

Prefix.

string nsUri

Namespace URI.

Exceptions
Type Condition
System.NotSupportedException

Thrown since this vocabulary is fixed and cannot be changed.

| Improve this Doc View Source

AddTerm(string, string)

Adds a Term to the Vocabulary.

Declaration
public void AddTerm(string term, string uri)
Parameters
Type Name Description
string term

Term.

string uri

URI.

Exceptions
Type Condition
System.NotSupportedException

Thrown since this vocabulary is fixed and cannot be changed.

| Improve this Doc View Source

HasTerm(string)

Gets whether the Vocabulary contains a Term.

Declaration
public bool HasTerm(string term)
Parameters
Type Name Description
string term

Term.

Returns
Type Description
System.Boolean
| Improve this Doc View Source

Merge(IRdfAVocabulary)

Merges another Vocabulary into this one.

Declaration
public void Merge(IRdfAVocabulary vocab)
Parameters
Type Name Description
IRdfAVocabulary vocab

Vocabulary.

Exceptions
Type Condition
System.NotSupportedException

Thrown since this vocabulary is fixed and cannot be changed.

| Improve this Doc View Source

ResolveTerm(string)

Resolves a Term in the Vocabulary.

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

Term.

Returns
Type Description
string

Implements

IRdfAVocabulary

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Properties
    • Mappings
    • Namespaces
    • VocabularyUri
  • Methods
    • AddNamespace(string, string)
    • AddTerm(string, string)
    • HasTerm(string)
    • Merge(IRdfAVocabulary)
    • ResolveTerm(string)
  • Implements
  • Extension Methods
Back to top Generated by DocFX