sparql to enable/disable inference rules
parent
8a9760c052
commit
92bf8897d5
@ -0,0 +1,32 @@
|
||||
# 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.
|
Loading…
Reference in New Issue