# Object Properties
test:function rdf:type owl:ObjectProperty ; owl:inverseOf test:inverseFunction .
test:inverseFunction rdf:type owl:ObjectProperty .
# Individuals
test:x rdf:type owl:NamedIndividual .
test:y rdf:type owl:NamedIndividual ; test:function test:x .
Query: select ?a ?b where {?a test:inverseFunction ?b.}
a=test:x
b=test:y
Connection reasConn = ConnectionConfiguration.to("TestForJava")
.server("http://192.168.2.47:5820")
.credentials("admin", "admin")
.connect();
reasConn.begin();
String request = "Select * WHERE { ?x test:inverseFunction ?y.}";
SelectQuery query = reasConn.select(request).reasoning(ReasoningType.SL);
tuple = query.execute();
System.out.println(tuple.hasNext()); //===> false expected true
--
-- --
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
To unsubscribe from this group and stop receiving emails from it, send an email to stardog+u...@clarkparsia.com.
For more options, visit this group at
http://groups.google.com/a/clarkparsia.com/group/stardog?hl=en
--
Best,
Héctor
--
Best,
Héctor