sparqling the opera community

as suggested on the swig scratchpad, we should search for examples.

ok, what we have is a SPARQL conformant query interface to 2mio triples that come from a community website (users, forums, photos, etc)

I did a little blind shots, not very amusing. By mistake, I did a full table scan on all instances once (* type *) and got a 100mb file with uris to play with. None of the uris has a DESCRIBE (argh, why isn’t CBD in SPARQL yet).

so, this for example doesn’t work:

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
DESCRIBE <http://my.opera.com/butchevans/homes/albums/10149/PA140033.JPG>

typical uris and types I found:
http://my.opera.com/_1/xml/foaf#_1
http://my.opera.com/Fietsy/xml/foaf#Fietsy
– these are of type foaf:Person

http://my.opera.com/masterpdc/homes/albums/2158/IMG_1557.JPG
http://my.opera.com/jessegoodwin/homes/albums/2156/DSCN0322.JPG
– these are of type foaf:Image

http://my.opera.com/shawncl/albums/show.dml?id=11201
this has got type gallery:
http://my.opera.com/community/xmlns/2005/gallery#Gallery

these are blogs:
http://my.opera.com/matthewserg/blog/
type: http://purl.org/dc/elements/1.1/Collection

a document:
http://my.opera.com/olli/blog/show.dml/2235
type: http://xmlns.com/foaf/0.1/Document

groups:
http://my.opera.com/groops/xml/foaf#groops
http://my.opera.com/iran%20sayeha/xml/foaf#iran_sayeha
type: http://xmlns.com/foaf/0.1/Group

ok, looking at the opera community site we see that there is a guy named Words who is member of the week, meaning he is very active. So sparqling for Words looks like this:

PREFIX rdfs:
<http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf:
<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT ?p ?o WHERE
{<http://my.opera.com/Words/xml/foaf#Words> ?p ?o.}

Well, this brought us his foaf:knows relations and his weblog uri. cool. Lets make a backlink search:

PREFIX rdfs:
<http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf:
<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT ?s ?p WHERE { ?s ?p
<http://my.opera.com/Words/xml/foaf#Words>.}

this brought some pictures he created, connected via dc:creator uri: http://purl.org/dc/elements/1.1/creator.

and much more….

ok, thsi should be enough to get people on the track to build guis and web 2.0 stuff on top of opera community.

thanks to opera: the users data is users data now, not theirs. cool move.