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

Re: RDF querying question

From: Richard Newman <r.newman@reading.ac.uk>
Date: Tue, 21 Jun 2005 22:15:12 +0100
Message-Id: <8AF115BD-E0F6-4FEC-B9FF-85EDB8C60F17@reading.ac.uk>
Cc: semantic-web@w3.org
To: Jan Algermissen <jalgermissen@topicmapping.com>

SELECT ?x WHERE {
   ?x ?p ?y .
   FILTER ( ?p != rdf:type ) .
}

Should work, I think (with prefix if necessary).

(I'm knee-deep in spec, so I haven't tested this.)

-R

On 21 Jun 2005, at 21:54, Jan Algermissen wrote:

>
> 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:15:23 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:44:44 GMT