Re: Descendants

Hi,

 >> return for example in this case a subject and subjects of it's children


prefix ex: <http://example.org>
select * where {
   ex:subject ?p ?o
   filter(isURI(?o))
}

 >> or even more complex a subject and all it's descendant

Using SPARQL 1.1 Property Path :

prefix ex: <http://example.org>
select * where {
   ex:subject (! ex:undef)* ?o
   filter(isURI(?o))
}

Olivier

Received on Monday, 7 April 2014 12:00:27 UTC