From d1250faeb87bdf08e08a6a8924c453266307e06c Mon Sep 17 00:00:00 2001
From: Gregg Kellogg These are used within this document as part of a compact IRI
as a shorthand for the resulting absolute IRI, such as JSON-LD mostly uses the JSON syntax [[RFC8259]] along with
- various micro-syntaxes based on XML Schema datatypes [[XMLSCHEMA11-2]].
- However, it has become increasingly common to include JSON within
- a script element
- within an HTML document [[HTML]],
- as described in .
- As not all processors operate in an environment which can include HTML,
- this specification describes various categories of JSON-LD processors. A pure JSON Processor only requires the use of a
- JSON processor and is restricted to processing documents retrieved
- with a JSON content type (e.g., A full Processor is capable of processing JSON-LD embedded in HTML,
- in addition to the capabilities of a pure JSON Processor. In addition to the normatively defined processor levels, an additional processor
- level is defined for reference. A event-based JSON Processor processes a stream of characters
- expecting an event after each syntactic element is encountered.
- Such processors are sensitive to the order of the members of JSON objects,
- which can have a performance impact if the members of JSON objects are encountered in an unexpected order.
- An event-based JSON Processor may process JSON-LD embedded in HTML. An event-based JSON Processor
- may be sensitive to processing certain keywords in order, including
- Syntax Tokens and Keywords
dcterms:title
used to represent http://purl.org/dc/terms/title
.Processor Levels
-
-
-
- application/ld+json
or other JSON type).Additional Processor Levels
-
- @context
, @id
, and @type
.Graph Containers
of JSON-LD (see ).
This includes a general mechanism for loading remote documents,
including referenced JSON-LD documents and remote contexts,
- and extracting embedded JSON-LD from other formats such as [[HTML]].
+ and potentially extracting embedded JSON-LD from other formats such as [[HTML]].
This is more fully described in
Remote Document and Context Retrieval
in [[JSON-LD11-API]].
This section describes features available to a full Processor.
+This section describes features available + with a documentLoader supporting HTML script extraction. + See Remote Document and Context Retrieval + for more information.
JSON-LD content can be easily embedded in HTML [[HTML]] by placing @@ -12734,7 +12691,7 @@
rdf:JSON
datatype.
application/ld+json;profile=http://www.w3.org/ns/json-ld#frame
.