[topicmapmail] tm4j / tolog / query for occurrences
Lars Marius Garshol
larsga at garshol.priv.no
Mon Aug 21 16:03:11 EDT 2006
* Tobias Redmann
>
> I want to get all Topics of a TopicMap by given occurrence (e.g.
> http://www.mydomain.org).
>
> I tried to following:
>
> select
> $TOPIC
> from
> occurrence($TOPIC, $OCC),
> resource($OCC, "http://www.mydomain.org")
> ?
Your query is correct, and would work on the OKS. (If you download
OKS Samplers you can try for yourself.) I think the problem is that
TM4J only supports the first tolog version, which only supported
querying by associations (of known types).
It's not terribly hard to extend the tolog support in TM4J to add the
missing predicates, but somebody needs to sit down and do it...
--
Lars Marius Garshol, Ontopian http://www.ontopia.net
+47 98 21 55 50 http://www.garshol.priv.no
More information about the topicmapmail
mailing list