...
To get an idea of how it works, try the following iTQL query, which asks for information about all Service Definition objects in the repository:
Code Block |
---|
| sql |
---|
| sql |
---|
borderStyle | solidsql |
---|
|
select $object $modified from <#ri>
where $object <fedora-model:hasModel> <info:fedora/fedora-system:ServiceDefinition-3.0>
and $object <fedora-view:lastModifiedDate> $modified
|
...
In this example, we'll show how to extract a subgraph from the resource index using iTQL. Enter the following query text:
Code Block |
---|
| sql |
---|
| sql |
---|
borderStyle | solidsql |
---|
|
select $a $r $b from <#ri>
where $a <fedora-model:hasModel> <info:fedora/fedora-system:FedoraObject-3.0>
and $a $r $b
and $b <fedora-model:hasModel> <info:fedora/fedora-system:FedoraObject-3.0>
|
...
Syntax for Requesting Tuples
Code Block |
---|
| html |
---|
| html |
---|
borderStyle | solidhtml |
---|
|
http://localhost:8080/fedora/risearch?type=tuples
&flush=[*true* (default is false)]
&lang=*itql|sparql*
&format=*CSV|Simple|Sparql|TSV*
&limit=[*1* (default is no limit)]
&distinct=[*on* (default is off)]
&stream=[*on* (default is off)]
&query=*QUERY_TEXT_OR_URL*
|
Syntax for Requesting Triples
Code Block |
---|
| html |
---|
| html |
---|
borderStyle | solidhtml |
---|
|
http://localhost:8080/fedora/risearch?type=triples
&flush=[*true* (default is false)]
&lang=*spo|itql|sparql*
&format=*N-Triples|Notation 3|RDF/XML|Turtle*
&limit=[*1* or more (default is no limit)]
&distinct=[*on* (default is off)]
&stream=[*on* (default is off)]
&query=*QUERY_TEXT_OR_URL*
&template=[*TEMPLATE_TEXT_OR_URL* (if applicable)]
|