On 18/12/11 05:09, Miso Tomovski wrote:
Hi,
I wonder, if there is an easy way to find the connection between two resources
using the Jena Inferencing Model. For example, I am using the FOAF ontology and
I want to find the connection between a resource
http://www.example.com/social#Miso and a resource
http://www.example.org/social#Hardware.The connection can be found in the
following statements:
http://www.example.com/social#Miso foaf:knows
http://www.example.com/social#Martin
http://www.example.com/social#InformationTech foaf:member
http://www.example.com/social#Martin
http://www.example.com/social#InformationTech foaf:topic_interest
http://www.example.com/social#Hardware
So is there an easy way to automatically find all these statements using the
Jena Inferencing Model ?
Tnx in advance .
Miso
Not that I know of.
If you know the properties and not the resources for the connection:
SELECT *
{
<http://www.example.com/social#Miso> foaf:knows ?X .
?X foaf:member ?Y
?Y foaf:topic_interest <http://www.example.com/social#Hardware>
}
or other SPARQL queries for different amounts of what you know and what
you want to find out.
Andy