cts:triples( [$subject as xs:anyAtomicType*], [$predicate as xs:anyAtomicType*], [$object as xs:anyAtomicType*], [$operator as xs:string*], [$options as xs:string*], [$query as cts:query?], [$forest-ids as xs:unsignedLong*] ) as sem:triple*
Returns values from the triple index. If subject, predicate, and object are given, then only triples with those given component values are returned. Triples can be returned in any of the sort orders present in the triple index.
Parameters | |
---|---|
subject | The subjects to look up. When multiple values are specified, the query matches if any value matches. When the empty sequence is specified, then triples with any subject are matched. |
predicate | The predicates to look up. When multiple values are specified, the query matches if any value matches. When the empty sequence is specified, then triples with any subject are matched. |
object | The objects to look up. When multiple values are specified, the query matches if any value matches. When the empty sequence is specified, then triples with any subject are matched. |
operator |
If a single string is provided it is treated as the operator for the $object values. If a sequence
of three strings are provided, they give the operators for $subject, $predicate and $object in turn.
The default operator is "=".
Operators include:
|
options |
Options. The default is ().
Options include:
|
query |
Only include values in fragments selected by the cts:query ,
and compute frequencies from this set of included values.
The values do not need to match the query, but they must occur in
fragments selected by the query.
The fragments are not filtered to ensure they match the query,
but instead selected in the same manner as
"unfiltered" cts:search
operations. If a string
is entered, the string is treated as a cts:word-query of the
specified string.
|
forest-ids | A sequence of IDs of forests to which the search will be constrained. An empty sequence means to search all forests in the database. The default is (). |
Only one of "eager" or "lazy" may be specified in the options parameter. If neither "eager" nor "lazy" is specified, then the default is "lazy".
Only one of "any", "document", "properties", or "locks" may be specified in the options parameter. If none of "any", "document", "properties", or "locks" are specified and there is a $query parameter, then the default is "document". If there is no $query parameter then the default is "any".
Only one of the "order-pso", "order-sop", or "order-ops" options may be specified in the options parameter. If none is specified, then the default is chosen to most efficiently retrieve the required values.
Only one of the "checked" or "unchecked" options may be specified in the options parameter. If neither "checked" nor "unchecked" are specified, then the default is "checked".
cts:triples(sem:iri("http://subject"), sem:iri("http://predicate"), "object") => The triples with the given subject, predicate, and object.