feat!: le paquet crée un index et lui ajoute une référence, rien de plus

This commit is contained in:
Sylvain Duchesne
2026-08-21 19:56:11 +02:00
parent c2f9ff4674
commit ff78a70f14
26 changed files with 735 additions and 2651 deletions
+10 -3
View File
@@ -1,5 +1,6 @@
/**
* The IRIs this layer writes into an index document.
* The IRIs an index document is written with — published because a reader needs
* them to make sense of one.
*
* `urn:ng-eventually:` is RESERVED by the polyfill — triples whose subject falls
* under it are dropped on read. This layer stays out of it entirely and uses its
@@ -9,9 +10,15 @@
/**
* On the index document's own subject: the predicate an indexed object must
* carry, declared once by whoever creates the index.
* carry, declared once by whoever creates the index. `create` writes it.
*/
export const INDEX_FIELD = "urn:ng-helpers:index:field";
/** On an entry (subject = the indexed object's NURI): the value of that field. */
/**
* On an entry (subject = the indexed object's NURI): the value of that field.
*
* This package never writes one — an entry is made by the layer that processes the
* index's inbox. It is published because reading an index means recognising this
* predicate on the subjects that come back.
*/
export const ENTRY_VALUE = "urn:ng-helpers:index:value";