Class JsonLdTermDefinition
Represents a term definition in a context.
Inherited Members
Namespace: VDS.RDF.JsonLd
Assembly: dotNetRdf.dll
Syntax
public class JsonLdTermDefinition
Constructors
| Edit this page View SourceJsonLdTermDefinition()
Create a new term definition.
Declaration
public JsonLdTermDefinition()
Properties
| Edit this page View SourceBaseUrl
Get or set the base URL for the term.
Declaration
public Uri BaseUrl { get; set; }
Property Value
Type | Description |
---|---|
Uri |
ContainerMapping
Get or set the container mapping for this term definition.
Declaration
public ISet<JsonLdContainer> ContainerMapping { get; }
Property Value
Type | Description |
---|---|
ISet<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 |
---|---|
bool |
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 |
---|---|
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 |
---|---|
bool |
Protected
Get or set the protected flag for the term.
Declaration
public bool Protected { get; set; }
Property Value
Type | Description |
---|---|
bool |
Reverse
Indicates if this term represents a reverse property.
Declaration
public bool Reverse { get; set; }
Property Value
Type | Description |
---|---|
bool |
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
| Edit this page 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 |
---|---|
bool | True if the term definitions are the same in all respects other than the value of Protected, false otherwise. |