Embedded JSON LD - NatLibFi/Skosmos GitHub Wiki

Requirements and definition

As of Skosmos 2.0, every concept page has its graph as JSON-LD embedded into the HTML source that will also be available to both search engines and Skosmos plugins. The JSON-LD data will be wrapped within a <script type="application/ld+json"> tag.

External data included in the JSON-LD graph

When a concept is mapped to external resources using SKOS mapping properties, some data from the external resources will be fetched and included in the embedded JSON-LD graph. A default set of properties is defined in model/Concept.php that will be included in the embedded JSON-LD graph for all mapped external objects. CBD algorithm is applied.

Customization

Vocabularies

Vocabularies can define default external mapped properties to be included in the embedded JSON-LD graph via skosmos:externalProperty.

Plugins

Plugins can request specific external mapped properties to be included in the embedded JSON-LD graph via ext-properties array, defined in the plugin.js.