The Sun BabelFish Blog
Don't panic !
GET my meaning?
Don't know what someone is saying? Just GET it!
RDF is deeply RESTful. You can GET every concept, relation and fact the exact same way you GET a web page. Don't know what the relations in the N3 below mean?
@prefix : ≤http://bblfish.net/work/atom-owl/2006-06-06/#≥ .
@prefix foaf: ≤http://xmlns.com/foaf/0.1/≥ .
[ a :Entry;
:author [
foaf:homePage ≤http://bblfish.net/≥;
foaf:aimChatId "unbabelfish";
foaf:knows ≤http://www.w3.org/People/Berners-Lee/card#i≥
];
:title "some entry";
] .
No trouble you can GET them with a browser (for the human readable version) or with a command line tool such as curl for the machine readable ones.
So for example, do you want to know what :author means?
Well, just prepend the prefix for ":" to it and GET http://bblfish.net/work/atom-owl/2006-06-06/#author
(you know, click it baby) [1]. Or use the following command line
curl -L -H 'Accept: application/rdf+xml' http://bblfish.net/work/atom-owl/2006-06-06/#author
for the xml/rdf version, or even better try
curl -i -L -H 'Accept: text/rdf+n3' http://bblfish.net/work/atom-owl/2006-06-06/#author
for the more readable N3 [2].
If you have cwm.py (which you really should!) then you can also use it to fetch files and convert them to the format you prefer. So if you prefer to read your foaf file in N3 get it like this:
cwm.py http://xmlns.com/foaf/0.1/ --n3
Notes
- This does not work as nicely with Safari which looses the "#" information after a redirect. Until they fix that bug, you may be happier using Firefox.
- This works with AtomOwl because I do offer different rdf representations of the ontology. Other ontologies may not. In which case cwm.py is one's best friend, as mentioned further below in this post.
- for more on this subject also see my Reference and Inference.
Posted at 12:12PM Jul 11, 2006 [permalink/trackback] by Henry Story in SemWeb |
Note on comments:
- I know the forms below are a little small. We have asked for years for this to be changed, but I don't think it's going to happen soon. In Apple's Safari you can resize the entry box with you mouse. For people using other browsers click on this javascript link, that should allow you to resize your form.
- Comments are moderated, so they will take a little time to appear. Currently moderation means I have to read them personally. Hopefully with OpenId deployment, this will become more automated.
- HTML markup no longer works here, due to some decision made somewhere. Sorry about that.
- If you are having trouble posting, it may be that you need javascript to be enabled. I don't think javascript should be needed for submitting a form, but that's the way it is here.
- Check your comments by using the preview button...
