This document describes the result of the evaluation of TriQL
This document is created by Yoshio Fukushige (fukushige.yoshio@jp.panasonic.com).
This evaluation is based on "TriQL - A Query Language for Named Graphs" (http://www.wiwiss.fu-berlin.de/suhl/bizer/TriQL/), which is called hereafter "the document." in this evaluation.
SELECT ?family , ?given FROM <http://example.org/JohnzVcard.rdf> WHERE (?vcard vcard:FN "John Smith") (?vcard vcard:N ?name) (?name vcard:Family ?family) (?name vcard:Given ?given) (?name vcard:age ?age) (?name vcard:shoeSize ?shoeSize) AND ?shoeSize > 5 AND ?age >= ?shoeSize USING vcard FOR <http://www.w3.org/2001/vcard-rdf/3.0#>
TriQL+
WHERE (?vcard vcard:FN "John Smith") (?vcard vcard:N ?name) (?name vcard:Family ?family) (?name vcard:Given ?given) (?name vcard:age ?age) (?name vcard:shoeSize ?shoeSize)
TriQL+
SELECT ?family , ?given
From the spec: [[ The variable "?x" will be bound to the label of the subject resource. All such "x" are returned ]]
TriQL-
Has support for equality and comparison operators for integers and matching operation for strings
TriQL-
If the matched triples are in a Named Graph, the user could get all triples in the graph, for example by the following query. But it would be the case in very limited situation.
And returning all the triples is not returing the matched subgraph in the intended sense.
SELECT ?subj, ?pred, ?obj FROM <http://example.org/JohnzVcard.rdf> WHERE ?graph (?vcard vcard:FN "John Smith" . ?vcard vcard:N ?name . ?name vcard:Family ?family . ?name vcard:Given ?given) ?name vcard:age ?age. ?name vcard:shoeSize ?shoeSize ?subj ?pred ?obj) AND ?shoeSize > 5 AND ?age >= ?shoeSize USING vcard FOR <http://www.w3.org/2001/vcard-rdf/3.0#>
TriQL+
The EBNF Grammar does not allow file names,for example "example.trig", to appear after "FROM" , but in an example appeared in the document, it appears.
TriQL+
AND ?shoeSize > 5 AND ?age >= ?shoeSize AND ?date > "2003-01-01"^^xsd:date(the last example is taken from the document)
TriQL+
TriQL queries read like a sentence (like RDQL).
TriQL+
This point is what the Named Graphs are for.
SELECT ?family, ?given, ?graph FROM <http://example.org/JohnzVcard.rdf> WHERE ?graph (?vcard vcard:FN "John Smith" . ?vcard vcard:N ?name . ?name vcard:Family ?family . ?name vcard:Given ?given) ?name vcard:age ?age. ?name vcard:shoeSize ?shoeSize) AND ?shoeSize > 5 AND ?age >= ?shoeSize USING vcard FOR <http://www.w3.org/2001/vcard-rdf/3.0#>
TriQL+
One can specify more than one Source Selector