XTM
RDF
XSLT
XWATL
XLink
XML Bars
Member of TopicMaps.Org
Sample TMQL Queries in RDFDB-QL syntax using SQUISH.
Find all classes and their instances .
query
SELECT ?t, ?class FROM http://www.cogx.com/xtm2rdf/seacr.rtm WHERE (rtm::role-class ?y ?z)(rtm::indicatedBy ?z ?class) (rtm::role-instance ?y ?z1)(rtm::indicatedBy ?z1 ?t) USING rtm FOR http://www.cogx.com/xtm2rdf/rtm.rdf#
Find all topics with names .
query
SELECT ?t, ?name FROM http://www.cogx.com/xtm2rdf/seacr.rtm WHERE (rtm::role-topic ?y ?z)(rtm::indicatedBy ?z ?t) (rtm::role-name ?y ?namembr)(rtm::name ?namembr ?name) USING rtm FOR http://www.cogx.com/xtm2rdf/rtm.rdf#
Find all topics with names in constrained scopes .
query
SELECT ?t, ?name, ?theme FROM http://www.cogx.com/xtm2rdf/seacr.rtm WHERE (rtm::role-topic ?a ?z) (rtm::indicatedBy ?z ?t) (rtm::role-name ?a ?z1)(rtm::name ?z1 ?name) (rtm::validIn ?a ?s)(rtm::indicatedBy ?s ?theme) USING rtm FOR http://www.cogx.com/xtm2rdf/rtm.rdf#
Find all topics with names in a certain scope (taxon) .
query
SELECT ?t, ?name FROM http://www.cogx.com/xtm2rdf/seacr.rtm WHERE (rtm::role-topic ?a ?z) (rtm::indicatedBy ?z ?t) (rtm::role-name ?a ?z1)(rtm::name ?z1 ?name) (rtm::validIn ?a ?s)(rtm::indicatedBy ?s this::taxon) USING rtm FOR http://www.cogx.com/xtm2rdf/rtm.rdf# this FOR http://www.cogx.com/xtm2rdf/seacr.rtm#
Find all topics with a specific name (Echinodermata).
query
SELECT ?t FROM http://www.cogx.com/xtm2rdf/seacr.rtm WHERE (rtm::role-topic ?a ?z) (rtm::indicatedBy ?z ?t) (rtm::role-name ?a ?z1)(rtm::name ?z1 Echinodermata) USING rtm FOR http://www.cogx.com/xtm2rdf/rtm.rdf# this FOR http://www.cogx.com/xtm2rdf/seacr.rtm#
Find all topics with occurrences whose scopes match a specific scope (urn:padi-diver-no:9999999999) .
query
SELECT ?t, ?resource FROM http://www.cogx.com/xtm2rdf/seacr.rtm WHERE (rtm::role-topic ?a ?z) (rtm::indicatedBy ?z ?t) (rtm::validIn ?a ?s)(rtm::indicatedBy ?s urn:padi-diver-no:9999999999) (rtm::role-occurrence ?a ?z1)(rtm::constitutedBy ?z1 ?resource ) USING rtm FOR http://www.cogx.com/xtm2rdf/rtm.rdf# this FOR http://www.cogx.com/xtm2rdf/seacr.rtm#
Find all topics with specific resources as occurrences whose scopes match a specific scope (urn:padi-diver-no:9907571524) .
query
SELECT ?t, ?resource FROM http://www.cogx.com/xtm2rdf/seacr.rtm WHERE (rtm::role-topic ?a ?z) (rtm::indicatedBy ?z ?t) (rtm::validIn ?a ?s)(rtm::indicatedBy ?s urn:padi-diver-no:9907571524) (rtm::role-occurrence ?a ?z1)(rtm::constitutedBy ?z1 ?resource) USING rtm FOR http://www.cogx.com/xtm2rdf/rtm.rdf# this FOR http://www.cogx.com/xtm2rdf/seacr.rtm#
Find all topics playing specific role in any association whose scope match a specific scope (y2001) .
query
SELECT ?a, ?t FROM http://www.cogx.com/xtm2rdf/seacr.rtm WHERE (rtm::validIn ?a ?s)(rtm::indicatedBy ?s this::y2001) (this::employer ?a ?m)(rtm::indicatedBy ?m ?t) USING rtm FOR http://www.cogx.com/xtm2rdf/rtm.rdf# this FOR http://www.cogx.com/xtm2rdf/seacr.rtm#
Find all topics playing roles in associations that have a specific role (employer) and whose scopes match a specific scope (y2001) .
query
SELECT ?role, ?t FROM http://www.cogx.com/xtm2rdf/seacr.rtm WHERE (rtm::validIn ?a ?s)(rtm::indicatedBy ?s this::y2001) (this::employer ?a ?m) (?role ?a ?m1)(rtm::indicatedBy ?m1 ?t) USING rtm FOR http://www.cogx.com/xtm2rdf/rtm.rdf# this FOR http://www.cogx.com/xtm2rdf/seacr.rtm#
Company
Training
Contact us
Professional XML Meta Data
This web site is generated with XML Topic Maps and XSLT
©Cogitative Web Solutions by
Cogitech, Inc