[foaf-dev] Re: updated FOAF spec

Kingsley Idehen kidehen at openlinksw.com
Fri May 25 15:43:18 BST 2007


Damian Steer wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Dan Brickley wrote:
>
>   
>> (a similar query can be run for rdfs:Class, I tried combining the two
>> with UNION but either I don't understand, or the engine doesn't support
>> enough SPARQL, to make that work).
>>     
>
> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
> PREFIX vs: <http://www.w3.org/2003/06/sw-vocab-status/ns#>
> SELECT DISTINCT ?status ?x ?label
> WHERE {
>  {
>   ?x a rdf:Property .
>   ?x rdfs:label ?label .
>   ?x vs:term_status ?status .
>  } UNION {
>   ?x a rdfs:Class .
>   ?x rdfs:label ?label .
>   ?x vs:term_status ?status .
>  }
> }
> ORDER BY ?status
>
> Or just click on:
>
> <http://xmlarmyknife.org/api/rdf/sparql/query?default-graph-uri=http%3A%2F%2Fxmlns.com%2Ffoaf%2F0.1%2Findex.rdf&query=PREFIX+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0D%0APREFIX+rdfs%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%3E%0D%0APREFIX+vs%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2003%2F06%2Fsw-vocab-status%2Fns%23%3E%0D%0ASELECT+DISTINCT+%3Fstatus+%3Fx+%3Flabel%0D%0AWHERE+%7B%0D%0A%7B%0D%0A++%3Fx+a+rdf%3AProperty+.%0D%0A++%3Fx+rdfs%3Alabel+%3Flabel+.%0D%0A++%3Fx+vs%3Aterm_status+%3Fstatus+.%0D%0A%7D+UNION+%7B%0D%0A++%3Fx+a+rdfs%3AClass+.%0D%0A++%3Fx+rdfs%3Alabel+%3Flabel+.%0D%0A++%3Fx+vs%3Aterm_status+%3Fstatus+.%0D%0A%7D%0D%0A%7D%0D%0AORDER+BY+%3Fstatus&format=html>
>
> Biiiig URI :-)
>
> Damian
>   
Dan, Damian, and others they may not have seen my IRC link-dumps,

Here are variety of FOAF Views built using:
1. RDF Browser [1]
2. SPARQL QBE [2]
3. Raw SPARQL Endpoint [3]

Enabling you to explore:

- FOAF Overview via a Linked Data Page (nee: Dynamic Data Page) [4]
- FOAF Overview by Term Status via Linked Data Page [5]
- FOAF Overview SPARQL Query (.rq) [6]
- FOAF Overview by Term Status [7]
- FOAF Overview via OpenLink RDF Browser [8]


Links:
1. http://dbpedia.openlinksw.com:8890/DAV/JS/rdfbrowser/index.html
2. http://dbpedia.openlinksw.com:8890/isparql
3. http://dbpedia.openlinksw.com/sparql
4. 
http://dbpedia.openlinksw.com:8890/DAV/home/demo/dataweb/linked_data_pages/foaf_overview.isparql
5. 
http://dbpedia.openlinksw.com:8890/DAV/home/demo/dataweb/linked_data_pages/foaf_overview_by_status.isparql
6. 
http://dbpedia.openlinksw.com:8890/DAV/home/demo/dataweb/queries/foaf_overview.rq
7. 
http://dbpedia.openlinksw.com:8890/DAV/home/demo/dataweb/queries/foaf_overview_by_status.rq
8. http://tinyurl.com/2hpeau


-- 


Regards,

Kingsley Idehen	      Weblog: http://www.openlinksw.com/blog/~kidehen
President & CEO 
OpenLink Software     Web: http://www.openlinksw.com






More information about the foaf-dev mailing list