Package ai.chatur.cortex.core
Class CortexNamespace
java.lang.Object
ai.chatur.cortex.core.CortexNamespace
Creates resource names in the
cortex:// namespace used by the knowledge graph.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe URI namespace of all resources managed by Cortex.static final org.apache.jena.rdf.model.ResourceThe named graph holding per-statement provenance within the assertions dataset.static final org.apache.jena.rdf.model.ResourceThe named graph holding per-resource view counts within the assertions dataset.static final org.apache.jena.rdf.model.PropertyThe property recording a resource's time-decayed view score, withinUSAGE.static final org.apache.jena.rdf.model.PropertyThe instantVIEW_COUNTwas last recomputed, withinUSAGE. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.jena.rdf.model.ResourceReturns a fresh, randomly named branch resource.static org.apache.jena.rdf.model.ResourcegetResource(String name) Returns the resource with the given name in the Cortex namespace.
-
Field Details
-
NS
The URI namespace of all resources managed by Cortex.- See Also:
-
PROVENANCE
public static final org.apache.jena.rdf.model.Resource PROVENANCEThe named graph holding per-statement provenance within the assertions dataset. -
USAGE
public static final org.apache.jena.rdf.model.Resource USAGEThe named graph holding per-resource view counts within the assertions dataset.Like
PROVENANCEthis is a reserved graph, not a branch and not part of the approved assertions: it records how the graph is used rather than what it claims. -
VIEW_COUNT
public static final org.apache.jena.rdf.model.Property VIEW_COUNTThe property recording a resource's time-decayed view score, withinUSAGE.Not a plain tally: the value is discounted towards zero as it ages, so it is only meaningful alongside
VIEW_COUNT_UPDATED, which says when it was last brought up to date. -
VIEW_COUNT_UPDATED
public static final org.apache.jena.rdf.model.Property VIEW_COUNT_UPDATEDThe instantVIEW_COUNTwas last recomputed, withinUSAGE.
-
-
Method Details
-
getResource
Returns the resource with the given name in the Cortex namespace.- Parameters:
name- the local name of the resource- Returns:
- the resource named
cortex://<name>
-
getResource
public static org.apache.jena.rdf.model.Resource getResource()Returns a fresh, randomly named branch resource.- Returns:
- a resource named
cortex://branch-<uuid>
-