Class JsonLdTermDefinition
Represents a term definition in a context.
Inheritance
Inherited Members
Namespace: VDS.RDF.JsonLd
Assembly: dotNetRdf.dll
Syntax
public class JsonLdTermDefinition
Constructors
| Improve this Doc View SourceJsonLdTermDefinition()
Create a new term definition.
Declaration
public JsonLdTermDefinition()
Properties
| Improve this Doc View SourceBaseUrl
Get or set the base URL for the term.
Declaration
public Uri BaseUrl { get; set; }
Property Value
Type | Description |
---|---|
System.Uri |
ContainerMapping
Get or set the container mapping for this term definition.
Declaration
public ISet<JsonLdContainer> ContainerMapping { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.ISet<T><JsonLdContainer> |
DirectionMapping
Get or set the text direction mapping for this term definition.
Declaration
public LanguageDirection? DirectionMapping { get; set; }
Property Value
Type | Description |
---|---|
LanguageDirection? |
HasLanguageMapping
Boolean flag indicating if this term definition specifies a language mapping.
Declaration
public bool HasLanguageMapping { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IndexMapping
Get or set the index mapping for this term definition.
Declaration
public string IndexMapping { get; set; }
Property Value
Type | Description |
---|---|
string |
IriMapping
Get or set the IRI mapping for the term.
Declaration
public string IriMapping { get; set; }
Property Value
Type | Description |
---|---|
string |
LanguageMapping
Get or set the language mapping for this term definition.
Declaration
public string LanguageMapping { get; set; }
Property Value
Type | Description |
---|---|
string |
Remarks
May be null. MUST be null if TypeMapping is not null.
LocalContext
Get or set the context specified for this term definition.
Declaration
public JToken LocalContext { get; set; }
Property Value
Type | Description |
---|---|
Newtonsoft.Json.Linq.JToken |
Nest
Get or set the nest property for this term definition.
Declaration
public string Nest { get; set; }
Property Value
Type | Description |
---|---|
string |
Prefix
Get or set the prefix flag for the term.
Declaration
public bool Prefix { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Protected
Get or set the protected flag for the term.
Declaration
public bool Protected { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Reverse
Indicates if this term represents a reverse property.
Declaration
public bool Reverse { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
TypeMapping
Get or set the type mapping for this term definition.
Declaration
public string TypeMapping { get; set; }
Property Value
Type | Description |
---|---|
string |
Remarks
May be null. MUST be null if LanguageMapping is not null.
Methods
| Improve this Doc View SourceClone()
Create a clone of this term definition.
Declaration
public JsonLdTermDefinition Clone()
Returns
Type | Description |
---|---|
JsonLdTermDefinition |
EquivalentTo(JsonLdTermDefinition)
Determines whether this term definition is the same as another term definition in all respects other than its Protected attribute value.
Declaration
public bool EquivalentTo(JsonLdTermDefinition other)
Parameters
Type | Name | Description |
---|---|---|
JsonLdTermDefinition | other |
Returns
Type | Description |
---|---|
System.Boolean | True if the term definitions are the same in all respects other than the value of Protected, false otherwise. |