32 lines
867 B
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.
|