Re: evaluating SPARQL w.r.t an RDF query language survey

On Tue, Apr 05, 2005 at 11:00:53 -0500, Dan Connolly wrote:
> 4 difference
> Return the labels of all topics that are not titles of publications.
> 
> I can imagine some contortion using bound() and OPTIONAL,
> but I can't figure it out, and I wouldn't expect the average
> user to be able to.

I think it depends if the average user is familar with SQL.

	SELECT ?label
	WHERE { ?topic rdfs:label ?label
                ?topic rdf:type foo:topic }
	OPTIONAL { ?pub dc:title ?label
		   ?pub rdf:type foo:publication }
	FILTER !bound(?pub)

- Steve 

Received on Wednesday, 6 April 2005 16:13:17 UTC