Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- Activity - Static variable in class ai.chatur.cortex.core.PROV
-
The class of activities; here, the ingestion of a branch of assertions.
- add(Node, Node, Node, Node) - Method in class ai.chatur.cortex.core.jena.DatasetPatch
-
Records the addition of a triple to the given graph.
- addAll(Node, Model) - Method in class ai.chatur.cortex.core.jena.DatasetPatch
-
Records the addition of every triple of the model to the given graph.
- addInference(Model) - Method in class ai.chatur.cortex.core.inference.InferenceService
-
Extends the inference closure with newly approved assertions and patches the inference dataset with the difference, without recomputing the closure from scratch.
- ai.chatur.cortex - package ai.chatur.cortex
- ai.chatur.cortex.core - package ai.chatur.cortex.core
- ai.chatur.cortex.core.archive - package ai.chatur.cortex.core.archive
- ai.chatur.cortex.core.branch - package ai.chatur.cortex.core.branch
- ai.chatur.cortex.core.inference - package ai.chatur.cortex.core.inference
- ai.chatur.cortex.core.ingest - package ai.chatur.cortex.core.ingest
- ai.chatur.cortex.core.jena - package ai.chatur.cortex.core.jena
- ai.chatur.cortex.core.lint - package ai.chatur.cortex.core.lint
- ai.chatur.cortex.core.ontology - package ai.chatur.cortex.core.ontology
- ai.chatur.cortex.core.provenance - package ai.chatur.cortex.core.provenance
- ai.chatur.cortex.core.query - package ai.chatur.cortex.core.query
- ai.chatur.cortex.core.stats - package ai.chatur.cortex.core.stats
- ai.chatur.cortex.core.store - package ai.chatur.cortex.core.store
- ai.chatur.cortex.core.usage - package ai.chatur.cortex.core.usage
- analyzer() - Static method in class ai.chatur.cortex.core.store.TextIndexFactory
-
Returns the analyzer used to tokenize indexed literals.
- apply(Dataset, Consumer<DatasetPatch>) - Static method in class ai.chatur.cortex.core.jena.DatasetPatch
-
Records changes and applies them to the dataset as a single patch.
- applyReading(Dataset, Consumer<DatasetPatch>) - Static method in class ai.chatur.cortex.core.jena.DatasetPatch
-
Records changes inside a read transaction on the dataset, then applies them as one patch.
- approve(String) - Method in class ai.chatur.cortex.core.branch.BranchMergeService
-
Merges the assertions staged on the given branch into the default graph, closing the
provenance activityof the ingestion and recording the reification of every merged statement, linked to the activity, in theprovenance graph, and deletes the branch. - approve(String) - Method in class ai.chatur.cortex.JenaCortex
- ArchiveService - Class in ai.chatur.cortex.core.archive
-
Exports the approved assertions as a portable RDF document.
- ArchiveService(Dataset) - Constructor for class ai.chatur.cortex.core.archive.ArchiveService
-
Creates the service.
- AssertionStore - Class in ai.chatur.cortex.core.store
-
Opens the TDB2 dataset holding the approved assertions and the branches pending review.
B
- backup() - Method in class ai.chatur.cortex.core.store.BackupService
-
Writes a snapshot of the whole assertions dataset — the approved assertions, every staged branch, and the provenance graph — as gzipped N-Quads, under a
Backups/directory beside the store. - BackupService - Class in ai.chatur.cortex.core.store
-
Takes a TDB2 snapshot of the assertions dataset.
- BackupService(Dataset) - Constructor for class ai.chatur.cortex.core.store.BackupService
-
Creates the service.
- bind(String, RDFNode) - Method in class ai.chatur.cortex.core.jena.Sparql
-
Binds a variable of the query to a value.
- BranchEditService - Class in ai.chatur.cortex.core.branch
-
Applies reviewer edits — deletions, object edits, and subject renames — to the assertions staged on a branch pending review.
- BranchEditService(Dataset, BranchRepository) - Constructor for class ai.chatur.cortex.core.branch.BranchEditService
-
Creates the service.
- BranchMergeService - Class in ai.chatur.cortex.core.branch
-
Resolves a branch pending review by merging its staged assertions into the default graph or discarding them.
- BranchMergeService(Dataset, BranchRepository, ProvenanceRecorder) - Constructor for class ai.chatur.cortex.core.branch.BranchMergeService
-
Creates the service.
- BranchQueryService - Class in ai.chatur.cortex.core.branch
-
Reads the assertions staged on a branch pending review.
- BranchQueryService(Dataset, OntModel, BranchRepository) - Constructor for class ai.chatur.cortex.core.branch.BranchQueryService
-
Creates the service.
- BranchRepository - Class in ai.chatur.cortex.core.branch
-
Looks up the branches pending review — named graphs within the assertions dataset — guarding every access against the
provenance graph, which is never a branch even though it is a named graph of the same dataset. - BranchRepository(Dataset) - Constructor for class ai.chatur.cortex.core.branch.BranchRepository
-
Creates the repository.
- build() - Method in class ai.chatur.cortex.CortexBuilder
-
Assembles the knowledge graph.
C
- CortexBuilder - Class in ai.chatur.cortex
-
Builds a
Cortexknowledge graph from ontology, shapes, and rules, without booting Spring. - CortexNamespace - Class in ai.chatur.cortex.core
-
Creates resource names in the
cortex://namespace used by the knowledge graph. - create() - Static method in class ai.chatur.cortex.CortexBuilder
-
Creates a new builder, defaulting to an empty ontology, no shapes, no rules, and a fully in-memory graph.
- create(List<Rule>) - Static method in class ai.chatur.cortex.core.inference.ReasonerFactory
-
Builds a rule reasoner over the given rules, with OWL translation and transitive-closure caching enabled.
D
- DatasetPatch - Class in ai.chatur.cortex.core.jena
-
Collects additions and deletions as an RDF patch and applies them to a
Datasetin one write transaction. - DEFAULT_VIEW_HALF_LIFE - Static variable in class ai.chatur.cortex.CortexBuilder
-
The default half-life of a view's contribution to search ranking.
- delete(Node, Node, Node, Node) - Method in class ai.chatur.cortex.core.jena.DatasetPatch
-
Records the deletion of a triple from the given graph.
- deleteAll(Node, Model) - Method in class ai.chatur.cortex.core.jena.DatasetPatch
-
Records the deletion of every triple of the model from the given graph.
- describe(String) - Method in class ai.chatur.cortex.core.query.QueryService
-
Returns everything known about a resource, with the creation timestamp of each statement where provenance was recorded.
- describe(String) - Method in class ai.chatur.cortex.JenaCortex
E
- endedAtTime - Static variable in class ai.chatur.cortex.core.PROV
-
The time an activity ended; here, when the branch was approved.
- execute(Function<QueryExecution, T>) - Method in class ai.chatur.cortex.core.jena.Sparql
-
Runs the query, applying the mapper to the execution inside the transaction.
- exists(String) - Method in class ai.chatur.cortex.core.branch.BranchRepository
-
Reports whether a branch with the given name is pending review.
- exportAssertions() - Method in class ai.chatur.cortex.core.archive.ArchiveService
-
Exports the approved assertions.
- exportAssertions() - Method in class ai.chatur.cortex.JenaCortex
F
- flush() - Method in class ai.chatur.cortex.core.usage.UsageService
-
Writes the buffered views to the usage graph in a single write transaction.
- forEachSolution(Consumer<QuerySolution>) - Method in class ai.chatur.cortex.core.jena.Sparql
-
Runs the query as a
SELECT, applying the action to each solution inside the transaction.
G
- getBranch(String) - Method in class ai.chatur.cortex.core.branch.BranchQueryService
-
Returns the assertions staged on the given branch.
- getBranch(String) - Method in class ai.chatur.cortex.JenaCortex
- getBranchInfo(String) - Method in class ai.chatur.cortex.core.branch.BranchQueryService
-
Summarizes a branch pending review from its staged provenance activity.
- getBranchInfo(String) - Method in class ai.chatur.cortex.JenaCortex
- getBranchSubjects(String) - Method in class ai.chatur.cortex.core.branch.BranchQueryService
-
Returns the assertions staged on the given branch grouped by subject, excluding the provenance activity of the ingestion.
- getBranchSubjects(String) - Method in class ai.chatur.cortex.JenaCortex
- getClassHierarchy() - Method in class ai.chatur.cortex.core.ontology.OntologyService
-
Returns the class hierarchy of the ontology, guarding against cycles.
- getClassHierarchy() - Method in class ai.chatur.cortex.JenaCortex
- getErrors(ValidationReport) - Method in class ai.chatur.cortex.core.lint.LintService
-
Renders the violations of a validation report.
- getInstances(String) - Method in class ai.chatur.cortex.core.query.QueryService
-
Returns the known instances of an ontology class.
- getInstances(String) - Method in class ai.chatur.cortex.JenaCortex
- getOntology() - Method in class ai.chatur.cortex.core.ontology.OntologyService
-
Returns the ontology.
- getOntology() - Method in class ai.chatur.cortex.JenaCortex
- getProvenance(Model, Model, Resource) - Method in class ai.chatur.cortex.core.provenance.ProvenanceRecorder
-
Returns the provenance to record when a branch is approved: the activity's own closing triples —
PROV.endedAtTimeand whatever the activity itself carried on the branch — plus aPROV.wasGeneratedByreification linking every newly approved statement back to the activity. - getResource() - Static method in class ai.chatur.cortex.core.CortexNamespace
-
Returns a fresh, randomly named branch resource.
- getResource(String) - Static method in class ai.chatur.cortex.core.CortexNamespace
-
Returns the resource with the given name in the Cortex namespace.
- getStagedModel(Model, Resource) - Method in class ai.chatur.cortex.core.provenance.ProvenanceRecorder
-
Returns the assertions to stage when a branch is opened: the newly staged
novelstatements plus a freshly startedPROV.Activityrecording the ingestion. - getStats() - Method in class ai.chatur.cortex.core.stats.StatsService
-
Returns a snapshot of the size and activity of the knowledge graph.
- getStats() - Method in class ai.chatur.cortex.JenaCortex
H
- hasBranch(String) - Method in class ai.chatur.cortex.JenaCortex
I
- InferenceService - Class in ai.chatur.cortex.core.inference
-
Derives new statements from the approved assertions by applying a
Reasoner. - InferenceService(Dataset, Dataset, Reasoner) - Constructor for class ai.chatur.cortex.core.inference.InferenceService
-
Creates the service.
- ingest(String) - Method in class ai.chatur.cortex.core.ingest.IngestService
-
Lints and validates the given assertions and stages them on a new branch.
- ingest(String) - Method in class ai.chatur.cortex.JenaCortex
- IngestService - Class in ai.chatur.cortex.core.ingest
-
Validates incoming RDF assertions and stages them on a new branch pending review.
- IngestService(Dataset, LintService, ProvenanceRecorder) - Constructor for class ai.chatur.cortex.core.ingest.IngestService
-
Creates the service.
J
- JenaCortex - Class in ai.chatur.cortex
-
Corteximplementation backed by Apache Jena. - JenaCortex(OntologyService, LintService, IngestService, BranchRepository, BranchQueryService, BranchEditService, BranchMergeService, ArchiveService, InferenceService, QueryService, StatsService) - Constructor for class ai.chatur.cortex.JenaCortex
-
Creates the composed implementation.
L
- LABEL_FIELD - Static variable in class ai.chatur.cortex.core.store.TextIndexFactory
-
The indexed field holding
rdfs:labelvalues; also the default field for queries. - lint(String) - Method in class ai.chatur.cortex.core.lint.LintService
-
Lints the given assertions against the ontology.
- lint(String) - Method in class ai.chatur.cortex.JenaCortex
- LintService - Class in ai.chatur.cortex.core.lint
-
Lints assertions against the ontology and validates them against SHACL shapes before they are ingested.
- LintService(OntModel, ShaclValidator, Shapes) - Constructor for class ai.chatur.cortex.core.lint.LintService
-
Creates the service, indexing the classes and properties declared in the ontology.
- list() - Method in class ai.chatur.cortex.core.branch.BranchRepository
-
Returns the names of all branches pending review.
- listBranches() - Method in class ai.chatur.cortex.JenaCortex
- load(List<String>) - Static method in class ai.chatur.cortex.core.inference.RuleLoader
-
Parses the given rule documents, in order.
- load(List<String>) - Static method in class ai.chatur.cortex.core.lint.ShapesLoader
-
Builds the SHACL shapes by merging the given Turtle documents, in order.
- load(List<String>) - Static method in class ai.chatur.cortex.core.ontology.OntologyLoader
-
Builds the ontology model by merging the given Turtle documents, in order, then locks it against further mutation.
N
- NS - Static variable in class ai.chatur.cortex.core.CortexNamespace
-
The URI namespace of all resources managed by Cortex.
- NS - Static variable in class ai.chatur.cortex.core.PROV
-
The URI namespace of the PROV-O ontology.
O
- of(RDFNode, PrefixMapping) - Static method in class ai.chatur.cortex.core.Terms
-
Returns the term for the given node: the longest matching namespace of the prefix mapping is abbreviated, literals carry their lexical form, and URIs no prefix matches carry the full URI.
- on(Dataset, Query) - Static method in class ai.chatur.cortex.core.jena.Sparql
-
Prepares the query to run against the dataset.
- onBranch(String, String, Function<Resource, T>, T) - Method in class ai.chatur.cortex.core.branch.BranchRepository
-
Applies the action to the branch graph if a branch with that name is pending, and returns the missing value otherwise.
- ontologies(List<String>) - Method in class ai.chatur.cortex.CortexBuilder
-
Sets the ontology documents the knowledge graph is built on.
- OntologyLoader - Class in ai.chatur.cortex.core.ontology
-
Builds the immutable
OntModelthe knowledge graph is built on. - OntologyService - Class in ai.chatur.cortex.core.ontology
-
Provides access to the ontology the knowledge graph is built on.
- OntologyService(OntModel) - Constructor for class ai.chatur.cortex.core.ontology.OntologyService
-
Creates the service.
- open(boolean, String, PrefixMapping) - Static method in class ai.chatur.cortex.core.store.AssertionStore
-
Opens the assertions dataset and seeds its default model with the ontology's prefixes, so assertions and branches serialize using the same abbreviations as the ontology.
- open(Dataset) - Static method in class ai.chatur.cortex.core.store.TextIndexFactory
-
Wraps the given dataset with an in-memory full-text index.
P
- persistent(String) - Method in class ai.chatur.cortex.CortexBuilder
-
Makes the assertions persist to a TDB2 store on disk instead of in memory.
- PROV - Class in ai.chatur.cortex.core
-
Vocabulary of the W3C PROV-O terms used to record provenance in the knowledge graph.
- PROVENANCE - Static variable in class ai.chatur.cortex.core.CortexNamespace
-
The named graph holding per-statement provenance within the assertions dataset.
- ProvenanceRecorder - Class in ai.chatur.cortex.core.provenance
-
Builds and closes the
provenance activitythat records an ingestion, from staging through approval — the only place in the codebase with knowledge of the PROV-O vocabulary used for this bookkeeping. - ProvenanceRecorder() - Constructor for class ai.chatur.cortex.core.provenance.ProvenanceRecorder
-
Creates a recorder.
Q
- query(String) - Method in class ai.chatur.cortex.core.query.QueryService
-
Runs a SPARQL query against the knowledge graph.
- query(String) - Method in class ai.chatur.cortex.JenaCortex
- QueryService - Class in ai.chatur.cortex.core.query
-
Answers questions about the knowledge graph.
- QueryService(Dataset, Dataset, OntModel, UsageService) - Constructor for class ai.chatur.cortex.core.query.QueryService
-
Creates the service.
R
- Rdf - Class in ai.chatur.cortex.core.jena
-
Serializes a
ModelorDatasetto a string. - ReasonerFactory - Class in ai.chatur.cortex.core.inference
-
Builds the
GenericRuleReasonerused for rule-based inference. - recomputeInference() - Method in class ai.chatur.cortex.core.inference.InferenceService
-
Recomputes the inference closure from the current assertions and patches the inference dataset with the difference: statements no longer entailed are deleted, novel ones are added, and statements already present are left untouched so they are not reindexed.
- recomputeInference() - Method in class ai.chatur.cortex.JenaCortex
- recordView(String) - Method in class ai.chatur.cortex.core.usage.UsageService
-
Records that a resource was deliberately viewed.
- reject(String) - Method in class ai.chatur.cortex.core.branch.BranchMergeService
-
Rejects the given branch, discarding its staged assertions, if it exists.
- reject(String) - Method in class ai.chatur.cortex.JenaCortex
- renameBranchSubjects(String, List<BranchRename>) - Method in class ai.chatur.cortex.core.branch.BranchEditService
-
Renames subjects staged on the given branch, as an RDF patch on the branch graph.
- renameBranchSubjects(String, List<BranchRename>) - Method in class ai.chatur.cortex.JenaCortex
- restore(Path) - Method in class ai.chatur.cortex.core.store.RestoreService
-
Replaces the entire assertions dataset with the contents of a gzipped N-Quads backup file.
- RestoreService - Class in ai.chatur.cortex.core.store
-
Loads a backup file into the assertions dataset, replacing whatever it currently holds.
- RestoreService(Dataset, PrefixMapping) - Constructor for class ai.chatur.cortex.core.store.RestoreService
-
Creates the service.
- RuleLoader - Class in ai.chatur.cortex.core.inference
-
Parses the Jena rules used for rule-based inference.
- rules(List<String>) - Method in class ai.chatur.cortex.CortexBuilder
-
Sets the Jena rules used for rule-based inference.
S
- search(String) - Method in class ai.chatur.cortex.core.query.QueryService
-
Finds resources by fuzzy full-text search over their labels.
- search(String) - Method in class ai.chatur.cortex.JenaCortex
- searchSubjects(String) - Method in class ai.chatur.cortex.core.query.QueryService
-
Searches the full-text index and returns the matching subjects.
- searchSubjects(String) - Method in class ai.chatur.cortex.JenaCortex
- shapes(List<String>) - Method in class ai.chatur.cortex.CortexBuilder
-
Sets the SHACL shapes ingested assertions are validated against.
- ShapesLoader - Class in ai.chatur.cortex.core.lint
-
Builds the
Shapesthat incoming assertions are validated against. - Sparql - Class in ai.chatur.cortex.core.jena
-
Runs a
Queryagainst aDatasetinside a read transaction. - startedAtTime - Static variable in class ai.chatur.cortex.core.PROV
-
The time an activity started; here, when the branch was staged.
- StatsService - Class in ai.chatur.cortex.core.stats
-
Computes
statisticsover 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. - StatsService(Dataset, Dataset, OntModel, Shapes, List<Rule>) - Constructor for class ai.chatur.cortex.core.stats.StatsService
-
Creates the service.
T
- Terms - Class in ai.chatur.cortex.core
-
Creates
Terms from Jena nodes, resolving prefixes against a prefix mapping. - TextIndexFactory - Class in ai.chatur.cortex.core.store
-
Wraps a dataset with a Lucene full-text index over
rdfs:labelandrdfs:comment, held in separate fields so queries can rank a name above a description.
U
- updateBranch(String, List<BranchChange>) - Method in class ai.chatur.cortex.core.branch.BranchEditService
-
Applies reviewer changes — deletions and object edits — to the assertions staged on the given branch, as an RDF patch on the branch graph.
- updateBranch(String, List<BranchChange>) - Method in class ai.chatur.cortex.JenaCortex
- USAGE - Static variable in class ai.chatur.cortex.core.CortexNamespace
-
The named graph holding per-resource view counts within the assertions dataset.
- UsageService - Class in ai.chatur.cortex.core.usage
-
Counts how often each resource is deliberately viewed, and turns those counts into a search ranking weight that fades as views age.
- UsageService(Dataset, Duration) - Constructor for class ai.chatur.cortex.core.usage.UsageService
-
Creates the service using the system clock.
- UsageService(Dataset, Duration, Clock) - Constructor for class ai.chatur.cortex.core.usage.UsageService
-
Creates the service with an explicit clock.
V
- validate(Model) - Method in class ai.chatur.cortex.core.lint.LintService
-
Validates the given model against the configured SHACL shapes.
- VIEW_COUNT - Static variable in class ai.chatur.cortex.core.CortexNamespace
-
The property recording a resource's time-decayed view score, within
CortexNamespace.USAGE. - VIEW_COUNT_UPDATED - Static variable in class ai.chatur.cortex.core.CortexNamespace
-
The instant
CortexNamespace.VIEW_COUNTwas last recomputed, withinCortexNamespace.USAGE. - viewHalfLife(Duration) - Method in class ai.chatur.cortex.CortexBuilder
-
Sets how long it takes a view's contribution to search ranking to halve.
- viewScore(String) - Method in class ai.chatur.cortex.core.usage.UsageService
-
Returns a resource's decayed view score, including views not yet flushed.
W
- wasGeneratedBy - Static variable in class ai.chatur.cortex.core.PROV
-
Links a generated entity — a reified statement — to the activity that generated it.
- weights(Collection<String>) - Method in class ai.chatur.cortex.core.usage.UsageService
-
Returns the ranking weight of each of the given resources.
- write(Dataset, Lang) - Static method in class ai.chatur.cortex.core.jena.Rdf
-
Serializes the dataset.
- write(Model, Lang) - Static method in class ai.chatur.cortex.core.jena.Rdf
-
Serializes the model.
- writeReading(Dataset, Supplier<Model>, Lang) - Static method in class ai.chatur.cortex.core.jena.Rdf
-
Serializes the model, read in a read transaction on the dataset.
- writeReading(Dataset, Lang) - Static method in class ai.chatur.cortex.core.jena.Rdf
-
Serializes the whole dataset, read in a read transaction.
All Classes and Interfaces|All Packages|Constant Field Values