* Lars Marius Garshol
|
| select $TOPIC from
| occurrence($TOPIC, $OCC), resource($OCC, "http://foo/document1.pdf")?
* Jan Algermissen
|
| could you explain to me in prose what this query does?
The first predicate would essentially build a table with two columns
and one row for every occurrence in the topic map. The second
predicate would take that table and remove all rows where the
occurrence does not have "http://foo/document1.pdf" as the resource.
(Note that this is what happens conceptually. In the OKS this would be
executed differently, but this is the conceptual interpretation of the
query.)
--
Lars Marius Garshol, Ontopian <URL: http://www.ontopia.net >
GSM: +47 98 21 55 50 <URL: http://www.garshol.priv.no >
|