Re: RDF querying question

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 UTC