How to eliminate bnode from N3QL query result

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