Tag Triples Structured Query
Examples
Basically a ripoff of (an old version of) sparql, but using tags instead of uris and qnames
Simple query with 2 constraints
select ?person, ?age
where (?person name PhilDawes)
(?person age ?age)
Optional matches also supported
select ?person, ?age
where (?person name PhilDawes)
[(?person age ?age)]
(patterns blocks in square braces are optional)
Patterns can be bound to a particular graph by specifying it before the pattern:
select ?person, ?age
where ?g(?person name PhilDawes)
?g(?person age ?age)
(i.e. the above ensures that the name and age statements are from the same graph)
Substring text searches can be performed using the _SUBSTRS_ predicate. E.g.
select ?person, ?age
where (?person name ?name)
(?name _SUBSTRS_ "phil dawes")
Finds resources with name properties that contain the substring 'phil' and the substring 'dawes'