Hi Stefan,
it is very strange to observe such behavior - in swiftowlim we do not use
external engine to evaluate queries and all triple pattern requests are
handled through getStatements() so there is no reason to get different
results from query evaluation and by simply invoking getStataments() - these
are routed to one and the same piece of code - Could you check your code
related to enumeration of query results - there is a possibility to somehow
silently fetch and ignore the first result ...
regards,
Damyan
----- Original Message -----
From: "Stefan Nesbigall" <stefan.nesbig...@dfki.de>
To: <owlim-discussion@ontotext.com>
Sent: Tuesday, September 08, 2009 1:21 PM
Subject: [Owlim-discussion] Problem getting the direct type of an instance
Hi every one
I have little problem since owlim does not find the direct type of
instances.
Somewhere in my ontology I have the following instance defined:
<messemodul:button rdf:about="#RedButton"/>
My OWLIM system does is able to load the ontology into the triple store.
By this
RepositoryResult<Statement> iter =
repositoryConn.getStatements("http://134.96.184.229/isreal/messemodul_abox.owl#RedButton",
null, null, true);
I get several triple including
(http://134.96.184.229/isreal/messemodul_abox.owl#RedButton,
http://www.w3.org/1999/02/22-rdf-syntax-ns#type,
http://134.96.184.229/isreal/messemodul.owl#button)
(http://134.96.184.229/isreal/messemodul_abox.owl#RedButton,
http://www.w3.org/1999/02/22-rdf-syntax-ns#type,
http://www.w3.org/2002/07/owl#Thing)
But when I use this sparql query:
SELECT ?pred ?obj WHERE {
<http://134.96.184.229/isreal/messemodul_abox.owl#RedButton>?pred ?obj .
}
I do not get the first triple saying that RedButton is a button. I just
get all the other triples.
Using a ask query:
ASK { <http://134.96.184.229/isreal/messemodul_abox.owl#RedButton>
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://134.96.184.229/isreal/messemodul.owl#button> . }
I get true.
Can anyone help?
Best regards
Stefan
-------------------required by german law--------------------
Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH
Trippstadter Strasse 122, D-67663 Kaiserslautern, Germany
Geschaeftsfuehrung:
Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster (Vorsitzender)
Dr. Walter Olthoff
Vorsitzender des Aufsichtsrats:
Prof. Dr. h.c. Hans A. Aukes
Amtsgericht Kaiserslautern, HRB 2313
-------------------------------------------------------------
_______________________________________________
OWLIM-discussion mailing list
OWLIM-discussion@ontotext.com
http://ontotext.com/mailman/listinfo/owlim-discussion
_______________________________________________
OWLIM-discussion mailing list
OWLIM-discussion@ontotext.com
http://ontotext.com/mailman/listinfo/owlim-discussion