Hi,

 

    I am a beginner for Semantic Web and currently working with JENA. I
came across the attached file FOAFFriends.rdf that could be read into a
Model with the following statement:

 

private void populateFOAFFriends(){

            _friends = ModelFactory.createOntologyModel();

            InputStream inFoafInstance =
FileManager.get().open("Ontologies/FOAFFriends.rdf");

            _friends.read(inFoafInstance,defaultNameSpace);

}

 

Also, here the defaultNameSpace is: 

 

static String defaultNameSpace = 
http://semwebprogramming.org/2009/ont/chp2#

 

I have the following question:

The attached file has declarations such as rdf:ID="me". I believe from
my reading that if there is rdf:ID declaration in a RDF document, then
it should also contain xml:base declaration, but the file is missing
this declaration. So, how is JENA successfully able to read the RDF
file? Where does it get the xml:base declaration from to determine the
complete URI of "me"? Does it do something with the defaultnamespace? 

 

If you say defaultnamespace to be the xml:base, then my question would
be that the xml:base should not contain the # symbol at the end but the
declaration here for defaultnamespace does. How do you justify this
please?

 

A quick reply would be highly appreciated.=

 

Thanks

With Regards,

Abhishek S


This email was sent to you by Thomson Reuters, the global news and information 
company. Any views expressed in this message are those of the individual 
sender, except where the sender specifically states them to be the views of 
Thomson Reuters.

Reply via email to