- From: Max Voelkel <voelkel@fzi.de>
- Date: Fri, 1 Feb 2008 20:06:54 +0100
- To: Richard Newman <rnewman@franz.com>
- CC: public-sparql-dev@w3.org
Hi Richard,
RN> SELECT ?x {
RN> ?x a ex:A .
RN> OPTIONAL {
RN> ?x a ?bar .
RN> }
RN> FILTER (!bound(?x) || sameTerm(?bar, ex:A))
RN> }
Nope, on this data
---
<urn:x:1> a <urn:test:A> .
<urn:x:2> a <urn:test:A> , <urn:test:B> .
<urn:x:3> a <urn:test:B> , <urn:test:C> .
<urn:x:4> a <urn:test:A> , <urn:test:B> , <urn:test:C> .
---
The query
SELECT ?x {
?x a <urn:test:A> .
OPTIONAL { ?x a ?bar . }
FILTER (!bound(?x) || sameTerm(?bar, <urn:test:A>))
}
returns
x1, x2, x4
Any other takers?
>> 2) Is there any kind of collection on the web of common SPARQL
>> problems and
>> queries that solve it? Maybe some wiki page?
RN> Lee runs the SPARQL FAQ:
RN> http://thefigtrees.net/lee/sw/sparql-faq
Thanks, I found that, its pretty nice and general. But is there a SPARQL wiki
page also?
Kind Regards,
Max
--
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 19:07:23 UTC