Skip to content

Default context

$type worked on the Contexts page because sparqld embeds this context and applies it to every JSON-LD, YAML-LD, and Markdown-LD source before the source's own @context. Sources do not fetch it. Turtle and TriG have no @context. Other processors can load the context file from https://sparqld.iolanta.tech/contexts/v1.yamlld. See SPARQL prefixes for the prefixes available to queries.

https://sparqld.iolanta.tech/contexts/v1.yamlld v1.yamlld

# The sparqld default context, version 1.
#
# sparqld applies this context to every JSON-LD, YAML-LD, and Markdown-LD
# source before the source's own `@context`, so the source can override any
# term below. sparqld embeds this file and does not download it.
"@context":
  # Stable W3C namespace prefixes.
  rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns#
  rdfs: http://www.w3.org/2000/01/rdf-schema#
  xsd: http://www.w3.org/2001/XMLSchema#

  # Dollar aliases from https://json-ld.org/contexts/dollar-convenience.jsonld.
  # A YAML key cannot start with `@`, so `$id` stands in for `@id`, and so on.
  $always: "@always"
  $base: "@base"
  $container: "@container"
  $direction: "@direction"
  $embed: "@embed"
  $explicit: "@explicit"
  $graph: "@graph"
  $id: "@id"
  $import: "@import"
  $included: "@included"
  $index: "@index"
  $json: "@json"
  $language: "@language"
  $list: "@list"
  $nest: "@nest"
  $never: "@never"
  $none: "@none"
  $null: "@null"
  $omitDefault: "@omitDefault"
  $once: "@once"
  $prefix: "@prefix"
  $propagate: "@propagate"
  $protected: "@protected"
  $requireAll: "@requireAll"
  $reverse: "@reverse"
  $set: "@set"
  $type: "@type"
  $value: "@value"
  $version: "@version"
  $vocab: "@vocab"

A null in @context discards the default and every definition before it.

Listing the address https://sparqld.iolanta.tech/contexts/v1.yamlld in @context records a jsonld:context edge in the file catalog. Applying the embedded default does not add this edge. The embedded context takes precedence over a registration at the same address.

Contexts · Remote contexts