W3C home > Mailing lists > Public > semantic-web@w3.org > June 2005

RE: RDF querying question

From: Geoff Chappell <geoff@sover.net>
Date: Tue, 21 Jun 2005 17:13:14 -0400
To: "'Jan Algermissen'" <jalgermissen@topicmapping.com>, <semantic-web@w3.org>
Message-ID: <012901c576a6$0cf37e20$6501a8c0@gsclaptop>

I imagine in sparql you could say something like:

	select ?s where {?s ?p ?o. 
		OPTIONAL {?s rdf:type ?x} 
		Filter !bound(?x)}


-Geoff

> -----Original Message-----
> From: semantic-web-request@w3.org [mailto:semantic-web-request@w3.org] On
> Behalf Of Jan Algermissen
> Sent: Tuesday, June 21, 2005 4:55 PM
> To: semantic-web@w3.org
> Subject: RDF querying question
> 
> 
> Hi,
> 
> is it possible (in RDQL or  SPARQL) to query for all nodes that do
> not have
> a certain property at all?
> 
> For example: "Retrieve all nodes that do not have an rdf:type"
> 
> Thanks in advance.
> 
> Jan
> 
> 
> 
Received on Tuesday, 21 June 2005 21:13:33 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 2 June 2009 18:36:07 GMT