You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
AriadnePlus/dnet-ariadneplus-graphdb-pu.../src/main/resources/eu/dnetlib/ariadneplus/sparql/for-ontology-loading.sparql

32 lines
867 B
SPARQL

# Loading the ontology on the repository with inference enabled does not work.
# Let's disable it:
PREFIX sys: <http://www.ontotext.com/owlim/system#>
INSERT DATA {
_:b sys:addRuleset "empty" .
_:b sys:defaultRuleset "empty" .
}
# Now load the ontology (with SPARQL INSERT or importing the RDFS)
# After the ontology is loaded we can re-enable the inference ruleset
PREFIX sys: <http://www.ontotext.com/owlim/system#>
INSERT DATA {
[] sys:defaultRuleset "rdfsplus-optimized" .
[] sys:reinfer [] .
}
# sys:reinfer tells the repository to reinfer everything according to the ruleset
# it is now running on staging and we need to wait to see if it works.
# To list the rulesets:
PREFIX sys: <http://www.ontotext.com/owlim/system#>
SELECT ?state ?ruleset {
?state sys:listRulesets ?ruleset
}
#Alternative: load the ontology in a separate repository.