Consistent ontology filenames

main
Bob Mottram 2021-09-12 17:23:30 +01:00
parent c33a7578b6
commit 1c510beae7
9 changed files with 14 additions and 42 deletions

View File

@ -1,28 +0,0 @@
{
"@context":{
"dfc-p": "http://static.datafoodconsortium.org/ontologies/dfc_ProductGlossary.owl#",
"dfc-u":"http://static.datafoodconsortium.org/data/units.rdf#"
},
"@graph":[
{
"@id":"dfc-u:kg",
"@type":"dfc-p:Unit",
"rdfs:label":"kilogramme"
},
{
"@id":"dfc-u:u",
"@type":"dfc-p:Unit",
"rdfs:label":"unité"
},
{
"@id":"dfc-u:g",
"@type":"dfc-p:Unit",
"rdfs:label":"gramme"
},
{
"@id":"dfc-u:l",
"@type":"dfc-p:Unit",
"rdfs:label":"litre"
}
]
}

View File

@ -2,9 +2,9 @@
"@context": {
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"dfc-b": "http://static.datafoodconsortium.org/ontologies/DFC_BusinessOntology.owl#",
"dfc-p": "http://static.datafoodconsortium.org/ontologies/DFC_ProductOntology.owl#",
"dfc-p": "http://static.datafoodconsortium.org/ontologies/DFC_ProductGlossary.owl#",
"dfc-t": "http://static.datafoodconsortium.org/ontologies/DFC_TechnicalOntology.owl#",
"dfc-u": "http://static.datafoodconsortium.org/data/units.rdf#",
"dfc-u": "http://static.datafoodconsortium.org/data/units.json#",
"dfc-p:specialize": {
"@type": "@id"
}

View File

@ -2,9 +2,9 @@
"@context": {
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"dfc-b": "http://static.datafoodconsortium.org/ontologies/DFC_BusinessOntology.owl#",
"dfc-p": "http://static.datafoodconsortium.org/ontologies/DFC_ProductOntology.owl#",
"dfc-p": "http://static.datafoodconsortium.org/ontologies/DFC_ProductGlossary.owl#",
"dfc-t": "http://static.datafoodconsortium.org/ontologies/DFC_TechnicalOntology.owl#",
"dfc-u": "http://static.datafoodconsortium.org/data/units.rdf#",
"dfc-u": "http://static.datafoodconsortium.org/data/units.json#",
"dfc-p:specialize": {
"@type": "@id"
}

View File

@ -2,9 +2,9 @@
"@context": {
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"dfc-b": "http://static.datafoodconsortium.org/ontologies/DFC_BusinessOntology.owl#",
"dfc-p": "http://static.datafoodconsortium.org/ontologies/DFC_ProductOntology.owl#",
"dfc-p": "http://static.datafoodconsortium.org/ontologies/DFC_ProductGlossary.owl#",
"dfc-t": "http://static.datafoodconsortium.org/ontologies/DFC_TechnicalOntology.owl#",
"dfc-u": "http://static.datafoodconsortium.org/data/units.rdf#",
"dfc-u": "http://static.datafoodconsortium.org/data/units.json#",
"dfc-p:specialize": {
"@type": "@id"
}

View File

@ -2,9 +2,9 @@
"@context": {
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"dfc-b": "http://static.datafoodconsortium.org/ontologies/DFC_BusinessOntology.owl#",
"dfc-p": "http://static.datafoodconsortium.org/ontologies/DFC_ProductOntology.owl#",
"dfc-p": "http://static.datafoodconsortium.org/ontologies/DFC_ProductGlossary.owl#",
"dfc-t": "http://static.datafoodconsortium.org/ontologies/DFC_TechnicalOntology.owl#",
"dfc-u": "http://static.datafoodconsortium.org/data/units.rdf#",
"dfc-u": "http://static.datafoodconsortium.org/data/units.json#",
"dfc-p:specialize": {
"@type": "@id"
}

View File

@ -2,9 +2,9 @@
"@context": {
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"dfc-b": "http://static.datafoodconsortium.org/ontologies/DFC_BusinessOntology.owl#",
"dfc-p": "http://static.datafoodconsortium.org/ontologies/DFC_ProductOntology.owl#",
"dfc-p": "http://static.datafoodconsortium.org/ontologies/DFC_ProductGlossary.owl#",
"dfc-t": "http://static.datafoodconsortium.org/ontologies/DFC_TechnicalOntology.owl#",
"dfc-u": "http://static.datafoodconsortium.org/data/units.rdf#",
"dfc-u": "http://static.datafoodconsortium.org/data/units.json#",
"dfc-p:specialize": {
"@type": "@id"
}

View File

@ -1,6 +1,6 @@
{
"@context":{
"dfc-p": "http://static.datafoodconsortium.org/ontologies/dfc_ProductGlossary.owl#",
"dfc-p": "http://static.datafoodconsortium.org/ontologies/DFC_ProductGlossary.owl#",
"dfc-u":"http://static.datafoodconsortium.org/data/units.rdf#"
},
"@graph":[

View File

@ -2,7 +2,7 @@
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:dfc-u="http://static.datafoodconsortium.org/data/units.rdf#"
xmlns:dfc-b="http://static.datafoodconsortium.org/ontologies/dfc_ProductGlossary.owl#">
xmlns:dfc-b="http://static.datafoodconsortium.org/ontologies/DFC_ProductGlossary.owl#">
<dfc-b:Unit rdf:about="http://static.datafoodconsortium.org/data/unit.rdf#kg">
<rdfs:label rdf:datatype="http://www.w3.org/2001/XMLSchema#string">kilogramme</rdfs:label>

View File

@ -1157,7 +1157,7 @@ def sharesCatalogAccountEndpoint(baseDir: str, httpPrefix: str,
dfcUrl = \
httpPrefix + '://' + domainFull + '/ontologies/DFC_FullModel.owl#'
dfcPtUrl = \
httpPrefix + '://' + domainFull + '/ontologies/productTypes.rdf#'
httpPrefix + '://' + domainFull + '/ontologies/productGlossary.rdf#'
owner = localActorUrl(httpPrefix, nickname, domainFull)
if sharesFileType == 'shares':
dfcInstanceId = owner + '/catalog'
@ -1246,7 +1246,7 @@ def sharesCatalogEndpoint(baseDir: str, httpPrefix: str,
dfcUrl = \
httpPrefix + '://' + domainFull + '/ontologies/DFC_FullModel.owl#'
dfcPtUrl = \
httpPrefix + '://' + domainFull + '/ontologies/productTypes.rdf#'
httpPrefix + '://' + domainFull + '/ontologies/productGlossary.rdf#'
dfcInstanceId = httpPrefix + '://' + domainFull + '/catalog'
endpoint = {
"@context": {