Skip to content

Commit

Permalink
Add JSON-LD example to uri-or-curie
Browse files Browse the repository at this point in the history
  • Loading branch information
avillar committed Sep 29, 2023
1 parent 88a4397 commit 37ebd0a
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
19 changes: 19 additions & 0 deletions registereditems/ogc-utils/iri-or-curie/examples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 37ebd0a

Please sign in to comment.