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

Is there a SPARQL way to...

From: Max Voelkel <voelkel@fzi.de>
Date: Fri, 1 Feb 2008 19:26:49 +0100
Message-ID: <1758246607.20080201192649@fzi.de>
To: public-sparql-dev@w3.org

Hi,

1)
  is it possible to write  a SPARQL query that given this data


ex:1 a ex:A
ex:2 a ex:A
ex:2 a ex:B
ex:3 a ex:A
ex:3 a ex:C
ex:4 a ex:B
ex:4 a ex:C

  returns only all subjects which belong only to class A?
  So in my example, only "ex:1" should  be returned.
  Ah,  and  resources can have more than two classes.

2)  Is  there  any  kind  of collection on the web of common SPARQL problems and
queries that solve it? Maybe some wiki page?

Kind Regards,
Max
--
       Max Völkel
   www.Xam.de
--
FZI Forschungszentrum Informatik an der Universität Karlsruhe
Haid-und-Neu-Str. 10-14, D-76131 Karlsruhe
Tel.: +49-721-9654-0, Fax: +49-721-9654-959
Stiftung des bürgerlichen Rechts, Az: 14-0563.1 Regierungspräsidium Karlsruhe.
Vorstand: Prof. Dr.-Ing. Rüdiger Dillmann, Dipl. Wi.-Ing. Michael Flor
Prof. Dr. Dr.-Ing. Jivka Ovtcharova, Prof. Dr. rer. nat. Rudi Studer
Vorsitzender des Kuratoriums: Ministerialdirigent Günther Leßnerkraus
Received on Friday, 1 February 2008 18:27:15 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 1 February 2008 18:27:15 GMT