You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by Joseph Daryl Locsin <da...@gmail.com> on 2012/10/19 04:32:16 UTC
Passing two URI for a single concept but different address - linking data
Hello,
If for example I have an Accommodation class and an instance of it, say
LaBrezaHotel stored locally within the same server. in URI terms it can be
shown as
*https://m<https://mail.google.com/mail/u/0/?shva=1#drafts/13a76c600efd685e>
ynamespace/my.owl#Accommodation*
*https://m<https://mail.google.com/mail/u/0/?shva=1#drafts/13a76c600efd685e>
ynamespace/**my.owl**#LaBrezaHotel*
which I created by creating an individual...
*Individual labreza = onto.createIndividual(NAMESPACE+"LaBrezaHotel",
accommodation); //accommodation is an OntClass*
I can easily search for it programmatically in Jena by,
*OntClass acc = onto.getOntClass(mynamespace + "Accommodation");*
*ExtendedIterator<? extends OntResource> list = acc.listInstances(); //
something like this*
but what if I want to extend my search by inserting an additional namespace
to the individual LaBrezaHotel... say
*https:// <https://mail.google.com/mail/u/0/?shva=1#drafts/13a76c600efd685e>
www.labrezahotel.com/labreza.owl#LaBrezaHotel*
*//the reason behind this is, my server may not have the complete property
list of LaBrezaHotel and so I am hoping to link it to the main site that
natively updates the contents of //the said individual*
*
*
*how do I do it using OWL/RDF and programmatically in Jena?*
What I am thinking is something like
*<owl:Class*
*rdf:about="**https://m<https://mail.google.com/mail/u/0/?shva=1#drafts/13a76c600efd685e>
ynamespace/**my.owl**#LaBrezaHotel"*
*rdf:about="**https://<https://mail.google.com/mail/u/0/?shva=1#drafts/13a76c600efd685e>
www.labrezahotel.com/labreza.owl#LaBrezaHotel" >*
*<rdf:type **https://m<https://mail.google.com/mail/u/0/?shva=1#drafts/13a76c600efd685e>ynamespace/my.owl#Accommodation
/>*
*// something like this...*
*
*
*How is linking data implemented in OWL / Jena ?*
Regards,
Daryl