Loading TOC...

MarkLogic Server 11.0 Product Documentation
cts:triple-value-statistics

cts:triple-value-statistics(
   [$values as xs:anyAtomicType*],
   [$forest-ids as xs:unsignedLong*]
) as element(triple-value-statistics)*

Summary

Returns statistics from the triple index for the values given. Note that these are estimates, rather than exact counts.

Parameters
values The values to look up.
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 ().

Example

cts:triple-value-statistics((
  sem:iri("http://www.w3.org/2000/01/rdf-schema#subClassOf"),
  sem:iri("http://swat.cse.lehigh.edu/onto/univ-bench.owl#worksFor")
))
=>
<triple-value-statistics count="1104552010" unique-subjects="190980967" unique-predicates="587" unique-objects="280592619" xmlns="cts:triple-value-statistics">
  <triple-value-entries>
    <triple-value-entry count="86">
      <triple-value>http://www.w3.org/2000/01/rdf-schema#subClassOf</triple-value>
      <subject-statistics count="0" unique-predicates="0" unique-objects="0"/>
      <predicate-statistics count="86" unique-subjects="81" unique-objects="51"/>
      <object-statistics count="0" unique-subjects="0" unique-predicates="0"/>
    </triple-value-entry>
    <triple-value-entry count="5754107">
      <triple-value>http://swat.cse.lehigh.edu/onto/univ-bench.owl#worksFor</triple-value>
      <subject-statistics count="3" unique-predicates="3" unique-objects="3"/>
      <predicate-statistics count="5754099" unique-subjects="5754099" unique-objects="856163"/>
      <object-statistics count="4" unique-subjects="4" unique-predicates="4"/>
    </triple-value-entry>
  </triple-value-entries>
</triple-value-statistics>

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.