W3C home > Mailing lists > Public > public-sparql-dev@w3.org > April to June 2011

Re: help with superclass query

From: Olivier Corby <olivier.corby@inria.fr>
Date: Sat, 30 Apr 2011 17:26:55 +0200
Message-ID: <4DBC2A3F.3030105@inria.fr>
To: public-sparql-dev@w3.org
CC: listas@alphamatrix.org
> Do you know a way to get the superclass label on the same query?


select * where {
  ?class rdfs:label "trident" ;
             rdfs:subClassOf ?super .
?super rdfs:label ?label
}


Olivier
Received on Saturday, 30 April 2011 15:27:24 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 30 April 2011 15:27:25 GMT