Igor,

 

You can create a SPIN rule and attach it to the class Person. The rule would be 
along the lines of:

 

CONSTRUCT {?this ?p ?child} 

WHERE 

{?p rdfs:subPropertyOf* person:hasChild. 

?this person:hasSpouse ?spouse. 

?spouse ?p ?child}

 

You will need to make hasSon and hasDaughter subproperties of hasChild. Also, I 
believe you meant to say that hasSpouse is a symmetric property.

 

For a quick introduction to SPIN rules, take a look at 
http://composing-the-semantic-web.blogspot.com/2009/01/video-sparql-based-inferencing-and.html.
 

 

Irene

 

 

From: [email protected] [mailto:[email protected]] 
On Behalf Of Igor Lacik
Sent: Tuesday, October 21, 2014 6:15 AM
To: [email protected]
Subject: [topbraid-users] TBC Getting started tutorial

 

Hello,

 

I am starting to learn semantic web technologies. I went through a this 
tutorial <http://www.topquadrant.com/docs/marcom/TBC-Getting-Started-Guide.pdf> 
 and created the ontology for Shakespeare and his family (can be found in the 
attachment).

 

Now I wanted to play around a bit more.

Shakespeare has an inverse hasSpouse property where I defined Anne Hathaway as 
a spouse.

 

 
<https://lh3.googleusercontent.com/-XyJtCyOg5HQ/VEYx9nxC1XI/AAAAAAAAAOI/M1aldi1SF3g/s1600/ShakespeareOntology.png>
 

I would like to be able to infer, that if a spouse of an object has children, 
all these children also belong to the said spouse.

How does one do this?

 

 

-- 
-- You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include Enterprise Vocabulary 
Network (EVN), TopBraid Composer, TopBraid Live, TopBraid Insight, 
SPARQLMotion, SPARQL Web Pages and SPIN.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

-- 
-- You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include Enterprise Vocabulary 
Network (EVN), TopBraid Composer, TopBraid Live, TopBraid Insight, 
SPARQLMotion, SPARQL Web Pages and SPIN.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to