Skip to content

Commit

Permalink
Merge pull request #154 from OpenEnergyPlatform/feature-153-contextjson
Browse files Browse the repository at this point in the history
Add an updated version of context.json #153
  • Loading branch information
jh-RLI authored Oct 14, 2024
2 parents 1210ff4 + ca3e8f1 commit 0a4cd7c
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ Here is a template for new release sections
- We use json schema $ref elements to reference the schema modules and we provide code to resolve the reference´s and generate the complete schema.json.

- Add code to generate a example.json based on the schema.json. We read the example values for each of the fields specified in the schema and generate the example. [#???](https://github.com/OpenEnergyPlatform/oemetadata/pull/)
- Add updated context.json [(#154)](https://github.com/OpenEnergyPlatform/oemetadata/pull/154)

- Add embargoPeriod section with keys start, end, isActive [(#155)](https://github.com/OpenEnergyPlatform/oemetadata/pull/155)

Expand Down
87 changes: 87 additions & 0 deletions metadata/v200_draft/context.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
{
"@context": {
"path": "@id",
"bfo": "http://purl.obolibrary.org/obo/bfo.owl#",
"csvw": "http://www.w3.org/ns/csvw#",
"dbo": "http://dbpedia.org/ontology/",
"dc": "http://purl.org/dc/elements/1.1/",
"dct": "http://purl.org/dc/terms/",
"obda": "https://w3id.org/obda/vocabulary#",
"oeo": "http://openenergyplatform.org/ontology/oeo/",
"owl": "http://www.w3.org/2002/07/owl#",
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"saref": "https://saref.etsi.org/core/",
"time": "http://www.w3.org/2006/time#",
"xml": "http://www.w3.org/XML/1998/namespace",
"xsd": "http://www.w3.org/2001/XMLSchema#",
"title": {
"@id": "dct:title",
"@type": "xsd:string"
},
"description": {
"@id": "dct:description",
"@type": "xsd:string"
},
"comment": {
"@id": "rdfs:comment",
"@type": "xsd:string"
},
"subject": {
"@id": "dc:subject",
"@type": "@id"
},
"keywords": {
"@id": "dc:subject",
"@type": "xsd:string"
},
"temporal": {
"@id": "time:hasTemporalDuration",
"@type": "@id"
},
"timeseries": {
"@id": "time:hasDateTimeDescription",
"@type": "@id"
},
"start": {
"@id": "dbo:startDateTime",
"@type": "xsd:dateTime"
},
"end": {
"@id": "dbo:endDateTime",
"@type": "xsd:dateTime"
},
"fields": {
"@id": "csvw:column",
"@type": "@id"
},
"resources": {
"@id": "csvw:table",
"@type": "@id"
},
"schema": {
"@id": "csvw:tableSchema",
"@type": "@id"
},
"name": {
"@id": "rdfs:label",
"@type": "xsd:string"
},
"type": {
"@id": "csvw:datatype",
"@type": "xsd:string"
},
"unit": {
"@id": "oeo:OEO_00040010",
"@type": "xsd:string"
},
"isAbout": {
"@id": "saref:isAbout",
"@type": "@id"
},
"valueReference": {
"@id": "http://purl.org/goodrelations/v1#valueReference",
"@type": "@id"
}
}
}

0 comments on commit 0a4cd7c

Please sign in to comment.