mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Remove loading of old DFC context
This commit is contained in:
@@ -4,19 +4,12 @@ class DfcLoader
|
||||
def self.connector
|
||||
unless @connector
|
||||
@connector = DataFoodConsortium::Connector::Connector.instance
|
||||
load_context
|
||||
load_vocabularies
|
||||
end
|
||||
|
||||
@connector
|
||||
end
|
||||
|
||||
def self.load_context
|
||||
JSON::LD::Context.add_preloaded("http://www.datafoodconsortium.org/") {
|
||||
JSON::LD::Context.parse(read_file("context_1.8.2")["@context"])
|
||||
}
|
||||
end
|
||||
|
||||
def self.vocabulary(name)
|
||||
@vocabs ||= {}
|
||||
@vocabs[name] ||= connector.__send__(:loadThesaurus, read_file(name))
|
||||
|
||||
450
engines/dfc_provider/vendor/context_1.8.2.json
vendored
450
engines/dfc_provider/vendor/context_1.8.2.json
vendored
@@ -1,450 +0,0 @@
|
||||
{
|
||||
"@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-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#",
|
||||
"dfc-v": "https://github.com/datafoodconsortium/taxonomies/releases/latest/download/vocabulary.rdf#",
|
||||
"ontosec": "http://www.semanticweb.org/ontologies/2008/11/OntologySecurity.owl#",
|
||||
"dfc-b:DFC_BusinessOntology_ObjectProperty": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:DFC_Interface_Property": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:addressOf": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:affiliatedTo": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:affiliates": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:allergenCharacteristicOf": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:belongsTo": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:brandOf": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:certificateOf": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:characteristicOf": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:claimOf": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:composedOf": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:composes": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:concernedBy": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:concerns": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:constituedBy": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:constitutes": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:consumedBy": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:consumes": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:containerInformationOf": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:coordinatedBy": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:coordinates": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:definedBy": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:defines": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:deliveredAt": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:facetOf": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:from": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:geographicalOriginOf": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:hasAddress": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:hasAllergenCharacteristic": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:hasAllergenDimension": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:hasBrand": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:hasCertification": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:hasCharacteristic": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:hasClaim": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:hasContainerInformation": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:hasDimension": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:hasFacet": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:hasFulfilmentStatus": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:hasGeographicalOrigin": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:hasIngredient": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:hasInput": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:hasLabellingCharacteristic": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:hasLabellingDimension": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:hasMainContact": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:hasNatureOrigin": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:hasNutrientCharacteristic": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:hasNutrientDimension": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:hasObject": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:hasOffer": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:hasOption": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:hasOrderStatus": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:hasOutput": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:hasPart": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:hasPartOrigin": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:hasPaymentMethod": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:hasPaymentStatus": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:hasPhoneNumber": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:hasPhysicalCharacteristic": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:hasPhysicalDimension": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:hasPrice": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:hasProcess": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:hasQuantity": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:hasReference": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:hasSocialMedia": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:hasStatus": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:hasTemperature": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:hasTransformationType": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:hasType": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:hasUnit": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:holds": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:hostedAt": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:hosts": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:identifiedBy": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:identifies": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:industrializedBy": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:industrializes": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:inputOf": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:isIngredientOf": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:isPriceOf": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:isTemperatureOf": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:labellingCharacteristicOf": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:listedIn": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:lists": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:localizedBy": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:localizes": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:mainContactOf": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:maintainedBy": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:maintains": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:managedBy": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:manages": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:natureOriginOf": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:nutrientCharacteristicOf": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:objectOf": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:offeredThrough": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:offers": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:offersTo": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:optionOf": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:orderedBy": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:orders": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:outputOf": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:ownedBy": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:owns": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:paidWith": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:partOf": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:partOriginOf": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:phoneNumberOf": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:physicalCharacteristicOf": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:pickedUpAt": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:processOf": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:producedBy": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:produces": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:proposedBy": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:proposes": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:referenceOf": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:referencedBy": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:references": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:refersTo": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:representedBy": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:represents": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:requestedBy": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:requests": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:satisfiedBy": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:satisfies": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:selectedBy": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:selects": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:sells": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:socialMediaOf": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:soldBy": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:storedIn": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:stores": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:suppliedBy": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:supplies": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:suppliesTo": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:to": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:tracedBy": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:traces": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:transformedBy": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:transforms": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:typeOf": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-b:uses": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-t:represent": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-t:hasPivot": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-t:hostedBy": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"dfc-t:owner": {
|
||||
"@type": "@id"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user