public class VoID extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
VoID.IVCount
|
Constructor and Description |
---|
VoID(org.openrdf.model.Graph g,
AbstractTripleStore tripleStore,
String[] serviceURI,
org.openrdf.model.Resource aDataset) |
Modifier and Type | Method and Description |
---|---|
protected static VoID.IVCount[] |
classUsage(AbstractTripleStore kb)
Return an efficient statistical summary for the class partitions.
|
protected static VoID.IVCount[] |
classUsage(AbstractTripleStore kb,
IV<?,?> civ,
VoID.IVCount[] classPartitionCounts)
Return the class partition statistics for the named graph.
|
void |
describeDataSet(boolean describeStatistics,
boolean describeNamedGraphs)
Describe the default data set (the one identified by the namespace
associated with the
AbstractTripleStore . |
protected void |
describeGraph(org.openrdf.model.Resource graph,
VoID.IVCount[] predicatePartitionCounts,
VoID.IVCount[] classPartitionCounts)
Describe a named or default graph.
|
protected void |
describeVocabularies(VoID.IVCount[] predicatePartitionCounts)
Describe the vocabularies which are in use in the KB based on the
predicate partition statistics.
|
protected static VoID.IVCount[] |
predicateUsage(AbstractTripleStore kb)
Return an array of the distinct predicates in the KB ordered by their
descending frequency of use.
|
protected static VoID.IVCount[] |
predicateUsage(AbstractTripleStore kb,
IV<?,?> civ,
VoID.IVCount[] predicatePartitionCounts)
Return the predicate partition statistics for the named graph.
|
public VoID(org.openrdf.model.Graph g, AbstractTripleStore tripleStore, String[] serviceURI, org.openrdf.model.Resource aDataset)
g
- Where to assemble the description.tripleStore
- The KB instance to be described.serviceURI
- The SPARQL service end point.aDefaultDataset
- The data set identifier that will be used on the description
(the bigdata namespace of the dataset is obtained from the
tripleStore).public void describeDataSet(boolean describeStatistics, boolean describeNamedGraphs)
AbstractTripleStore
.describeStatistics
- When true
, the VoID description will include the
VoidVocabularyDecl.vocabulary
declarations, the
property partition statistics, and the class partition
statistics.describeNamedGraphs
- When true
, each named graph will also be
described in in the same level of detail as the default graph.
Otherwise only the default graph will be described.protected void describeVocabularies(VoID.IVCount[] predicatePartitionCounts)
predicateParitionCounts
- The predicate partition statistics.protected void describeGraph(org.openrdf.model.Resource graph, VoID.IVCount[] predicatePartitionCounts, VoID.IVCount[] classPartitionCounts)
graph
- The named graph.predicatePartitionCounts
- The predicate partition statistics for that graph.classPartitionCounts
- The class partition statistics for that graph.protected static VoID.IVCount[] predicateUsage(AbstractTripleStore kb)
IV
s in the returned array will
have been resolved to the corresponding BigdataURI
s which can be
accessed using IVCache.getValue()
.kb
- The KB instance.protected static VoID.IVCount[] predicateUsage(AbstractTripleStore kb, IV<?,?> civ, VoID.IVCount[] predicatePartitionCounts)
kb
- The KB instance.civ
- The IV
of a named graph (required).protected static VoID.IVCount[] classUsage(AbstractTripleStore kb)
SELECT ?class (COUNT(?s) AS ?count ) { ?s a ?class } GROUP BY ?class ORDER BY ?countHowever, it is much efficient to scan POS for
rdf:type ?o ?sand report the range count of
rdf:type ?o ?sfor each distinct value of
?o
.kb
- The KB instance.protected static VoID.IVCount[] classUsage(AbstractTripleStore kb, IV<?,?> civ, VoID.IVCount[] classPartitionCounts)
kb
- The KB instance.civ
- The IV
of a named graph (required).Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.