select $PERSON, $PLACE from instance-of($PERSON, person), born-in($PLACE : place, $PERSON : person), $PLACE /= i"http://psi.ontopedia.net/Paris" ?
I would recommend that you read the TAO of Topic Maps: http://www.ontopia.net/topicmaps/materials/tao.html
-dan
--
You received this message because you are subscribed to the Google Groups "ontopia" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ontopia+u...@googlegroups.com.
To post to this group, send email to ont...@googlegroups.com.
Visit this group at http://groups.google.com/group/ontopia.
For more options, visit https://groups.google.com/d/optout.
Pierre,
You could also simply replace your "Paris" with paris. (I think – it’s been a while since I worked with this stuff J)
The point is that tolog requires identifiers, not names (unless you specifically use the topic-name predicate). Whether you use the (more robust) subject identifier (as Dan suggests), or the item identifier (as above), is up to you. But since you’ve used item identifiers elsewhere (e.g. instance-of($PERSON, person), I thought I’d just mention this. Just remember that item identifiers are case-sensitive and don’t require quotes.
Good luck!
Steve
Pierre,Tolog is a topic map query language so you need to use topic map constructs when querying. Here is the query to find all people not born in Paris (actually, all people that are born somewhere that is not Paris):select $PERSON, $PLACE from instance-of($PERSON, person), born-in($PLACE : place, $PERSON : person), $PLACE /= i"http://psi.ontopedia.net/Paris" ?
I would recommend that you read the TAO of Topic Maps: http://www.ontopia.net/topicmaps/materials/tao.html
Pierre,
You could also simply replace your "Paris" with paris. (I think – it’s been a while since I worked with this stuff J)
The point is that tolog requires identifiers, not names (unless you specifically use the topic-name predicate). Whether you use the (more robust) subject identifier (as Dan suggests), or the item identifier (as above), is up to you. But since you’ve used item identifiers elsewhere (e.g. instance-of($PERSON, person), I thought I’d just mention this. Just remember that item identifiers are case-sensitive and don’t require quotes.
Good luck!