imagine i have a following markup(respec/bikeshed like):
<spec-statement id="payload-context-uri"> A Payload document serialized as application/ld+json MUST include "@context": "https://ujg.specs.openuji.org/ed/context.jsonld". </spec-statement>
<spec-statement id="context-definition"> The JSON-LD context document identified by https://ujg.specs.openuji.org/ed/context.jsonld MUST be equivalent to the JSON-LD context defined in [=jsonld-context=]. </spec-statement>
<def id="jsonld-context" as="pre" lang="jsonld"> { "@context": {
"@version": 1.1,
"@vocab": "https://ujg.specs.openuji.org/ed/ns/core#",
"specVersion": "https://ujg.specs.openuji.org/ed/ns/core#specVersion",
"imports": {
"@id": "https://ujg.specs.openuji.org/ed/ns/core#documentImports",
"@type": "@id",
"@container": "@set"
},
"nodes": {
"@id": "https://ujg.specs.openuji.org/ed/ns/core#documentNodes",
"@container": "@set"
}
} } </def>
a resulting json-ld describing this as knowledge graph would be:
{
“@context”: {
“dct”: “http://purl.org/dc/terms/”,
“spec”: “http://www.w3.org/ns/spec#”,
“skos”: “http://www.w3.org/2004/02/skos/core#”,
“jsonld”: “http://www.w3.org/ns/json-ld#”,
“id”: “@id”,
“type”: “@type”
},
“@graph”: [
{
“id”: “https://ujg.specs.openuji.org/ed/”,
“type”: “spec:Specification”,
“dct:title”: “UJG Editor’s Draft”,
“spec:requirement”: [
{ “id”: “https://ujg.specs.openuji.org/ed/#payload-context-uri” },
{ “id”: “https://ujg.specs.openuji.org/ed/#context-definition” }
]
},
{
"id": "https://ujg.specs.openuji.org/ed/#jsonld-context",
"type": "skos:Concept",
"skos:prefLabel": "Payload document",
"jsonld:context": {
"id": "https://ujg.specs.openuji.org/ed/context.jsonld"
}
},
{
"id": "https://ujg.specs.openuji.org/ed/#payload-context-uri",
"type": "spec:Requirement",
"spec:requirementSubject": {
"id": "https://ujg.specs.openuji.org/ed/#jsonld-context"
},
"spec:requirementLevel": { "id": "spec:MUST" },
"spec:statement": "A Payload document serialized as application/ld+json MUST include \"@context\": \"https://ujg.specs.openuji.org/ed/context.jsonld\"."
},
{
"id": "https://ujg.specs.openuji.org/ed/#context-definition",
"type": "spec:Requirement",
"spec:requirementLevel": { "id": "spec:MUST" },
"spec:statement": "The JSON-LD context document identified by https://ujg.specs.openuji.org/ed/context.jsonld MUST be equivalent to the JSON-LD context defined in #jsonld-context."
},
{
"id": "https://ujg.specs.openuji.org/ed/context.jsonld",
"type": "jsonld:Context",
"jsonld:version": 1.1,
"jsonld:vocab": "https://ujg.specs.openuji.org/ed/ns/core#",
"jsonld:definition": [
{
"type": "jsonld:TermDefinition",
"jsonld:term": "specVersion",
"jsonld:id": "https://ujg.specs.openuji.org/ed/ns/core#specVersion"
},
{
"type": "jsonld:TermDefinition",
"jsonld:term": "imports",
"jsonld:id": "https://ujg.specs.openuji.org/ed/ns/core#documentImports",
"jsonld:type": "@id",
"jsonld:container": "jsonld:setContainerType"
},
{
"type": "jsonld:TermDefinition",
"jsonld:term": "nodes",
"jsonld:id": "https://ujg.specs.openuji.org/ed/ns/core#documentNodes",
"jsonld:container": "jsonld:setContainerType"
}
]
}
]
}
is it true? or am i missing smth.