Package ai.chatur.cortex.core.stats
Class StatsService
java.lang.Object
ai.chatur.cortex.core.stats.StatsService
Computes
statistics over the knowledge graph: ingestion activity derived from
provenance, the size of the assertion and inference datasets, and the size of the ontology,
shapes, and rules the graph is built on.-
Constructor Summary
ConstructorsConstructorDescriptionStatsService(org.apache.jena.query.Dataset assertions, org.apache.jena.query.Dataset inferences, org.apache.jena.ontapi.model.OntModel ontModel, org.apache.jena.shacl.Shapes shapes, List<org.apache.jena.reasoner.rulesys.Rule> rules) Creates the service. -
Method Summary
Modifier and TypeMethodDescriptionai.chatur.cortex.CortexStatsgetStats()Returns a snapshot of the size and activity of the knowledge graph.
-
Constructor Details
-
StatsService
public StatsService(org.apache.jena.query.Dataset assertions, org.apache.jena.query.Dataset inferences, org.apache.jena.ontapi.model.OntModel ontModel, org.apache.jena.shacl.Shapes shapes, List<org.apache.jena.reasoner.rulesys.Rule> rules) Creates the service.- Parameters:
assertions- the dataset holding the approved assertions and the staged branchesinferences- the dataset holding the assertions enriched by inferenceontModel- the ontology modelshapes- the SHACL shapes ingested assertions are validated againstrules- the rules used for inference
-
-
Method Details
-
getStats
public ai.chatur.cortex.CortexStats getStats()Returns a snapshot of the size and activity of the knowledge graph.- Returns:
- the current statistics
-