Returns the description (rdfs:comment
) of this Term. It is possible to pass a language tag as parameter to get the description in that language, as long as the vocabulary provides that language. The english ("en"
) language is understood as default.
the wished language for the description (default = "en"
)
The description of this Term
Returns all descriptions (rdfs:comment
) of this Term as an Object. Each description (value) has a language tag (key) associated with it. Language tags are unique for each term (e.g. there is at most one description for any given language)
The descriptions of this Term
Retrieves the classes and enumerations that are defined as domains for this Property
an optional parameter object that filters and formats the result, and defines the inference behaviour: The "implicit"-parameter defaults to true and returns also implicit domains inherited from subclasses of the domains
The domains of this Property
Retrieves the IRI of this Term in compact (e.g. schema:Friday
) or in absolute form (e.g. https://schema.org/Friday
). By default, the absolute form is returned
states the format of the returned IRI, either "Compact" for the compact form, e.g. schema:Friday
, or "Absolute" for the absolute form, e.g. https://schema.org/Friday
The IRI of this Term
Retrieves the inverse Property of this Property
states the format of the returned IRI, either "Compact" for the compact form, e.g. schema:alumni
, or "Absolute" for the absolute form, e.g. https://schema.org/alumni
The IRI of the inverse Property of this Property, if any
Returns the name (rdfs:label
) of this Term. It is possible to pass a language tag as parameter to get the name in that language, as long as the vocabulary provides that language. The english ("en"
) language is understood as default.
the wished language for the name (default = "en"
)
The name of this Term
Returns all names (rdfs:label
) of this Term as an Object. Each name (value) has a language tag (key) associated with it. Language tags are unique for each term (e.g. there is at most one name for any given language).
The names (with language tag) of this Term
Retrieves the classes, enumerations, and data-types that are defined as ranges for this Property
an optional parameter object that filters and formats the result, and defines the inference behaviour: The "implicit"-parameter defaults to true and returns also implicit ranges inherited from subclasses of the ranges
The ranges of this Property
This method was introduced mainly to return of source(s) for a term, as defined in the vocabulary itself with dcterms:source
or schema:source
. The later has been used to link to related github issues for the schema.org vocabulary.
The source IRI given by dcterms:source
or schema:source
of this Term
Retrieves the sub-properties of this Property
an optional parameter object that filters and formats the result, and defines the inference behaviour: The "implicit"-parameter defaults to true and returns also implicit sub-properties inherited recursively from sub-properties
The sub-properties of this Property
Retrieves the super-properties of this Property
an optional parameter object that filters and formats the result, and defines the inference behaviour: The "implicit"-parameter defaults to true and returns also implicit super-properties inherited recursively from super-properties
The super-properties of this Property
Retrieves the compact IRI for the type of this Term:
Class ->
"rdfs:Class"
Property ->"rdf:Property"
Enumeration ->"schema:Enumeration"
EnumerationMember ->"soa:EnumerationMember"
DataType ->"schema:DataType"
The term-type-IRI of this Term
Retrieves the label (string) for the type of this Term:
Class ->
"Class"
Property ->"Property"
Enumeration ->"Enumeration"
EnumerationMember ->"EnumerationMember"
DataType ->"DataType"
The term-type-label of this Term
Returns the URL of all vocabularies in which this term has been defined. Works only if the corresponding vocabulary was added through a URL, and not as a JSON-LD object.
The original vocabulary source urls of this Term
This method was introduced mainly to return the vocabulary extension URL of schema.org to which the term belongs. The extension URL is defined in the vocabulary through the schema:isPartOf
property. If no such property is given, then the namespace URL for this term is returned.
The vocabulary URL of this term (extension or namespace)
Returns the IRI of the Term superseding this Term (defined with schema:supersededBy
), if any. By default, the IRI is returned in compact form
states the format of the returned IRI, either "Compact" for the compact form, e.g. schema:softwareRequirements
, or "Absolute" for the absolute form, e.g. https://schema.org/softwareRequirements
The Term superseding this Term, if any
Returns true, if the given domain (class or enumeration) is a valid domain of this property. The implicit parameter (default: true) allows to cover recursive relationships (e.g. the subclasses of a domain are also taken into account)
The identification string of the domain in question, can be an IRI (absolute or compact) or a label
If true, includes also subclasses of domains
if the given class/enumeration is a valid domain of this property
Returns true, if the given property is the inverse property of this property
The identification string of the inverse property in question, can be an IRI (absolute or compact) or a label
if the given property is the inverse property of this property
Returns true, if the given term (Class, Enumeration, DataType) is a valid range of this property. The implicit parameter (default: true) allows to cover recursive relationships (e.g. the subclasses/types of a range are also taken into account)
The identification string of the range in question, can be an IRI (absolute or compact) or a label
If true, includes also subclasses of ranges
if the given class/enumeration/dataType is a valid range of this property
Returns true, if the given property is a valid super-property of this property. The implicit parameter (default: true) allows to cover recursive relationships (e.g. the super-properties of a super-property are also taken into account)
The identification string of the super-property in question, can be an IRI (absolute or compact) or a label
If true, includes also super-properties of super-properties
if the given property is a valid super-property of this property
Returns true, if the given property is a valid sub-property of this property. The implicit parameter (default: true) allows to cover recursive relationships (e.g. the sub-properties of a sub-property are also taken into account)
The identification string of the sub-property in question, can be an IRI (absolute or compact) or a label
If true, includes also sub-properties of sub-properties
if the given property is a valid sub-property of this property
Generates a JSON representation of this Property (as JavaScript Object)
an optional parameter object that filters and formats the result, and defines the inference behaviour: The "implicit"-parameter defaults to true and returns also implicit data (e.g. domains, ranges, etc.)
The JSON representation of this Property as JavaScript Object
Generates a JSON representation of this Property (as string)
Check .toJSON() for an example output
an optional parameter object that filters and formats the result, and defines the inference behaviour: The "implicit"-parameter defaults to true and returns also implicit data (e.g. domains, ranges, etc.)
The JSON representation of this Property as string
A Property represents a property term, which is used to describe a relationship between subject resources (their domains) and object resources (their ranges). A Property is identified by its IRI (e.g. schema:name), where, by convention, the property name itself starts with a lowercase letter. A Property instance is created with SDOAdapter.getProperty() and offers the methods described below.