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

Re: help with superclass query

From: Olivier Corby <olivier.corby@inria.fr>
Date: Wed, 30 Mar 2011 14:34:23 +0200
Message-ID: <4D93234F.8050008@inria.fr>
To: public-sparql-dev@w3.org
> create a query to tell me what
> is the superclass of a class class with a specific label

You may try this:

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

Olivier
Received on Wednesday, 30 March 2011 12:34:56 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:15:51 UTC