- From: <helen.chen@agfa.com>
- Date: Sat, 8 Sep 2007 07:37:40 -0400
- To: semantic-web@w3.org
- Message-ID: <OF73F0A3AB.E683BF21-ON85257350.003E7992-85257350.003FDFE9@agfa.com>
Dear List
I am using N3QL to get anatomic structures and relationship from an
ontology.
When query for subclasses of a concept, some bnodes are returned, as a
result of restriction on that class, for example:
In the ontology:
---------------------------------------
:Hip a owl:Class ;
rdfs:subClassOf :BodyJunctionalBodyPart ;
rdfs:subClassOf
[ a owl:Restriction ;
owl:onProperty :hasBetaConnection ;
owl:someValuesFrom :Thigh
] .
----------------------
So a query
[] select {?A ?B}
where {?A rdfs:subClassOf ?B}.
will give results
:Hip :BodyJunctionalBodyPart
:Hip var:_123456 (bnode).
Is there a way to eliminate the bnodes in the query result, i.e by using a
filter clause maybe?
Thanks for your help.
Helen
Received on Saturday, 8 September 2007 11:37:52 UTC