Re: TMQL - Proposal for a %base directive
Lars Heuer <[email protected]> Fri, 29 Apr 2011 17:09:41 +0200
| Newsgroups | gmane.text.xml.xtm.general |
|---|---|
| Organization | Semagia |
| Message-ID | <[email protected]> |
[...]
> It would effect any IRI and unqualified identifiers, yes.
> %base <http://psi.example.org/onto/>
> select $album
> where is-produced-by (production: $album, producer: tom-waits)
... aside from my proposal, I think you won't find much queries like
this in real life since you'd use more robust identifiers (subject
identifiers/locators)
%prefix onto <http://psi.example.org/onto/>
select $album
where onto:is-produced-by(onto:production: $album,
onto:producer: onto:tom-waits)
These queries are portable between different topic maps, of course.
Best regards,
Lars
--
Semagia
<http://www.semagia.com>
<http://www.topicmaps.de/mailinglist/> German Topic Maps mailing list
<http://tinytim.sourceforge.net/> Open Source Topic Maps engine
<http://mappa.semagia.com/> Mappa - Python Topic Maps engine