Skip to content

Commit

Permalink
Release 1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
lecoqlibre committed Apr 20, 2023
1 parent 433f01a commit 1661af7
Show file tree
Hide file tree
Showing 2 changed files with 221 additions and 14 deletions.
65 changes: 51 additions & 14 deletions user.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"@id": "person/personId",
"@type": "dfc-b:Person",
"dfc-b:familyName": "Doe",
"dfc-b:firtsName": "Jhon",
"dfc-b:firstName": "Jhon",
"dfc-b:hasAdress": {
"@type": "dfc-b:Address",
"dfc-b:city": "",
Expand Down Expand Up @@ -39,6 +39,12 @@
"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",
Expand All @@ -52,30 +58,61 @@
{
"@id": "suppliedProduct/item3",
"@type": "dfc-b:SuppliedProduct",
"dfc-p:hasUnit": "dfc-u:u",
"dfc-b:quantity": "99.99",
"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 12345",
"dfc-b:description": "supply description 1",
"dfc-b:totalTheoriticalStock": "999",
"dfc-b:brand": "supply brand",
"dfc-b:claim": "supply claim",
"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/item4"
],
"dfc-b:image": "supply image url",
"dfc-b:lifeTime": "supply lifeTime",
"dfc-b:physicalCharacterisctics": "supply physical characterisctics"
"dfc-b:lifeTime": "supply lifeTime"
},
{
"@id": "suppliedProduct/item4",
"@type": "dfc-b:SuppliedProduct",
"dfc-p:hasUnit": "dfc-u:u",
"dfc-b:quantity": "1",
"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:brand": "supply brand",
"dfc-b:claim": "supply claim",
"dfc-b:image": "supply image url",
"dfc-b:lifeTime": "supply lifeTime",
"dfc-b:physicalCharacterisctics": "supply physical characterisctics"
"dfc-b:lifeTime": "supply lifeTime"
},
{
"@id": "catalogItem/catalogItemId1",
Expand Down
170 changes: 170 additions & 0 deletions user_flatblank.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
{
"@context": {
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"skos": "http://www.w3.org/2004/02/skos/core#",
"dfc": "http://static.datafoodconsortium.org/ontologies/DFC_FullModel.owl#",
"dc": "http://purl.org/dc/elements/1.1/#",
"dfc-b": "http://static.datafoodconsortium.org/ontologies/DFC_BusinessOntology.owl#",
"dfc-p": "http://static.datafoodconsortium.org/ontologies/DFC_ProductOntology.owl#",
"dfc-t": "http://static.datafoodconsortium.org/ontologies/DFC_TechnicalOntology.owl#",
"dfc-m": "http://static.datafoodconsortium.org/data/measures.rdf#",
"dfc-pt": "http://static.datafoodconsortium.org/data/productTypes.rdf#",
"dfc-f": "http://static.datafoodconsortium.org/data/facets.rdf#",
"dfc-p:hasUnit": {
"@type": "@id"
},
"dfc-b:hasUnit": {
"@type": "@id"
},
"dfc-p:hasType": {
"@type": "@id"
},
"dfc-b:hasType": {
"@type": "@id"
},
"dfc-b:references": {
"@type": "@id"
},
"dfc-b:referencedBy": {
"@type": "@id"
},
"dfc-b:offeres": {
"@type": "@id"
},
"dfc-b:supplies": {
"@type": "@id"
},
"dfc-b:affiliates": {
"@type": "@id"
},
"dfc-b:manages": {
"@type": "@id"
},
"dfc-b:defines": {
"@type": "@id"
},
"dfc-b:offeredThrough": {
"@type": "@id"
},
"dfc-b:hasBrand": {
"@type": "@id"
},
"dfc-b:hasGeographicalOrigin": {
"@type": "@id"
},
"dfc-b:hasClaim": {
"@type": "@id"
},
"dfc-b:hasAllergenDimension": {
"@type": "@id"
},
"dfc-b:hasNutrimentDimension": {
"@type": "@id"
},
"dfc-b:hasPhysicalDimension": {
"@type": "@id"
},
"dfc:owner": {
"@type": "@id"
},
"dfc-t:hostedBy": {
"@type": "@id"
},
"dfc-t:hasPivot": {
"@type": "@id"
},
"dfc-t:represent": {
"@type": "@id"
},
"@base": "https://demo.socleo.org/api/dfc/"
},
"@graph": [
{
"@id": "_:b0",
"@type": "dfc-b:QuantitiveValue",
"dfc-b:hasUnit": "dfc-m:Kilogram",
"dfc-b:value": "666.0"
},
{
"@id": "address/null",
"@type": "dfc-b:Address",
"dfc-b:city": "Clisson",
"dfc-b:country": "",
"dfc-b:postcode": "44460",
"dfc-b:street": "2 rue jean Emile Laboureur"
},
{
"@id": "brand/socleo",
"@type": "dfc-b:Brand",
"dfc-b:description": "Partenaire logiciel des circuits courts",
"rdfs:label": "Socleo"
},
{
"@id": "catalogItem/1382544898231",
"@type": "dfc-b:CatalogItem",
"dfc-b:offeredThrough": "offer/1382544898231_GTD",
"dfc-b:references": "suppliedProduct/1382544898231",
"dfc-b:sku": "0454000000001",
"dfc-b:stockLimitation": ""
},
{
"@id": "customerCategory/GTD",
"@type": "dfc-b:CustomerCategory",
"dfc-b:description": "Tarif par défaut"
},
{
"@id": "entreprise/187432",
"@type": "dfc-b:Entreprise",
"dfc-b:VATnumber": "",
"dfc-b:defines": [
"customerCategory/G1",
"customerCategory/G2",
"customerCategory/GMS",
"customerCategory/GMS2",
"customerCategory/MNR8WCDI",
"customerCategory/GTD"
],
"dfc-b:manages": [
"catalogItem/1382544898231"
],
"dfc-b:supplies": [
"suppliedProduct/1382544898231"
]
},
{
"@id": "offer/1382544898231_GTD",
"@type": "dfc-b:Offer",
"dfc-b:offeres": "customerCategory/GTD",
"dfc-b:price": "0.0",
"dfc-b:stockLimitation": ""
},
{
"@id": "person/187432",
"@type": "dfc-b:Person",
"dfc-b:affiliates": "entreprise/187432",
"dfc-b:familyName": "Test",
"dfc-b:firtsName": "DFC",
"dfc-b:hasAdress": {
"@id": "address/null"
}
},
{
"@id": "suppliedProduct/1382544898231",
"@type": "dfc-b:SuppliedProduct",
"dfc-b:description": "DFC- tomato sauce",
"dfc-b:hasBrand": "brand/socleo",
"dfc-b:hasCertification": [
"dfc-f:Organic-AB",
"dfc-f:Organic-EU"
],
"dfc-b:hasGeographicalOrigin": "dfc-f:CentreValLoire",
"dfc-b:hasQuantity": {
"@id": "_:b0"
},
"dfc-b:image": "",
"dfc-b:lifeTime": "",
"dfc-b:totalTheoriticalStock": "",
"dfc-p:hasType": "dfc-pt:tomato"
}
]
}

0 comments on commit 1661af7

Please sign in to comment.