James Gosling has a foaf name

And so does Tim Bray, Greg Papadopoulos, Jonathan Schwartz, Sun Microsystems, and Java. All thanks to the great work of the DBPedia people, a loose network of highly skilled distributed self selected avant garde force de frappe, who are extracting all the metadata possible from Wikipedia and making it available as hyperdata, ready to be linked to. :-)

You can browse their information on the web, or with the Tabulator generic data browser which will merge information it finds into one large graph as you explore it. As a result of this I can now add Tim Bray and James Gosling to my foaf file (foaf icon), by adding the following N3 statements:

:me foaf:knows [ = <http://dbpedia.org/resource/James_Gosling>;
                    a foaf:Person;
                    foaf:name "James Gosling" ],
               [ = <http://dbpedia.org/resource/Tim_Bray>;
                    a foaf:Person;
                    foaf:name "Tim Bray" ] .

It is worth looking at how DBPedia works. http://dbpedia.org/resource/James_Gosling is now a Universal Resource Identifier for James Gosling. You cannot fetch James because he is not an information resource, ie, he is not a document, though he is very resourceful, and full of interesting information. You can tell that James is not an information resource because you can't copy him easily. So when you do an HTTP GET on that URI you get the following:

hjs@bblfish:0$ curl -I http://dbpedia.org/resource/James_Gosling
HTTP/1.1 303 See Other
Date: Sat, 15 Dec 2007 17:57:54 GMT
Server: Apache-Coyote/1.1
Vary: Accept,User-Agent
Location: http://dbpedia.org/page/James_Gosling
Content-Type: text/plain
Content-Length: 90

ie you get a redirect to the page about James Gosling. This is because curl by default asks for the html representation of resources. Had you sepecified that you wanted the machine readable rdf/xml representation you would get a redirect to another resource:

hjs@bblfish:0$ curl -I -H "Accept: application/rdf+xml" http://dbpedia.org/resource/James_Gosling
HTTP/1.1 303 See Other
Date: Sat, 15 Dec 2007 18:01:10 GMT
Server: Apache-Coyote/1.1
Vary: Accept,User-Agent
Location: http://dbpedia.openlinksw.com:8890/sparql?default-graph-uri=http%3A%2F%2Fdbpedia.org&query=DESCRIBE+%3Chttp%3A%2F%2Fdbpedia.org%2Fresource%2FJames_Gosling%3E
Content-Type: text/plain
Content-Length: 210

Here you get a redirect to a SPARQL query to DESCRIBE James Gosling. To get the full content, in N3 try:

hjs@bblfish:0$ curl -L -H "Accept: text/rdf+n3" http://dbpedia.org/resource/James_Gosling 

the -L flag follows all the redirects...

Comments:

A space, instead of an underscore, crept into your href at "It is worth looking at how DBPedia works...," so the redirect does not happen through the link. With the underscore, just as you describe it.

Posted by Grady on December 15, 2007 at 01:06 PM CET #

Thanks Grady. I fixed that.

Posted by Henry Story on December 15, 2007 at 01:15 PM CET #

I already have "Tabulator" but no "lights go off" on this page ...

Posted by Colm Kennedy on December 15, 2007 at 02:27 PM CET #

Hi Colm,

Do you have the Tabulator plugin installed? If you do you will not see the tabulator, as you would if you were to click on my foaf file. Firefox does a GET on the resource asking for a text/html representation and so receives the html representation by default, which it knows to display. Perhaps future versions of the plugin will work like the Semantic Radar plugin and detect links to rdf representations, and then offer you to view those tabulatoresqueley.

The better way to have this work is to go to the Tabulator page
http://www.w3.org/2005/ajar/tab
and try the in browser development version.

Or you can click on my foaf file, which will get the Tabulator going, and then open up the links for James Gosling or Tim Bray. I noticed that James' file is quite large and does give Tabulator some digestion problems. Do keep in mind that it is all written in JavaScript, amazingly enough.

Posted by Henry Story on December 15, 2007 at 02:43 PM CET #

Colm, there is an even simpler solution to get to the Tabulator view of rdf and that is to click on either one of the "view as rdf/xml" or "view as N3" links at the bottom of the page, you will have reached when clicking on say

http://dbpedia.org/resource/Greg_Papadopoulos

Those are links to typed representations, so you will get the right mime type generated by the server.

Posted by Henry Story on December 15, 2007 at 03:41 PM CET #

That works fine now. Thanks!.

Posted by Colm Kennedy on December 16, 2007 at 09:45 AM CET #

For those trying to make the Tabulator Firefox extension work more seemlessly you need to add an accept header for rdf. Instructions here:
http://eturnerx.blogspot.com/2008/03/tabulator-firefox-extension.html

Posted by Emmanuel King Turner on March 17, 2008 at 01:48 AM CET #

Post a Comment:
Comments are closed for this entry.
About

bblfish

Search

Archives
« April 2014
MonTueWedThuFriSatSun
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
    
       
Today