Hi,A strange behaviour appeared when using swrl rules. Simplifying the problem I isolated this (with a stupid rule) :Prefix(owl:=<http://www.w3.org/2002/07/owl#>)Prefix(rdf:=<http://www.w3.org/1999/02/22-rdf-syntax-ns#>)Prefix(xml:=<http://www.w3.org/XML/1998/namespace>)Prefix(xsd:=<http://www.w3.org/2001/XMLSchema#>)Prefix(rdfs:=<http://www.w3.org/2000/01/rdf-schema#>)Prefix(swrl:=<http://www.w3.org/2003/11/swrl#>)Prefix(swrlb:=<http://www.w3.org/2003/11/swrlb#>)Prefix(untitled-ontology-104:=<http://www.semanticweb.org/ontologies/2013/3/untitled-ontology-104#>)
Declaration(DataProperty(:f1))DataPropertyRange(:f1 xsd:float)Declaration(DataProperty(:f2))DataPropertyRange(:f2 xsd:float)Declaration(NamedIndividual(:a))ClassAssertion(owl:Thing :a)DataPropertyAssertion(:f1 :a "10.0"^^xsd:float)DLSafeRule(Body(DataPropertyAtom(:f1 Variable(<urn:swrl#x>) Variable(<urn:swrl#v>)))Head(DataPropertyAtom(:f2 Variable(<urn:swrl#x>) Variable(<urn:swrl#v>)))))when I query with :./stardog query "testRulesDB;reasoning=QL" "PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>PREFIX owl: <http://www.w3.org/2002/07/owl#>PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>SELECT ?x ?zWHERE { ?x :f2 ?z }"I get :{"head" : {"vars" : [ "x", "z" ]},"results" : {"bindings" : [ {"x" : {"type" : "uri",}} ]}}It seems that there is a data property with no value ...CheersLaurent--
-- --
You received this message because you are subscribed to the C&P "Stardog" group.
To post to this group, send email to sta...@clarkparsia.com
To unsubscribe from this group, send email to
stardog+u...@clarkparsia.com
For more options, visit this group at
http://groups.google.com/a/clarkparsia.com/group/stardog?hl=en
Dear Hector,
Your ontology works … strange as it seems to be the same (except for the uri). I use 1.2.
Cheers
Laurent
Le 25 avr. 2013 à 18:48, Héctor Pérez-Urbina <hec...@clarkparsia.com> a écrit :
> <query.sparql>
I join the owl and turtle file saved by Protege. The funny thing is that it works with the ttl file but not with the owl one …
CheersLaurent