From cda8f44929f28094258eea456f5cef6d8962188e Mon Sep 17 00:00:00 2001 From: simon louvet Date: Wed, 13 Dec 2023 23:13:59 +0100 Subject: [PATCH] go to 1.8.2 --- user_ full_context.json | 449 ++++++++++++++++++++++++++++++++++++ user_.json | 491 ++++++++++++++++++++++++---------------- user_flatblank.json | 185 --------------- 3 files changed, 743 insertions(+), 382 deletions(-) create mode 100644 user_ full_context.json delete mode 100644 user_flatblank.json diff --git a/user_ full_context.json b/user_ full_context.json new file mode 100644 index 0000000..f64967c --- /dev/null +++ b/user_ full_context.json @@ -0,0 +1,449 @@ +{ + "@context": { + "rdfs": "http://www.w3.org/2000/01/rdf-schema#", + "skos" : "http://www.w3.org/2004/02/skos/core#", + "dfc": "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_FullModel.owl#", + "dc": "http://purl.org/dc/elements/1.1/#", + "dfc-b": "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_BusinessOntology.owl#", + "dfc-p": "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_ProductGlossary.owl#", + "dfc-t": "https://github.com/datafoodconsortium/ontology/releases/latest/download/DFC_TechnicalOntology.owl#", + "dfc-m": "https://github.com/datafoodconsortium/taxonomies/releases/latest/download/measures.rdf#", + "dfc-pt": "https://github.com/datafoodconsortium/taxonomies/releases/latest/download/productTypes.rdf#", + "dfc-f": "https://github.com/datafoodconsortium/taxonomies/releases/latest/download/facets.rdf#", + "ontosec": "http://www.semanticweb.org/ontologies/2008/11/OntologySecurity.owl#", + "dfc-p:hasUnit":{ + "@type":"@id" + }, + "dfc-b:hasUnit":{ + "@type":"@id" + }, + "dfc-b:hasQuantity":{ + "@type":"@id" + }, + "dfc-p:hasType":{ + "@type":"@id" + }, + "dfc-b:hasType":{ + "@type":"@id" + }, + "dfc-b:references":{ + "@type":"@id" + }, + "dfc-b:referencedBy":{ + "@type":"@id" + }, + "dfc-b:offers":{ + "@type":"@id" + }, + "dfc-b:offersTo":{ + "@type":"@id" + }, + "dfc-b:offeredThrough":{ + "@type":"@id" + }, + "dfc-b:supplies":{ + "@type":"@id" + }, + "dfc-b:defines":{ + "@type":"@id" + }, + "dfc-b:affiliates":{ + "@type":"@id" + }, + "dfc-b:affiliatedBy":{ + "@type":"@id" + }, + "dfc-b:orders":{ + "@type":"@id" + }, + "dfc-b:orderedBy":{ + "@type":"@id" + }, + "dfc-b:hasPart":{ + "@type":"@id" + }, + "dfc-b:partOf":{ + "@type":"@id" + }, + "dfc-b:belongsTo":{ + "@type":"@id" + }, + "dfc-b:selects":{ + "@type":"@id" + }, + "dfc-b:concerns":{ + "@type":"@id" + }, + "dfc-b:uses":{ + "@type":"@id" + }, + "dfc-b:hasOption":{ + "@type":"@id" + }, + "dfc-b:hostedAt":{ + "@type":"@id" + }, + "dfc-b:lists":{ + "@type":"@id" + }, + "dfc-b:listedIn":{ + "@type":"@id" + }, + "dfc-b:objectOf":{ + "@type":"@id" + }, + "dfc-b:hasCertification":{ + "@type":"@id" + }, + "dfc-b:manages":{ + "@type":"@id" + }, + "dfc-b:managedBy":{ + "@type":"@id" + }, + "dfc-b:coordinatedBy":{ + "@type":"@id" + }, + "dfc-b:hasObject":{ + "@type":"@id" + }, + "dfc-b:hasBrand":{ + "@type":"@id" + }, + "dfc-b:hasGeographicalOrigin":{ + "@type":"@id" + }, + "dfc-b:hasClaim":{ + "@type":"@id" + }, + "dfc-b:hasAllergenDimension":{ + "@type":"@id" + }, + "dfc-b:hasNutrientDimension":{ + "@type":"@id" + }, + "dfc-b:hasPhysicalDimension":{ + "@type":"@id" + }, + "dfc-b:localizedBy":{ + "@type":"@id" + }, + "dfc-b:constitutes":{ + "@type":"@id" + }, + "dfc-b:identifiedBy":{ + "@type":"@id" + }, + "dfc-b:storedIn":{ + "@type":"@id" + }, + "dfc:owner":{ + "@type":"@id" + }, + "dfc-t:hostedBy":{ + "@type":"@id" + }, + "dfc-t:hasPivot":{ + "@type":"@id" + }, + "dfc-t:represent":{ + "@type":"@id" + }, + "@base":"http://maPlateformeNationale/" + }, + "@graph" : [ + { + "@id": "person/personId", + "@type": "dfc-b:Person", + "dfc-b:familyName": "Doe", + "dfc-b:firstName": "Jhon", + "dfc-b:hasAdress": { + "@type": "dfc-b:Address", + "dfc-b:city": "", + "dfc-b:country": "", + "dfc-b:postcode": "", + "dfc-b:street": "", + "dfc-b:longitude": "", + "dfc-b:latitude": "" + }, + "dfc-b:hasPhoneNumber": { + "@type": "dfc-b:PhoneNumber", + "dfc-b:phoneNumber": "", + "dfc-b:countryCode": "" + }, + "dfc-b:hasSocialMedia": { + "@type": "dfc-b:SocialMedia", + "dfc-b:name": "" + }, + "dfc-b:affiliatedBy": [ + "entreprise/entrepriseId" + ], + "dfc-b:orders": [ + "order/orderId1" + ] + }, + + { + "@id": "entreprise/entrepriseId", + "@type": "dfc-b:Entreprise", + "dfc-b:VATnumber": "", + "dfc-b:affiliates": [ + "person/personId" + ], + + "dfc-b:defines": [ + "customerCategory/customerCategoryId1", + "customerCategory/customerCategoryId2" + ], + "dfc-b:supplies": [ + "suppliedProduct/item1", + "suppliedProduct/item2" + ], + "dfc-b:manages": [ + "catalogItem/catalogItemId1", + "catalogItem/catalogItemId2" + ] + }, + + { + "@id": "brand/brandId1", + "@type": "dfc-b:Brand", + "dfc-b:description": "brand description 1", + "dfc-b:description":"label brand 1" + }, + + { + "@id": "customerCategory/customerCategoryId1", + "@type": "dfc-b:CustomerCategory", + "dfc-b:description": "member" + }, + { + "@id": "customerCategory/customerCategoryId2", + "@type": "dfc-b:CustomerCategory", + "dfc-b:description": "non member" + }, + + { + "@id": "suppliedProduct/item1", + "@type": "dfc-b:SuppliedProduct", + "dfc-b:hasQuantity":{ + "@type":"dfc-b:QuantitiveValue", + "dfc-b:hasUnit":"dfc-m:Gram", + "dfc-b:value":"1000" + }, + "dfc-p:hasType": "dfc-pt:egg", + "dfc-b:description": "supply description 1", + "dfc-b:totalTheoriticalStock": "999", + "dfc-b:hasBrand": "brand/brandId1", + "dfc-b:hasCertification": "dfc-f:Organic-AB", + "dfc-b:hasClaim": [ + "dfc-f:NoAddedSugars", + "dfc-f:LowSodiumSalt", + "dfc-f:IncreasedNutrient" + ], + "dfc-b:hasNutrientCharacteristic": { + "@type":"dfc-b:NutrientCharacteristic", + "dfc-b:hasNutrientDimension":"dfc-m:Magnesium", + "dfc-b:hasUnit":"dfc-u:Gram", + "dfc-b:value":"10" + }, + "dfc-b:hasPhysicalCharacteristic": { + "@type":"dfc-b:PhysicalCharacteristic", + "dfc-b:hasPhysicalDimension":"dfc-m:Weight", + "dfc-b:hasUnit":"dfc-m:Gram", + "dfc-b:value":"100" + }, + "dfc-b:hasAllergenCharacteristic": { + "@type":"dfc-b:AllergenCharacteristic", + "dfc-b:hasAllergenDimension":"dfc-m:allergenCharacteristic1", + "dfc-b:hasUnit":"dfc-m:Allenit1", + "dfc-b:value":"1" + }, + "dfc-b:hasGeographicalOrigin": "dfc-f:CentreValLoire", + "dfc-b:hasNatureOrigin": "dfc-f:PlantOrigin", + "dfc-b:hasPartOrigin": "dfc-f:PlantPartOrigin", + "dfc-b:hasProcess": [ + "suppliedProduct/item2" + ], + "dfc-b:image": "supply image url", + "dfc-b:lifeTime": "supply lifeTime", + + "dfc-b:referencedBy": "catalogItem/catalogItemId1" + }, + { + "@id": "suppliedProduct/item2", + "@type": "dfc-b:SuppliedProduct", + "dfc-b:hasQuantity":{ + "@type":"dfc-b:QuantitiveValue", + "dfc-b:hasUnit":"dfc-m:Gram", + "dfc-b:value":"1000" + }, + "dfc-p:hasType": "dfc-pt:strawberry", + "dfc-b:description": "supply description 2", + "dfc-b:totalTheoriticalStock": "999", + "dfc-b:image": "supply image url", + "dfc-b:lifeTime": "supply lifeTime", + + "dfc-b:referencedBy": "catalogItem/catalogItemId2" + }, + + + { + "@id": "catalogItem/catalogItemId1", + "@type": "dfc-b:CatalogItem", + "dfc-b:sku": "catalog item gtin or sku", + "dfc-b:stockLimitation": "999", + "dfc-b:references": "/suppliedProduct/item1", + "dfc-b:listedIn" : "catalog/catalog", + "dfc-b:offeredThrough": [ + "offer/offerId1", + "offer/offerId2" + ] + }, + { + "@id": "catalogItem/catalogItemId2", + "@type": "dfc-b:CatalogItem", + "dfc-b:sku": "catalog item gtin or sku", + "dfc-b:stockLimitation": "999", + "dfc-b:references": "/suppliedProduct/item2", + "dfc-b:listedIn" : "catalog/catalog", + "dfc-b:offeredThrough": [ + "offer/offerId3", + "offer/offerId4" + ] + }, + { + "@id": "catalog/catalog", + "@type": "dfc-b:Catalog", + "dfc-b:lists" : [ + "catalogItem/catalogItemId1", + "catalogItem/catalogItemId2" + ] + }, + { + "@id": "offer/offerId1", + "@type": "dfc-b:Offer", + "dfc-b:offeredTo": "/customerCategory/customerCategoryId1", + "dfc-b:stockLimitation": "999", + "dfc-b:hasPrice": { + "@type": "dfc-b:Price", + "dfc-b:value": "10", + "dfc-b:VATrate": "5", + "dfc-b:hasUnit": "dfc-m:Euro" + }, + + "dfc-b:listedIn": [ + "salessession/salessessionId1" + ], + "dfc-b:offers" : "catalogItem/catalogItemId1" + }, + { + "@id": "offer/offerId2", + "@type": "dfc-b:Offer", + "dfc-b:offeredTo": "/customerCategory/customerCategoryId2", + "dfc-b:price": "999", + "dfc-b:stockLimitation": "999", + "dfc-b:hasPrice": { + "@type": "dfc-b:Price", + "dfc-b:value": "10", + "dfc-b:VATrate": "5", + "dfc-b:hasUnit": [ + "dfc-m:Euro" + ] + }, + "dfc-b:listedIn": [ + "salessession/salessessionId1" + ], + "dfc-b:offers" : [ + "catalogItem/catalogItemId1" + ] + }, + { + "@id": "offer/offerId3", + "@type": "dfc-b:Offer", + "dfc-b:offeredTo": "/customerCategory/customerCategoryId1", + "dfc-b:stockLimitation": "999", + "dfc-b:hasPrice": { + "@type": "dfc-b:Price", + "dfc-b:value": "10", + "dfc-b:VATrate": "5", + "dfc-b:hasUnit": [ + "dfc-m:Euro" + ] + }, + "dfc-b:listedIn": [ + "salessession/salessessionId1" + ], + "dfc-b:offers" : [ + "catalogItem/catalogItemId2" + ] + }, + { + "@id": "offer/offerId4", + "@type": "dfc-b:Offer", + "dfc-b:offeredTo": "/customerCategory/customerCategoryId2", + "dfc-b:price": "999", + "dfc-b:stockLimitation": "999", + "dfc-b:discount":"5", + "dfc-b:hasPrice": { + "@type": "dfc-b:Price", + "dfc-b:value": "10", + "dfc-b:VATrate": "5", + "dfc-b:hasUnit": [ + "dfc-m:Euro" + ] + }, + "dfc-b:listedIn": [ + "salessession/salessessionId1" + ], + "dfc-b:offers" : [ + "catalogItem/catalogItemId4" + ] + }, + + { + "@id": "salessession/salessessionId1", + "@type": "dfc-b:SaleSession", + "dfc-b:beginDate": "", + "dfc-b:endDate": "", + "dfc-b:quantity": "", + "dfc-b:lists": [ + "offer/offerId1", + "offer/offerId2", + "offer/offerId3", + "offer/offerId4" + ] + }, + + { + "@id": "order/orderId1", + "@type": "dfc-b:Order", + "dfc-b:orderNumber": "0001", + "dfc-b:discount": "0", + "dfc-b:date": "2023-02-13T14:30:00+01:00", + "dfc-b:belongsTo": "salessession/salessessionId1", + + "dfc-b:hasPart": [ + "orderline/orderlineId1" + ], + "dfc-b:orderedBy": "person/personId" + }, + { + "@id": "orderline/orderlineId1", + "@type": "dfc-b:OrderLine", + "dfc-b:quantity": "4", + "dfc-b:discount": "0", + "dfc-b:belongsTo": "salessession/salessessionId1", + "dfc-b:hasPrice": { + "@type": "dfc-b:Price", + "dfc-b:value": "40", + "dfc-b:VATrate": "5", + "dfc-b:hasUnit": "dfc-m:Euro" + }, + + "dfc-b:concerns": "offer/offerId1", + "dfc-b:partOf": "order/orderId1" + } + + ] +} \ No newline at end of file diff --git a/user_.json b/user_.json index b26835e..13c84d2 100644 --- a/user_.json +++ b/user_.json @@ -5,201 +5,298 @@ "@base":"http://maPlateformeNationale/" } ], - "@graph" : [ - { - "@id": "person/personId", - "@type": "dfc-b:Person", - "dfc-b:familyName": "Doe", - "dfc-b:firstName": "John", - "dfc-b:hasAdress": { - "@type": "dfc-b:Address", - "dfc-b:city": "", - "dfc-b:country": "", - "dfc-b:postcode": "", - "dfc-b:street": "" - }, - "dfc-b:affiliates": [ - "entreprise/entrepriseId" - ] - }, - { - "@id": "entreprise/entrepriseId", - "@type": "dfc-b:Entreprise", - "dfc-b:VATnumber": "", - "dfc-b:defines": [ - "customerCategory/customerCategoryId1", - "customerCategory/customerCategoryId2" - ], - "dfc-b:supplies": [ - "suppliedProduct/item3", - "suppliedProduct/item4" - ], - "dfc-b:manages": [ - "catalogItem/catalogItemId1", - "catalogItem/catalogItemId2" - ] - }, - { - "@id": "brand/brandId1", - "@type": "dfc-b:Brand", - "dfc-b:description": "brand description 1" - }, - { - "@id": "customerCategory/customerCategoryId1", - "@type": "dfc-b:CustomerCategory", - "dfc-b:description": "member" - }, - { - "@id": "customerCategory/customerCategoryId2", - "@type": "dfc-b:CustomerCategory", - "dfc-b:description": "non member" - }, - { - "@id": "suppliedProduct/item3", - "@type": "dfc-b:SuppliedProduct", - "dfc-b:name": "Farmers Eggs", - "dfc-b:hasQuantity":{ - "@type":"dfc-b:QuantitiveValue", - "dfc-b:hasUnit":"dfc-m:Gram", - "dfc-b:value":"1000" - }, - "dfc-b:hasType": "dfc-pt:egg", - "dfc-b:description": "20 fresh eggs", - "dfc-b:totalTheoriticalStock": "999", - "dfc-b:hasBrand": "brand/brandId1", - "dfc-b:hasCertification": "dfc-f:Organic-AB", - "dfc-b:hasClaim": [ - "dfc-f:NoAddedSugars", - "dfc-f:LowSodiumSalt", - "dfc-f:IncreasedNutrient" + "@graph" : [ + { + "@id": "person/personId", + "@type": "dfc-b:Person", + "dfc-b:familyName": "Doe", + "dfc-b:firstName": "Jhon", + "dfc-b:hasAdress": { + "@type": "dfc-b:Address", + "dfc-b:city": "", + "dfc-b:country": "", + "dfc-b:postcode": "", + "dfc-b:street": "", + "dfc-b:longitude": "", + "dfc-b:latitude": "" + }, + "dfc-b:hasPhoneNumber": { + "@type": "dfc-b:PhoneNumber", + "dfc-b:phoneNumber": "", + "dfc-b:countryCode": "" + }, + "dfc-b:hasSocialMedia": { + "@type": "dfc-b:SocialMedia", + "dfc-b:name": "" + }, + "dfc-b:affiliatedBy": [ + "entreprise/entrepriseId" + ], + "dfc-b:orders": [ + "order/orderId1" + ] + }, + + { + "@id": "entreprise/entrepriseId", + "@type": "dfc-b:Entreprise", + "dfc-b:VATnumber": "", + "dfc-b:affiliates": [ + "person/personId" + ], + + "dfc-b:defines": [ + "customerCategory/customerCategoryId1", + "customerCategory/customerCategoryId2" + ], + "dfc-b:supplies": [ + "suppliedProduct/item1", + "suppliedProduct/item2" ], - "dfc-b:hasNutrientCharacteristic": [ - { - "@type":"dfc-b:NutrientCharacteristic", - "dfc-b:hasNutrientDimension":"dfc-m:Magnesium", - "dfc-b:hasUnit":"dfc-m:Gram", - "dfc-b:value":"10" - }, - { - "@type":"dfc-b:NutrientCharacteristic", - "dfc-b:hasNutrientDimension":"dfc-m:Salt", - "dfc-b:hasUnit":"dfc-m:Gram", - "dfc-b:value":"0.01" - } - ], - "dfc-b:hasPhysicalCharacteristic": [ - { - "@type":"dfc-b:PhysicalCharacteristic", - "dfc-b:hasPhysicalDimension":"dfc-m:Weight", - "dfc-b:hasUnit":"dfc-m:Gram", - "dfc-b:value":"100" - }, - { - "@type":"dfc-b:PhysicalCharacteristic", - "dfc-b:hasPhysicalDimension":"dfc-m:Width", - "dfc-b:hasUnit":"dfc-m:Centimetre", - "dfc-b:value":"4.5" - } - ], - "dfc-b:hasAllergenCharacteristic": { - "@type":"dfc-b:AllergenCharacteristic", - "dfc-b:hasAllergenDimension":"dfc-m:Eggs", - "dfc-b:hasUnit":"dfc-m:Unit", - "dfc-b:value":"1" - }, - "dfc-b:hasGeographicalOrigin": "dfc-f:CentreValLoire", - "dfc-b:hasNatureOrigin": "dfc-f:PlantOrigin", - "dfc-b:hasPartOrigin": "dfc-f:PlantPartOrigin", - "dfc-b:hasProcess": [ - "suppliedProduct/item4" - ], - "dfc-b:image": "supply image url", - "dfc-b:lifeTime": "15 days" - }, - { - "@id": "suppliedProduct/item4", - "@type": "dfc-b:SuppliedProduct", - "dfc-b:name": "Plougastel's Strawberries", - "dfc-b:hasQuantity":{ - "@type":"dfc-b:QuantitiveValue", - "dfc-b:hasUnit":"dfc-m:Gram", - "dfc-b:value":"1000" - }, - "dfc-b:hasType": "dfc-pt:strawberry", - "dfc-b:description": "Strawberries coming from Andrew's farm.", - "dfc-b:totalTheoriticalStock": "999", - "dfc-b:image": "supply image url", - "dfc-b:lifeTime": "4 days" - }, - { - "@id": "catalogItem/catalogItemId1", - "@type": "dfc-b:CatalogItem", - "dfc-b:references": "/suppliedProduct/item3", - "dfc-b:sku": "27.208.7.40.", - "dfc-b:stockLimitation": "999", - "dfc-b:offeredThrough": [ - "offer/offerId1", - "offer/offerId2" - ] - }, - { - "@id": "catalogItem/catalogItemId2", - "@type": "dfc-b:CatalogItem", - "dfc-b:sku": "27.208.7.41.", - "dfc-b:stockLimitation": "999", - "dfc-b:references": "/suppliedProduct/item4", - "dfc-b:offeredThrough": [ - "offer/offerId3", - "offer/offerId4" - ] - }, - { - "@id": "offer/offerId1", - "@type": "dfc-b:Offer", - "dfc-b:offeres": "/customerCategory/customerCategoryId1", - "dfc-b:hasPrice": { - "@type": "dfc-b:Price", - "dfc-b:value": "10.2", - "dfc-b:VATrate": "5", - "dfc-b:hasUnit": "dfc-m:Euro" - }, - "dfc-b:stockLimitation": "999" - }, - { - "@id": "offer/offerId2", - "@type": "dfc-b:Offer", - "dfc-b:offeres": "/customerCategory/customerCategoryId2", - "dfc-b:hasPrice": { - "@type": "dfc-b:Price", - "dfc-b:value": "8.67", - "dfc-b:VATrate": "5", - "dfc-b:hasUnit": "dfc-m:Euro" - }, - "dfc-b:stockLimitation": "999" - }, - { - "@id": "offer/offerId3", - "@type": "dfc-b:Offer", - "dfc-b:offeres": "/customerCategory/customerCategoryId1", - "dfc-b:hasPrice": { - "@type": "dfc-b:Price", - "dfc-b:value": "12.4", - "dfc-b:VATrate": "5", - "dfc-b:hasUnit": "dfc-m:Euro" - }, - "dfc-b:stockLimitation": "999" - }, - { - "@id": "offer/offerId4", - "@type": "dfc-b:Offer", - "dfc-b:offeres": "/customerCategory/customerCategoryId2", - "dfc-b:hasPrice": { - "@type": "dfc-b:Price", - "dfc-b:value": "22", - "dfc-b:VATrate": "5", - "dfc-b:hasUnit": "dfc-m:Euro" - }, - "dfc-b:stockLimitation": "999" - } - ] -} \ No newline at end of file + "dfc-b:manages": [ + "catalogItem/catalogItemId1", + "catalogItem/catalogItemId2" + ] + }, + + { + "@id": "brand/brandId1", + "@type": "dfc-b:Brand", + "dfc-b:description": "brand description 1", + "dfc-b:description":"label brand 1" + }, + + { + "@id": "customerCategory/customerCategoryId1", + "@type": "dfc-b:CustomerCategory", + "dfc-b:description": "member" + }, + { + "@id": "customerCategory/customerCategoryId2", + "@type": "dfc-b:CustomerCategory", + "dfc-b:description": "non member" + }, + + { + "@id": "suppliedProduct/item1", + "@type": "dfc-b:SuppliedProduct", + "dfc-b:hasQuantity":{ + "@type":"dfc-b:QuantitiveValue", + "dfc-b:hasUnit":"dfc-m:Gram", + "dfc-b:value":"1000" + }, + "dfc-p:hasType": "dfc-pt:egg", + "dfc-b:description": "supply description 1", + "dfc-b:totalTheoriticalStock": "999", + "dfc-b:hasBrand": "brand/brandId1", + "dfc-b:hasCertification": "dfc-f:Organic-AB", + "dfc-b:hasClaim": [ + "dfc-f:NoAddedSugars", + "dfc-f:LowSodiumSalt", + "dfc-f:IncreasedNutrient" + ], + "dfc-b:hasNutrientCharacteristic": { + "@type":"dfc-b:NutrientCharacteristic", + "dfc-b:hasNutrientDimension":"dfc-m:Magnesium", + "dfc-b:hasUnit":"dfc-u:Gram", + "dfc-b:value":"10" + }, + "dfc-b:hasPhysicalCharacteristic": { + "@type":"dfc-b:PhysicalCharacteristic", + "dfc-b:hasPhysicalDimension":"dfc-m:Weight", + "dfc-b:hasUnit":"dfc-m:Gram", + "dfc-b:value":"100" + }, + "dfc-b:hasAllergenCharacteristic": { + "@type":"dfc-b:AllergenCharacteristic", + "dfc-b:hasAllergenDimension":"dfc-m:allergenCharacteristic1", + "dfc-b:hasUnit":"dfc-m:Allenit1", + "dfc-b:value":"1" + }, + "dfc-b:hasGeographicalOrigin": "dfc-f:CentreValLoire", + "dfc-b:hasNatureOrigin": "dfc-f:PlantOrigin", + "dfc-b:hasPartOrigin": "dfc-f:PlantPartOrigin", + "dfc-b:hasProcess": [ + "suppliedProduct/item2" + ], + "dfc-b:image": "supply image url", + "dfc-b:lifeTime": "supply lifeTime", + + "dfc-b:referencedBy": "catalogItem/catalogItemId1" + }, + { + "@id": "suppliedProduct/item2", + "@type": "dfc-b:SuppliedProduct", + "dfc-b:hasQuantity":{ + "@type":"dfc-b:QuantitiveValue", + "dfc-b:hasUnit":"dfc-m:Gram", + "dfc-b:value":"1000" + }, + "dfc-p:hasType": "dfc-pt:strawberry", + "dfc-b:description": "supply description 2", + "dfc-b:totalTheoriticalStock": "999", + "dfc-b:image": "supply image url", + "dfc-b:lifeTime": "supply lifeTime", + + "dfc-b:referencedBy": "catalogItem/catalogItemId2" + }, + + + { + "@id": "catalogItem/catalogItemId1", + "@type": "dfc-b:CatalogItem", + "dfc-b:sku": "catalog item gtin or sku", + "dfc-b:stockLimitation": "999", + "dfc-b:references": "/suppliedProduct/item1", + "dfc-b:listedIn" : "catalog/catalog", + "dfc-b:offeredThrough": [ + "offer/offerId1", + "offer/offerId2" + ] + }, + { + "@id": "catalogItem/catalogItemId2", + "@type": "dfc-b:CatalogItem", + "dfc-b:sku": "catalog item gtin or sku", + "dfc-b:stockLimitation": "999", + "dfc-b:references": "/suppliedProduct/item2", + "dfc-b:listedIn" : "catalog/catalog", + "dfc-b:offeredThrough": [ + "offer/offerId3", + "offer/offerId4" + ] + }, + { + "@id": "catalog/catalog", + "@type": "dfc-b:Catalog", + "dfc-b:lists" : [ + "catalogItem/catalogItemId1", + "catalogItem/catalogItemId2" + ] + }, + { + "@id": "offer/offerId1", + "@type": "dfc-b:Offer", + "dfc-b:offeredTo": "/customerCategory/customerCategoryId1", + "dfc-b:stockLimitation": "999", + "dfc-b:hasPrice": { + "@type": "dfc-b:Price", + "dfc-b:value": "10", + "dfc-b:VATrate": "5", + "dfc-b:hasUnit": "dfc-m:Euro" + }, + + "dfc-b:listedIn": [ + "salessession/salessessionId1" + ], + "dfc-b:offers" : "catalogItem/catalogItemId1" + }, + { + "@id": "offer/offerId2", + "@type": "dfc-b:Offer", + "dfc-b:offeredTo": "/customerCategory/customerCategoryId2", + "dfc-b:price": "999", + "dfc-b:stockLimitation": "999", + "dfc-b:hasPrice": { + "@type": "dfc-b:Price", + "dfc-b:value": "10", + "dfc-b:VATrate": "5", + "dfc-b:hasUnit": [ + "dfc-m:Euro" + ] + }, + "dfc-b:listedIn": [ + "salessession/salessessionId1" + ], + "dfc-b:offers" : [ + "catalogItem/catalogItemId1" + ] + }, + { + "@id": "offer/offerId3", + "@type": "dfc-b:Offer", + "dfc-b:offeredTo": "/customerCategory/customerCategoryId1", + "dfc-b:stockLimitation": "999", + "dfc-b:hasPrice": { + "@type": "dfc-b:Price", + "dfc-b:value": "10", + "dfc-b:VATrate": "5", + "dfc-b:hasUnit": [ + "dfc-m:Euro" + ] + }, + "dfc-b:listedIn": [ + "salessession/salessessionId1" + ], + "dfc-b:offers" : [ + "catalogItem/catalogItemId2" + ] + }, + { + "@id": "offer/offerId4", + "@type": "dfc-b:Offer", + "dfc-b:offeredTo": "/customerCategory/customerCategoryId2", + "dfc-b:price": "999", + "dfc-b:stockLimitation": "999", + "dfc-b:discount":"5", + "dfc-b:hasPrice": { + "@type": "dfc-b:Price", + "dfc-b:value": "10", + "dfc-b:VATrate": "5", + "dfc-b:hasUnit": [ + "dfc-m:Euro" + ] + }, + "dfc-b:listedIn": [ + "salessession/salessessionId1" + ], + "dfc-b:offers" : [ + "catalogItem/catalogItemId4" + ] + }, + + { + "@id": "salessession/salessessionId1", + "@type": "dfc-b:SaleSession", + "dfc-b:beginDate": "", + "dfc-b:endDate": "", + "dfc-b:quantity": "", + "dfc-b:lists": [ + "offer/offerId1", + "offer/offerId2", + "offer/offerId3", + "offer/offerId4" + ] + }, + + { + "@id": "order/orderId1", + "@type": "dfc-b:Order", + "dfc-b:orderNumber": "0001", + "dfc-b:discount": "0", + "dfc-b:date": "2023-02-13T14:30:00+01:00", + "dfc-b:belongsTo": "salessession/salessessionId1", + + "dfc-b:hasPart": [ + "orderline/orderlineId1" + ], + "dfc-b:orderedBy": "person/personId" + }, + { + "@id": "orderline/orderlineId1", + "@type": "dfc-b:OrderLine", + "dfc-b:quantity": "4", + "dfc-b:discount": "0", + "dfc-b:belongsTo": "salessession/salessessionId1", + "dfc-b:hasPrice": { + "@type": "dfc-b:Price", + "dfc-b:value": "40", + "dfc-b:VATrate": "5", + "dfc-b:hasUnit": "dfc-m:Euro" + }, + + "dfc-b:concerns": "offer/offerId1", + "dfc-b:partOf": "order/orderId1" + } + ] +} diff --git a/user_flatblank.json b/user_flatblank.json deleted file mode 100644 index b0dfd31..0000000 --- a/user_flatblank.json +++ /dev/null @@ -1,185 +0,0 @@ -{ - "@context": [ - "https://www.datafoodconsortium.org", - { - "@base": "http://maPlateformeNationale/" - } - ], - "@id": "person/personId", - "@type": "dfc-b:Person", - "dfc-b:affiliates": { - "@id": "entreprise/entrepriseId", - "@type": "dfc-b:Entreprise", - "dfc-b:VATnumber": "", - "dfc-b:defines": [ - { - "@id": "customerCategory/customerCategoryId1", - "@type": "dfc-b:CustomerCategory", - "dfc-b:description": "member" - }, - { - "@id": "customerCategory/customerCategoryId2", - "@type": "dfc-b:CustomerCategory", - "dfc-b:description": "non member" - } - ], - "dfc-b:manages": [ - { - "@id": "catalogItem/catalogItemId1", - "@type": "dfc-b:CatalogItem", - "dfc-b:offeredThrough": [ - { - "@id": "offer/offerId1", - "@type": "dfc-b:Offer", - "dfc-b:hasPrice": { - "@type": "dfc-b:Price", - "dfc-b:VATrate": "5", - "dfc-b:hasUnit": "dfc-m:Euro", - "dfc-b:value": "10.2" - }, - "dfc-b:offeres": "customerCategory/customerCategoryId1", - "dfc-b:stockLimitation": "999" - }, - { - "@id": "offer/offerId2", - "@type": "dfc-b:Offer", - "dfc-b:hasPrice": { - "@type": "dfc-b:Price", - "dfc-b:VATrate": "5", - "dfc-b:hasUnit": "dfc-m:Euro", - "dfc-b:value": "8.67" - }, - "dfc-b:offeres": "customerCategory/customerCategoryId2", - "dfc-b:stockLimitation": "999" - } - ], - "dfc-b:references": { - "@id": "suppliedProduct/item3", - "@type": "dfc-b:SuppliedProduct", - "dfc-b:description": "20 fresh eggs", - "dfc-b:hasAllergenCharacteristic": { - "@type": "dfc-b:AllergenCharacteristic", - "dfc-b:hasAllergenDimension": "dfc-m:Eggs", - "dfc-b:hasUnit": "dfc-m:Unit", - "dfc-b:value": "1" - }, - "dfc-b:hasBrand": { - "@id": "brand/brandId1", - "@type": "dfc-b:Brand", - "dfc-b:description": "brand description 1" - }, - "dfc-b:hasCertification": "dfc-f:Organic-AB", - "dfc-b:hasClaim": [ - "dfc-f:NoAddedSugars", - "dfc-f:LowSodiumSalt", - "dfc-f:IncreasedNutrient" - ], - "dfc-b:hasGeographicalOrigin": "dfc-f:CentreValLoire", - "dfc-b:hasNatureOrigin": "dfc-f:PlantOrigin", - "dfc-b:hasNutrientCharacteristic": [ - { - "@type": "dfc-b:NutrientCharacteristic", - "dfc-b:hasNutrientDimension": "dfc-m:Magnesium", - "dfc-b:hasUnit": "dfc-m:Gram", - "dfc-b:value": "10" - }, - { - "@type": "dfc-b:NutrientCharacteristic", - "dfc-b:hasNutrientDimension": "dfc-m:Salt", - "dfc-b:hasUnit": "dfc-m:Gram", - "dfc-b:value": "0.01" - } - ], - "dfc-b:hasPartOrigin": "dfc-f:PlantPartOrigin", - "dfc-b:hasPhysicalCharacteristic": [ - { - "@type": "dfc-b:PhysicalCharacteristic", - "dfc-b:hasPhysicalDimension": "dfc-m:Weight", - "dfc-b:hasUnit": "dfc-m:Gram", - "dfc-b:value": "100" - }, - { - "@type": "dfc-b:PhysicalCharacteristic", - "dfc-b:hasPhysicalDimension": "dfc-m:Width", - "dfc-b:hasUnit": "dfc-m:Centimetre", - "dfc-b:value": "4.5" - } - ], - "dfc-b:hasProcess": "suppliedProduct/item4", - "dfc-b:hasQuantity": { - "@type": "dfc-b:QuantitiveValue", - "dfc-b:hasUnit": "dfc-m:Gram", - "dfc-b:value": "1000" - }, - "dfc-b:hasType": "dfc-pt:egg", - "dfc-b:image": "supply image url", - "dfc-b:lifeTime": "15 days", - "dfc-b:name": "Farmers Eggs", - "dfc-b:totalTheoriticalStock": "999" - }, - "dfc-b:sku": "27.208.7.40.", - "dfc-b:stockLimitation": "999" - }, - { - "@id": "catalogItem/catalogItemId2", - "@type": "dfc-b:CatalogItem", - "dfc-b:offeredThrough": [ - { - "@id": "offer/offerId3", - "@type": "dfc-b:Offer", - "dfc-b:hasPrice": { - "@type": "dfc-b:Price", - "dfc-b:VATrate": "5", - "dfc-b:hasUnit": "dfc-m:Euro", - "dfc-b:value": "12.4" - }, - "dfc-b:offeres": "customerCategory/customerCategoryId1", - "dfc-b:stockLimitation": "999" - }, - { - "@id": "offer/offerId4", - "@type": "dfc-b:Offer", - "dfc-b:hasPrice": { - "@type": "dfc-b:Price", - "dfc-b:VATrate": "5", - "dfc-b:hasUnit": "dfc-m:Euro", - "dfc-b:value": "22" - }, - "dfc-b:offeres": "customerCategory/customerCategoryId2", - "dfc-b:stockLimitation": "999" - } - ], - "dfc-b:references": { - "@id": "suppliedProduct/item4", - "@type": "dfc-b:SuppliedProduct", - "dfc-b:description": "Strawberries coming from Andrew's farm.", - "dfc-b:hasQuantity": { - "@type": "dfc-b:QuantitiveValue", - "dfc-b:hasUnit": "dfc-m:Gram", - "dfc-b:value": "1000" - }, - "dfc-b:hasType": "dfc-pt:strawberry", - "dfc-b:image": "supply image url", - "dfc-b:lifeTime": "4 days", - "dfc-b:name": "Plougastel's Strawberries", - "dfc-b:totalTheoriticalStock": "999" - }, - "dfc-b:sku": "27.208.7.41.", - "dfc-b:stockLimitation": "999" - } - ], - "dfc-b:supplies": [ - "suppliedProduct/item3", - "suppliedProduct/item4" - ] - }, - "dfc-b:familyName": "Doe", - "dfc-b:firstName": "John", - "dfc-b:hasAdress": { - "@type": "dfc-b:Address", - "dfc-b:city": "", - "dfc-b:country": "", - "dfc-b:postcode": "", - "dfc-b:street": "" - } - } \ No newline at end of file