From 444d4740abbbcc31d6b6fe175b5b74be66cc08cd Mon Sep 17 00:00:00 2001 From: Sameer6305 Date: Tue, 14 Jul 2026 16:11:58 +0530 Subject: [PATCH] docs: fix remaining stale semantica[shacl] references in Part 6 --- .../01_Clinical_Intelligence_with_Semantica.ipynb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cookbook/use_cases/healthcare/01_Clinical_Intelligence_with_Semantica.ipynb b/cookbook/use_cases/healthcare/01_Clinical_Intelligence_with_Semantica.ipynb index c2cde17f..9f8c8bf4 100644 --- a/cookbook/use_cases/healthcare/01_Clinical_Intelligence_with_Semantica.ipynb +++ b/cookbook/use_cases/healthcare/01_Clinical_Intelligence_with_Semantica.ipynb @@ -968,7 +968,7 @@ "\n", "SHACL (Shapes Constraint Language) is the W3C standard for defining constraints on graph data and validating records against them: the graph-data equivalent of a JSON Schema. A patient record whose diagnosis or prescription field holds free text instead of a real link to a `Disease` or `Drug` node should be caught by that validation layer rather than reaching a downstream consumer silently. `OntologyEngine.to_shacl` generates shapes directly from the `ontology` object built in Part 3, so the shapes below only ever constrain classes and properties that ontology actually contains (`Disease`, `Drug`, `Patient`, and the `diagnosedWith`/`prescribed`/`treats`/`comorbidWith` relationships); we pass `base_uri=BASE_URI` explicitly so the shapes are minted in our own namespace rather than Semantica's internal default.\n", "\n", - "Live validation needs `pyshacl` (`pip install semantica[shacl]`); without it, we still see exactly what the generated shapes would enforce." + "Live validation needs `pyshacl` (`pip install pyshacl` — see issue #736); without it, we still see exactly what the generated shapes would enforce." ] }, { @@ -1028,9 +1028,9 @@ " for v in report.violations:\n", " print(\" -\", getattr(v, \"explanation\", v))\n", " except ImportError as e:\n", - " print(f\"pyshacl not installed: {e}. Install with `pip install semantica[shacl]`.\")\n", + " print(f\"pyshacl not installed: {e}. Install with `pip install pyshacl` (see issue #736 for the missing semantica[shacl] extra).\")\n", "else:\n", - " print(\"Skipping live SHACL validation (set USE_PYSHACL=true and install semantica[shacl] to enable).\")\n", + " print(\"Skipping live SHACL validation (set USE_PYSHACL=true and install pyshacl to enable).\")\n", " print(\"The generated shapes above already show what would be enforced: free-text values where a\")\n", " print(\"real entity reference belongs, and datatype violations on required properties.\")" ]