I'm trying to write a simple datalog rule to manipulate boolean values in an RDF ontology. I'm trying to use RDFox as a reasoner for now.
RDF ontology is something like this
:citizenVaccinated rdfs:label "vaccinated";
a :citizen;
:isCitizenOf : uk
:automatedDecisionMaking rdfs:label "automatedDecisionMaking";
:hasValue xsd:True.
:basicInformationCheck rdfs:label "basicInformationCheck";
rdf:type xsd:False.
#:hasValue xsd:False.
I have written a small datalog rule which says
[:basicInformationCheck, rdf:type, xsd:True]:- [:citizenVaccinated, :isCitizenOf, :UK].
When I query the final graph for the value of basicInformationCheck , I get facts
rdf:type xsd:False
rdf:type xsd:True
How do we change this to accommodate only the updated facts
RDFox gives you the ability to specify the 'fact-domain' against which a query is run. This can be
IDB(default) for all facts,EDBfor explicit facts only, andIDBrepNoEDBfor implicit facts only (this is the one you want to use). From version 5.5, these fact domains have been renamed toall,explicit, andderived.To set them in the shell, simply do:
You can also use these in REST on a per-query basis, by specifying the
fact-domainURL parameter when answering your query, e.g.: