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

Re: help with superclass query

From: xpete <listas@alphamatrix.org>
Date: Sat, 30 Apr 2011 15:13:54 +0100
To: public-sparql-dev@w3.org
Cc: Olivier Corby <olivier.corby@inria.fr>
Message-Id: <201104301514.01265.listas@alphamatrix.org>
A Quarta, 30 de Março de 2011 13:34:23, você escreveu:
> > 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

thx. i found a whay to do it before your answear but yours looks better...
Do you know a way to get the superclass label on the same query?
thx
Diogo
Received on Saturday, 30 April 2011 14:05:35 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 30 April 2011 14:05:36 GMT