Re: sparql for vocab management: theory vs practice

On Sun, Mar 26, 2006 at 10:38:47 -0500, Dan Brickley wrote:
> >From a blog post I wrote yesterday, 
> (where I'm having some connectivity and dns hosting woes, it seems)
> There's a question buried in here: how do we ask SPARQL for the URIs
> of properties that appear in FOAF files yet aren't defined in the spec?
> Suggestions welcomed :)

I think it can be done with something like:

PREFIX rdf:  <>
PREFIX rdfs: <>
PREFIX foaf: <>
    ?s ?p ?o
    OPTIONAL { GRAPH foaf: { ?p rdf:type ?prop }
               FILTER(?prop = rdfs:Property) }
    FILTER(REGEX(?p, "^") && !BOUND(?prop))

However when I tried to test it SPARQLer told be it would allow dataset
building (when I tried to use FROM) and the rasqal demo gave a parse
error on the FOAF schema.

- Steve

Received on Sunday, 26 March 2006 16:16:18 UTC