Is there a SPARQL way to...


  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 Völkel
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 UTC