Graph-Native Infrastructure for Context and Accountable AI Systems
Python agent-memoryaiai-governanceai-infrastructureartificial-intelligencecontext-engineeringcontext-graphsdata-engineeringdecision-intelligencedeveloper-toolsexplainable-aigenerative-aigraph-ragknowledge-graphllmontologyprovenancepythonreasoningsemantic-search
docs: fix stale violation URIs and drop unused imports in SHACL guide
KaifAhmad1f0828b1ff6e3
diff --git a/docs/guides/shacl-validation.md b/docs/guides/shacl-validation.mdindex e77a3d41..a2b81ac2 100644--- a/docs/guides/shacl-validation.md+++ b/docs/guides/shacl-validation.md@@ -56,8 +56,6 @@ Let's look at a simple, universally understood example: ensuring every `Employeefrom semantica.context import ContextGraphfrom semantica.ontology import OntologyGenerator, SHACLGenerator, PropertyShapefrom semantica.ontology.ontology_validator import _run_pyshacl-from semantica.export import export_rdf-import tempfile, os# 1. Prepare your data graphgraph = ContextGraph()@@ -271,8 +269,6 @@ Serialize the graph to RDF, then run `_run_pyshacl` against the shapes.```pythonfrom semantica.ontology.ontology_validator import _run_pyshacl-from semantica.export import export_rdf-import tempfile, os# Prepare your RDF data string (since export_rdf primarily exports structural metadata,# you typically serialize your custom data graph to Turtle using rdflib or similar).@@ -322,11 +318,11 @@ if not report.conforms:# Iterate and print the explanationsfor v in report.violations:print(v.explanation)- # Node <https://cti.example.org/data/malware-002> is missing required property+ # Node <http://example.org/malware-002> is missing required property# <https://cti.example.org/ontology/family>. At least 1 value(s) are required.- # Node <https://cti.example.org/data/vuln-003> is missing required property+ # Node <http://example.org/vuln-003> is missing required property# <https://cti.example.org/ontology/cvss_score>. At least 1 value(s) are required.- # Node <https://cti.example.org/data/vuln-003> has value 'CVE24-3400' for+ # Node <http://example.org/vuln-003> has value 'CVE24-3400' for# <https://cti.example.org/ontology/cve_id> which does not match the required pattern.# Iterate for programmatic triage@@ -401,8 +397,6 @@ from semantica.context import AgentContext, ContextGraphfrom semantica.vector_store import VectorStorefrom semantica.ontology import OntologyGenerator, SHACLGenerator, PropertyShapefrom semantica.ontology.ontology_validator import _run_pyshacl-from semantica.export import export_rdf-import tempfile, osgraph = ContextGraph()ctx = AgentContext(@@ -476,8 +470,6 @@ A SOC team validates zero-trust policy nodes before publishing them to the policfrom semantica.context import ContextGraphfrom semantica.ontology import OntologyGenerator, SHACLGenerator, PropertyShapefrom semantica.ontology.ontology_validator import _run_pyshacl-from semantica.export import export_rdf-import tempfile, osgraph = ContextGraph()graph.add_node("policy-001", "Policy", "MFA Required for Tier-1 Resources",@@ -609,8 +601,6 @@ A credit risk team validates every `LoanApplication` node against Basel III CRE2from semantica.context import ContextGraphfrom semantica.ontology import OntologyGenerator, SHACLGenerator, PropertyShapefrom semantica.ontology.ontology_validator import _run_pyshacl-from semantica.export import export_rdf-import tempfile, osgraph = ContextGraph()graph.add_node("loan-001", "LoanApplication", "Prime mortgage APP-2025-88421",