GTS segment index
- CURIE:
gmeow:gtsSegmentIndex - IRI: https://blackcatinformatics.ca/gmeow/gtsSegmentIndex
- Category: property
- Defined by:
gmeow:slices/gts - Box roles: ConfigBox role, RBox role (What is this?)
The zero-based position of a segment within its document's file order. The ordered list of segment heads — gmeow:gtsHeadId taken in gmeow:gtsSegmentIndex order — IS the document's composite identity (spec §3.1).
Structure
Property shape: datatype property; gmeow:GTSSegment -> xsd:nonNegativeInteger; functional
Practical Pattern
Use gmeow:gtsSegmentIndex from gmeow:GTSSegment to xsd:nonNegativeInteger when the relationship itself belongs in the native GMEOW graph.
Example Snippets
These snippets are generated from canonical slice examples and trimmed to the Turtle blocks where this term appears.
Dist Package
- Source:
slices/core/gts/examples/dist-package.ttl - Examples catalog: open in catalog#example-slices-core-gts-examples-dist-package
@prefix gmeow: <https://blackcatinformatics.ca/gmeow/> .
@prefix ex: <https://blackcatinformatics.ca/gmeow/examples/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
ex:gts-dist-segment-core
a gmeow:GTSSegment ;
rdfs:label "core dist segment"@en ;
gmeow:gtsSegmentOf ex:gts-dist-package-001 ;
gmeow:embodies ex:gmeow-ontology-expression-001 ;
gmeow:gtsSegmentIndex "0"^^xsd:nonNegativeInteger ;
gmeow:gtsHeadId "blake3:929d046b2300eb09424f2d46b07fb793ad97ddde5e9fdb25ebefe245e8da8be8" ;
gmeow:gtsProfile gmeow:gtsProfileDist ;
gmeow:usesTransformCodec gmeow:codecZstd .
ex:gts-dist-segment-music
a gmeow:GTSSegment ;
rdfs:label "appended music-extension segment"@en ;
gmeow:gtsSegmentOf ex:gts-dist-package-001 ;
gmeow:embodies ex:gmeow-ontology-expression-001 ;
gmeow:gtsSegmentIndex "1"^^xsd:nonNegativeInteger ;
gmeow:gtsHeadId "blake3:167704cc2c533090b63ff3bf38b4fcff2bb70b33f996aa22f53025044e310ee8" ;
gmeow:gtsProfile gmeow:gtsProfileGeneric ;
gmeow:usesTransformCodec gmeow:codecZstd .
Ai Offline Replay
- Source:
slices/extensions/dreaming/examples/ai-offline-replay.ttl - Examples catalog: open in catalog#example-slices-extensions-dreaming-examples-ai-offline-replay
@prefix gmeow: <https://blackcatinformatics.ca/gmeow/> .
@prefix ex: <https://blackcatinformatics.ca/gmeow/examples/dreaming/ai-offline-replay/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
ex:lillithMemoryPackage a gmeow:GTSSegment ;
rdfs:label "Lillith's agent-memory package"@en ;
rdfs:comment "A GTS segment carrying grounded knowledge plus provenance and standpoints for AI consumption."@en ;
gmeow:embodies ex:lillithMemoryExpression ;
gmeow:gtsSegmentIndex "0"^^xsd:nonNegativeInteger ;
gmeow:gtsHeadId "blake3:7a3b9c2d4e5f60718293a4b5c6d7e8f9012345678901234567890abcdef12345" ;
gmeow:gtsProfile gmeow:gtsProfileAiPackage .
Common Companion Terms
Usage Advice
Use when
- Use to fix a segment's place in its document's append-only file order — the index that, taken over the segment heads, reconstructs the document's composite identity.
Avoid when
- Avoid as a stable name or version commitment (use
gmeow:gtsHeadId) and avoid leaving gaps or duplicates within a document; the indices are a dense zero-based sequence.
How to use
- Assign each segment a non-negative integer index in append order; read
gmeow:gtsHeadIdin index order to recover the ordered head list that IS the document's identity.
Examples
- ex:seg0
gmeow:gtsSegmentIndex0. ex:seg1gmeow:gtsSegmentIndex1.