diff --git a/registereditems/ogc-utils/iri-or-curie/examples.yaml b/registereditems/ogc-utils/iri-or-curie/examples.yaml index a93cd725e..85ae3b683 100644 --- a/registereditems/ogc-utils/iri-or-curie/examples.yaml +++ b/registereditems/ogc-utils/iri-or-curie/examples.yaml @@ -50,3 +50,22 @@ "another-document#ref" ] schema-ref: '#/$defs/Multiple' + +- title: JSON-LD CURIE example + snippets: + - language: jsonld + code: | + { + "@context": { + "ex": "http://example.com/", + "dct": { + "@id": "http://purl.org/dc/terms/", + }, + "dct:conformsTo": { + "@type": "@id" + } + }, + "@id": "ex:feature1", + "dct:conformsTo": "ex:profile2" + } + schema-ref: 'jsonld-example-schema.yaml' \ No newline at end of file diff --git a/registereditems/ogc-utils/iri-or-curie/jsonld-example-schema.yaml b/registereditems/ogc-utils/iri-or-curie/jsonld-example-schema.yaml new file mode 100644 index 000000000..8e7f0f0a7 --- /dev/null +++ b/registereditems/ogc-utils/iri-or-curie/jsonld-example-schema.yaml @@ -0,0 +1,7 @@ +$schema: https://json-schema.org/draft/2020-12/schema +type: object +properties: + "@id": + $ref: schema.yaml + "dct:conformsTo": + $ref: schema.yaml \ No newline at end of file