question on the RDF(a) API...

Guys,

for my understanding and possible editorial comment...

Say that I have a project collecting my foaf data. So I can say

name  = ivan.get("http://xmlns.com/foaf/0.1/name");

and this should return "Ivan Herman".

However, if I say

homepage = ivan.get("http://xmlns.com/foaf/0.1/homepage");

do I get the 'homepage' as a string, ie, the string "http://www.ivan-herman.net/"? In other words, is it so that the Projection interface essentially merges (or rather 'hides') the concepts of literals and uris? 

Also, what happens if there is a blank node as an object? Eg.

<me> a foaf:Person ;
   foaf:knows [
        foaf:name "Manu Sporny";
   ] .

and then:

ivan = data.getProjection("<me>") ;
b = ivan.get("foaf:knows") ; 

What is in "b"?

Ivan

----
Ivan Herman, W3C Semantic Web Activity Lead
Home: http://www.w3.org/People/Ivan/
mobile: +31-641044153
PGP Key: http://www.ivan-herman.net/pgpkey.html
FOAF: http://www.ivan-herman.net/foaf.rdf

Received on Monday, 9 May 2011 11:19:17 UTC