From f4d8557f9d818ba6fc6b3091be663182f7cebe93 Mon Sep 17 00:00:00 2001 From: Luc Gasser Date: Tue, 16 Jul 2024 11:28:40 +0200 Subject: [PATCH 1/3] Create energy context --- energy/jsonld-contexts/energy-compound.jsonld | 10 +++++++ energy/jsonld-contexts/energy.jsonld | 28 +++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 energy/jsonld-contexts/energy-compound.jsonld create mode 100644 energy/jsonld-contexts/energy.jsonld diff --git a/energy/jsonld-contexts/energy-compound.jsonld b/energy/jsonld-contexts/energy-compound.jsonld new file mode 100644 index 0000000..835b90f --- /dev/null +++ b/energy/jsonld-contexts/energy-compound.jsonld @@ -0,0 +1,10 @@ +{ + "@context": [ + "https://easy-global-market.github.io/ngsild-api-data-models/device/jsonld-contexts/device.jsonld", + "https://easy-global-market.github.io/ngsild-api-data-models/environment/jsonld-contexts/environment.jsonld", + "https://easy-global-market.github.io/ngsild-api-data-models/alertEventRisk/jsonld-contexts/alertEventRisk.jsonld", + "https://easy-global-market.github.io/ngsild-api-data-models/authorization/jsonld-contexts/authorization.jsonld", + "https://easy-global-market.github.io/ngsild-api-data-models/mapping/jsonld-contexts/flowMapping.jsonld", + "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.7.jsonld" + ] +} \ No newline at end of file diff --git a/energy/jsonld-contexts/energy.jsonld b/energy/jsonld-contexts/energy.jsonld new file mode 100644 index 0000000..b8007f1 --- /dev/null +++ b/energy/jsonld-contexts/energy.jsonld @@ -0,0 +1,28 @@ +{ + "@context": { + "Building": "https://vocab.egm.io/Building", + "Client": "https://vocab.egm.io/Client", + "Contract": "https://vocab.egm.io/Contract", + "DeliveryPoint": "https://vocab.egm.io/DeliveryPoint", + "Invoice": "https://vocab.egm.io/Invoice", + "Site": "https://vocab.egm.io/Site", + "Supplier": "https://vocab.egm.io/Supplier", + "amount": "https://vocab.egm.io/amount", + "city": "https://vocab.egm.io/city", + "clientReference": "https://vocab.egm.io/clientReference", + "contractAccount": "https://vocab.egm.io/contractAccount", + "contractStatus": "https://vocab.egm.io/contractStatus", + "endDate": "https://vocab.egm.io/endDate", + "energy": "https://vocab.egm.io/energy", + "index": "https://vocab.egm.io/index", + "invoiceNumber": "https://vocab.egm.io/invoiceNumber", + "isCancelled": "https://vocab.egm.io/isCancelled", + "issueDate": "https://vocab.egm.io/issueDate", + "name": "https://schema.org/name", + "offerLabel": "https://vocab.egm.io/offerLabel", + "postalCode": "https://vocab.egm.io/postalCode", + "relatedDeliveryPoint": "https://vocab.egm.io/relatedDeliveryPoint", + "segment": "https://vocab.egm.io/segment", + "startDate": "https://vocab.egm.io/startDate" + } +} \ No newline at end of file From 827a144e856c900b448559a23f0932b6467b66e1 Mon Sep 17 00:00:00 2001 From: Luc Gasser Date: Tue, 16 Jul 2024 11:30:31 +0200 Subject: [PATCH 2/3] add energy context to compound --- energy/jsonld-contexts/energy-compound.jsonld | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/energy/jsonld-contexts/energy-compound.jsonld b/energy/jsonld-contexts/energy-compound.jsonld index 835b90f..b98220d 100644 --- a/energy/jsonld-contexts/energy-compound.jsonld +++ b/energy/jsonld-contexts/energy-compound.jsonld @@ -1,10 +1,11 @@ { "@context": [ "https://easy-global-market.github.io/ngsild-api-data-models/device/jsonld-contexts/device.jsonld", + "https://easy-global-market.github.io/ngsild-api-data-models/energy/jsonld-contexts/energy.jsonld", "https://easy-global-market.github.io/ngsild-api-data-models/environment/jsonld-contexts/environment.jsonld", "https://easy-global-market.github.io/ngsild-api-data-models/alertEventRisk/jsonld-contexts/alertEventRisk.jsonld", "https://easy-global-market.github.io/ngsild-api-data-models/authorization/jsonld-contexts/authorization.jsonld", "https://easy-global-market.github.io/ngsild-api-data-models/mapping/jsonld-contexts/flowMapping.jsonld", "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.7.jsonld" ] -} \ No newline at end of file +} From 8ba00038307b893a6e54dc8952628f9533093f4f Mon Sep 17 00:00:00 2001 From: Luc Gasser Date: Tue, 16 Jul 2024 17:16:00 +0200 Subject: [PATCH 3/3] v1.8 default context + schema.org --- energy/jsonld-contexts/energy-compound.jsonld | 2 +- energy/jsonld-contexts/energy.jsonld | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/energy/jsonld-contexts/energy-compound.jsonld b/energy/jsonld-contexts/energy-compound.jsonld index b98220d..3b6d59f 100644 --- a/energy/jsonld-contexts/energy-compound.jsonld +++ b/energy/jsonld-contexts/energy-compound.jsonld @@ -6,6 +6,6 @@ "https://easy-global-market.github.io/ngsild-api-data-models/alertEventRisk/jsonld-contexts/alertEventRisk.jsonld", "https://easy-global-market.github.io/ngsild-api-data-models/authorization/jsonld-contexts/authorization.jsonld", "https://easy-global-market.github.io/ngsild-api-data-models/mapping/jsonld-contexts/flowMapping.jsonld", - "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.7.jsonld" + "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.8.jsonld" ] } diff --git a/energy/jsonld-contexts/energy.jsonld b/energy/jsonld-contexts/energy.jsonld index b8007f1..6aafa53 100644 --- a/energy/jsonld-contexts/energy.jsonld +++ b/energy/jsonld-contexts/energy.jsonld @@ -20,7 +20,7 @@ "issueDate": "https://vocab.egm.io/issueDate", "name": "https://schema.org/name", "offerLabel": "https://vocab.egm.io/offerLabel", - "postalCode": "https://vocab.egm.io/postalCode", + "postalCode": "https://schema.org/postalCode", "relatedDeliveryPoint": "https://vocab.egm.io/relatedDeliveryPoint", "segment": "https://vocab.egm.io/segment", "startDate": "https://vocab.egm.io/startDate"