From d6e294c08f0ea7c604d8ea5995d59d41242287d8 Mon Sep 17 00:00:00 2001 From: Benoit Orihuela Date: Sat, 17 Aug 2024 13:49:14 +0200 Subject: [PATCH] feat: improve price model --- jsonld-contexts/fluid.jsonld | 4 +--- ngsild-payloads/price.jsonld | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 ngsild-payloads/price.jsonld diff --git a/jsonld-contexts/fluid.jsonld b/jsonld-contexts/fluid.jsonld index e9d7154..4a2a738 100644 --- a/jsonld-contexts/fluid.jsonld +++ b/jsonld-contexts/fluid.jsonld @@ -1,7 +1,6 @@ { "@context": { "consumption": "https://vocab.egm.io/consumption", - "endDate": "https://vocab.egm.io/endDate", "estimatedPrice": "https://vocab.egm.io/estimatedPrice", "FluidMonitoring": "https://vocab.egm.io/FluidMonitoring", "fluidType": "https://vocab.egm.io/fluidType", @@ -12,7 +11,6 @@ "price": "https://vocab.egm.io/price", "PriceModel": "https://vocab.egm.io/PriceModel", "refDevice": "https://vocab.egm.io/refDevice", - "retrievalStatus": "https://vocab.egm.io/retrievalStatus", - "startDate": "https://vocab.egm.io/startDate" + "retrievalStatus": "https://vocab.egm.io/retrievalStatus" } } \ No newline at end of file diff --git a/ngsild-payloads/price.jsonld b/ngsild-payloads/price.jsonld new file mode 100644 index 0000000..83878b3 --- /dev/null +++ b/ngsild-payloads/price.jsonld @@ -0,0 +1,21 @@ +{ + "id": "urn:ngsi-ld:PriceModel:Electricity:Base", + "type": "PriceModel", + "fluidType": { + "type": "Property", + "value": "Electricity" + }, + "name": { + "type": "Property", + "value": "Tarifs de l'électricité pour l'option Base" + }, + "description": { + "type": "Property", + "value": "Tarifs réglementés de vente d'électricité Bleu résidentiels (TTC) en France métropolitaine continentale pour les options Base de puissance souscrite inférieure ou égale à 36 kVA" + }, + "price": { + "type": "Property", + "value": 0.1234, + "observedAt": "2024-08-01T00:00:00Z" + } +}