Skip to content

Plan, apply and roll back changes to a production ontology, with a blast radius report and a proof an auditor can re-check.

chore(examples): scrub internal document-identifier scheme from document-privacy

FABIOTESSb16066e1e5bd
diff --git a/examples/document-privacy/README.md b/examples/document-privacy/README.md
index 6098d0c6..331d0a4d 100644
--- a/examples/document-privacy/README.md
+++ b/examples/document-privacy/README.md
@@ -62,6 +62,6 @@ between the documents that disagree.
```python
from provenance import emit_provenance
-tail = emit_provenance({"SOP-201": ttl_1, "REF-601": ttl_2})
+tail = emit_provenance({"DOC-201": ttl_1, "DOC-601": ttl_2})
# append to the merged store before loading
```
diff --git a/examples/document-privacy/provenance.py b/examples/document-privacy/provenance.py
index d2ec5373..02aeb20f 100644
--- a/examples/document-privacy/provenance.py
+++ b/examples/document-privacy/provenance.py
@@ -12,7 +12,7 @@ store usually loses: which document asserted each subject. This helper takes
per-document graphs and emits it.
from provenance import emit_provenance
- store_tail = emit_provenance({"SOP-201": ttl_1, "REF-601": ttl_2})
+ store_tail = emit_provenance({"DOC-201": ttl_1, "DOC-601": ttl_2})
# append store_tail to the merged store before loading
"""
diff --git a/examples/document-privacy/tokenisation.py b/examples/document-privacy/tokenisation.py
index dbe158d4..2b8d3144 100644
--- a/examples/document-privacy/tokenisation.py
+++ b/examples/document-privacy/tokenisation.py
@@ -126,7 +126,7 @@ class CompositeDetector:
Neither half is sufficient alone, which the test output makes obvious:
Presidio finds names, dates and locations that no pattern will catch, and
- misses domain identifiers like REF-20481 because it has no reason to know
+ misses domain identifiers like DOC-20481 because it has no reason to know
they are sensitive. Regex catches those and nothing else.
Overlaps resolve to the longer span, so a Presidio PERSON covering a name
@@ -407,7 +407,7 @@ if __name__ == "__main__":
piped = "" if sys.stdin.isatty() else sys.stdin.read()
sample = piped.strip() or (
"Dr Alice Morgan ([email protected], +44 20 7946 0958) reviewed "
- "batch REF-20481 on 3 March. Contact Prof Brian Hale for the audit."
+ "batch DOC-20481 on 3 March. Contact Prof Brian Hale for the audit."
)
t = build()
print(f"tokeniser: {t.description}\n")