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

  1. 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.
  2. 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.
  3. for more on this subject also see my Reference and Inference.
Comments:

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