This method allows the addition of vocabularies after the SDOAdapter instance has been initialized, as an alternative to the vocabulary addition during initialization. You have to pass the vocabularies either as a JSON-LD vocabularies, or as URLs pointing at such JSON-LD vocabularies. The function .constructURLSchemaVocabulary() helps you to construct URLs for the schema.org vocabulary.
The vocabularies to add the graph. Given directly as JSON-LD or as an URL to fetch.
This is an async function, returns true
when done.
Creates a URL pointing to the Schema.org vocabulary for the wished version. This URL can then be added to the SDOAdapter to retrieve the Schema.org vocabulary. The Schema.org version listing at https://raw.githubusercontent.com/schemaorg/schemaorg/main/versions.json is used for this function. Check https://schema.org/docs/developers.html for more information. The internal cache is used for this function. If you want to reset the cache, use the global library function .fetchSchemaVersions().
The wished Schema.org vocabulary version for the resulting URL (e.g. "5.0", "3.7", or "latest"). default: "latest"
The URL to the Schema.org vocabulary
Creates an array of Class instances of all class terms (excluding Enumerations) known to this SDOAdapter. Depending on the amount of classes, this method could require a lot of resources. If you only need a list of all classes (IRIs), use the method .getListOfClasses() instead.
The filter to be applied on the result
An array of Class instances representing all class terms
Creates an array of DataType instances of all data-type terms known to this SDOAdapter. Depending on the amount of data-types, this method could require a lot of resources. If you only need a list of all data-types (IRIs), use the method .getListOfDataTypes() instead.
The filter to be applied on the result
An array of DataType instances representing all data-type terms
Creates an array of EnumerationMember instances of all enumeration member terms known to this SDOAdapter. Depending on the amount of enumeration members, this method could require a lot of resources. If you only need a list of all enumeration members (IRIs), use the method .getListOfEnumerationMembers() instead.
The filter to be applied on the result
An array of EnumerationMember instances representing all enumeration member terms
Creates an array of Enumeration instances of all enumeration terms known to this SDOAdapter. Depending on the amount of enumerations, this method could require a lot of resources. If you only need a list of all enumerations (IRIs), use the method .getListOfEnumerations() instead.
The filter to be applied on the result
An array of Enumeration instances representing all enumeration terms
Creates an array of Property instances of all property terms known to this SDOAdapter. Depending on the amount of properties, this method could require a lot of resources. If you only need a list of all properties (IRIs), use the method .getListOfProperties() instead.
The filter to be applied on the result
An array of Property instances representing all property terms
Creates an array of term instances (corresponding to their term-types) of all vocabulary Terms known to this SDOAdapter. Depending on the amount of terms, this method could require a lot of resources. If you only need a list of all terms (IRIs), use the method .getListOfTerms() instead.
The filter to be applied on the result
An array of term instances representing all vocabulary terms
Creates a Class instance for the given IRI. If the given IRI belongs to an Enumeration, an Enumeration instance is returned.
The identification string of the wished Class, can be an IRI (absolute or compact) or a label
The filter to be applied on the result
The Class instance for the given IRI
Creates a DataType instance for the given IRI.
The identification string of the wished DataType, can be an IRI (absolute or compact) or a label
The filter to be applied on the result
The DataType instance for the given IRI
Returns the default filter specified for this SDOAdapter, if any
The default filter of this SDOAdapter, if any
Creates an Enumeration instance for the given IRI.
The identification string of the wished Enumeration, can be an IRI (absolute or compact) or a label
The filter to be applied on the result
The Enumeration instance for the given IRI
Creates an EnumerationMember instance for the given IRI.
The identification string of the wished EnumerationMember, can be an IRI (absolute or compact) or a label
The filter to be applied on the result
The EnumerationMember instance for the given IRI
Returns the latest version identifier for the schema.org vocabulary. The internal cache is used for this function. If you want to reset the cache, use the global library function .fetchSchemaVersions().
The latest version of the schema.org vocabulary
Creates an array of IRIs of all class terms (excluding Enumerations) known to this SDOAdapter.
an optional parameter object that filters and formats the result
An array of IRIs representing all class terms
Creates an array of IRIs of all data-type terms known to this SDOAdapter.
an optional parameter object that filters and formats the result
An array of IRIs representing all data-type terms
Creates an array of IRIs of all enumeration member terms known to this SDOAdapter.
an optional parameter object that filters and formats the result
An array of IRIs representing all enumeration member terms
Creates an array of IRIs of all enumeration terms known to this SDOAdapter.
an optional parameter object that filters and formats the result
An array of IRIs representing all enumeration terms
Creates an array of IRIs of all property terms known to this SDOAdapter.
an optional parameter object that filters and formats the result
An array of IRIs representing all property terms
Creates an array of IRIs of all vocabulary Terms known to this SDOAdapter.
an optional parameter object that filters and formats the result
An array of IRIs representing all vocabulary terms
Creates a Property instance for the given IRI.
The identification string of the wished Property, can be an IRI (absolute or compact) or a label
The filter to be applied on the result
The Property instance for the given IRI
Creates a corresponding term instance for the given IRI, depending on its term-type.
The identification string of the wished Term, can be an IRI (absolute or compact) or a label
The filter to be applied on the result
The term instance for the given IRI
Returns an object with key-value pairs representing the vocabulary indicators (used in compact IRIs) and their namespaces, that are used in this SDOAdapter. Vocabularies that are perceived as standard namespaces (e.g. in the context of schema.org or sdo-adapter), and not as vocabularies for the content of SDOAdapter are omitted by default, you can change this behaviour by passing the argument omitStandardVocabs: false
.
An object containing key-value pairs representing the used vocabulary namespaces
Overwrites the default filter for this SDOAdapter. The default filter is not supposed to change often, and should be set during the creation of a SDOAdapter instance.
The default filter for this SDOAdapter (pass no parameter to reset the filter)
An SDOAdapter is an instance of the library itself that holds its own settings and vocabularies (specified by the user). Based on these internal settings and vocabularies the SDOAdapter provides corresponding data through the methods described below (an SDOAdapter can only provide data about a vocabulary, if that vocabulary has been added to the instance). An SDOAdapter instance is created with .create(), have a look at the different settings.