http://tmql4j.topicmapslab.de/
http://www.isotopicmaps.org/tmql/tmql.html
http://kill.devc.at/system/files/language.html
Some of them works as expected, some suddenly returns nothing. I post example queries here and hope that someone shall point me to my errors:
Basic Navigation - works
- Code: Select all
%prefix core http://wandora.org/si/core/
core:wandora-class << types [ . >> characteristics tm:name >> atomify == "AAA" ] << types [ . >> characteristics tm:name >> atomify == "BBB" ]
Navigation with Sugar - works
- Code: Select all
%prefix core http://wandora.org/si/core/
core:wandora-class >> instances [ . / tm:name == "AAA" ] >> instances [ . / tm:name == "BBB" ]
Select by Name Basic - fails
- Code: Select all
%prefix core http://wandora.org/si/core/
select $t
where
$t >> characteristics tm:name >> atomify == "AAA"
Select by Name Sugar - fails
- Code: Select all
%prefix core http://wandora.org/si/core/
select $t
where
$t / tm:name == "AAA"
Select by Some Navigation - works
- Code: Select all
%prefix core http://wandora.org/si/core/
select $t
where
some $t in core:wandora-class << types [ . / tm:name == "AAA" ] << types [ . / tm:name == "BBB" ] satisfies true
Select by Some Type and Name - fails
- Code: Select all
%prefix core http://wandora.org/si/core/
select $t
where
some $t in core:wandora-class << types [ . / tm:name == "AAA" ] << types satisfies $t / tm:name == "BBB"
Select by Type - works
- Code: Select all
%prefix core http://wandora.org/si/core/
select $t
where
$t isa core:wandora-class << types [ . / tm:name == "AAA" ]
Select by Type and Name - fails
- Code: Select all
%prefix core http://wandora.org/si/core/
select $t
where
$t isa core:wandora-class << types [ . / tm:name == "AAA" ]
& $t / tm:name == "BBB"