Skip to content

Commit f4a04a8

Browse files
committed
change schema uri
1 parent 6631d48 commit f4a04a8

23 files changed

+44
-44
lines changed

ARCHITECTURE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,8 @@ This separation is key: the LLM handles ambiguity, intent, and synthesis; the KC
238238
## Namespace Conventions
239239

240240
```turtle
241-
@prefix kc: <https://example.org/kc#> . # core framework
242-
@prefix kcs: <https://example.org/kc/shape#> . # core shapes
241+
@prefix kc: <https://w3id.org/kc#> . # core framework
242+
@prefix kcs: <https://w3id.org/kc/shape#> . # core shapes
243243
@prefix aaa: <https://example.org/aaa#> . # user namespace (example)
244244
@prefix aaas: <https://example.org/aaa/shape#> .# user shapes (example)
245245
```

examples/01_quickstart/data/pipeline/instance.ttl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@prefix ex: <https://example.org/ex#> .
2-
@prefix kc: <https://example.org/kc#> .
2+
@prefix kc: <https://w3id.org/kc#> .
33
@prefix owl: <http://www.w3.org/2002/07/owl#> .
44
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
55
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@@ -38,7 +38,7 @@ ex:role a owl:DatatypeProperty ;
3838
rdfs:domain ex:performs ;
3939
rdfs:range xsd:string .
4040

41-
<https://example.org/kc> a owl:Ontology ;
41+
<https://w3id.org/kc> a owl:Ontology ;
4242
rdfs:label "Knowledge Complex Core Ontology" ;
4343
rdfs:comment "Abstract topological backbone: Element, Vertex, Edge, Face, Complex." .
4444

examples/01_quickstart/data/pipeline/ontology.ttl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@prefix ex: <https://example.org/ex#> .
2-
@prefix kc: <https://example.org/kc#> .
2+
@prefix kc: <https://w3id.org/kc#> .
33
@prefix owl: <http://www.w3.org/2002/07/owl#> .
44
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
55
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@@ -45,7 +45,7 @@ ex:role a owl:DatatypeProperty ;
4545
rdfs:domain ex:performs ;
4646
rdfs:range xsd:string .
4747

48-
<https://example.org/kc> a owl:Ontology ;
48+
<https://w3id.org/kc> a owl:Ontology ;
4949
rdfs:label "Knowledge Complex Core Ontology" ;
5050
rdfs:comment "Abstract topological backbone: Element, Vertex, Edge, Face, Complex." .
5151

examples/01_quickstart/data/pipeline/shapes.ttl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@prefix ex: <https://example.org/ex#> .
22
@prefix exs: <https://example.org/ex/shape#> .
3-
@prefix kc: <https://example.org/kc#> .
4-
@prefix kcs: <https://example.org/kc/shape#> .
3+
@prefix kc: <https://w3id.org/kc#> .
4+
@prefix kcs: <https://w3id.org/kc/shape#> .
55
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
66
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
77
@prefix sh: <http://www.w3.org/ns/shacl#> .
@@ -83,7 +83,7 @@ kcs:ComplexShape a sh:NodeShape ;
8383
each of its boundedBy targets must also be a hasElement of the complex.""" ;
8484
sh:message "Complex is not closed under the boundary operator: an element's boundary element is missing from the complex." ;
8585
sh:select """
86-
PREFIX kc: <https://example.org/kc#>
86+
PREFIX kc: <https://w3id.org/kc#>
8787
SELECT $this WHERE {
8888
$this kc:hasElement ?elem .
8989
?elem kc:boundedBy ?boundary .
@@ -106,7 +106,7 @@ kcs:EdgeShape a sh:NodeShape ;
106106
rdfs:comment "Edge boundary vertices must be distinct individuals." ;
107107
sh:message "Edge boundary vertices must not be the same vertex." ;
108108
sh:select """
109-
PREFIX kc: <https://example.org/kc#>
109+
PREFIX kc: <https://w3id.org/kc#>
110110
SELECT $this WHERE {
111111
$this kc:boundedBy ?v .
112112
}
@@ -141,7 +141,7 @@ kcs:FaceShape a sh:NodeShape ;
141141
""" ;
142142
sh:message "Face boundary edges do not form a closed triangle over shared vertices." ;
143143
sh:select """
144-
PREFIX kc: <https://example.org/kc#>
144+
PREFIX kc: <https://w3id.org/kc#>
145145
SELECT $this WHERE {
146146
$this kc:boundedBy ?e1 ;
147147
kc:boundedBy ?e2 ;

knowledgecomplex/diff.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
if TYPE_CHECKING:
3434
from knowledgecomplex.graph import KnowledgeComplex
3535

36-
_KC = Namespace("https://example.org/kc#")
36+
_KC = Namespace("https://w3id.org/kc#")
3737

3838

3939
class ComplexDiff:

knowledgecomplex/graph.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
_FRAMEWORK_QUERIES_DIR = Path(__file__).parent / "queries"
4646

4747
# Internal namespace constants
48-
_KC = Namespace("https://example.org/kc#")
48+
_KC = Namespace("https://w3id.org/kc#")
4949

5050

5151
def _load_query_templates(
@@ -744,7 +744,7 @@ def element_ids(self, type: str | None = None) -> list[str]:
744744
sparql = f"""
745745
SELECT ?elem WHERE {{
746746
?elem a/rdfs:subClassOf* <{type_iri}> .
747-
<{self._complex_iri}> <https://example.org/kc#hasElement> ?elem .
747+
<{self._complex_iri}> <https://w3id.org/kc#hasElement> ?elem .
748748
}}
749749
"""
750750
results = self._instance_graph.query(
@@ -881,7 +881,7 @@ def coboundary(self, id: str, *, type: str | None = None) -> set[str]:
881881
"""
882882
tf = self._type_filter_clause("coboundary", type)
883883
sparql = f"""\
884-
PREFIX kc: <https://example.org/kc#>
884+
PREFIX kc: <https://w3id.org/kc#>
885885
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
886886
SELECT ?coboundary WHERE {{
887887
?coboundary kc:boundedBy <{self._iri(id)}> .
@@ -938,7 +938,7 @@ def closure(self, ids: str | set[str], *, type: str | None = None) -> set[str]:
938938
values = " ".join(f"(<{self._iri(i)}>)" for i in ids)
939939
tf = self._type_filter_clause("closure", type)
940940
sparql = f"""\
941-
PREFIX kc: <https://example.org/kc#>
941+
PREFIX kc: <https://w3id.org/kc#>
942942
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
943943
SELECT ?closure WHERE {{
944944
VALUES (?sigma) {{ {values} }}

knowledgecomplex/ontologies/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ Once your persistent URI is live, use it as your namespace:
115115

116116
```python
117117
sb = SchemaBuilder(namespace="mydom")
118-
# Currently generates: https://example.org/mydom#
118+
# Currently generates: https://example.org/mydom# (user namespace)
119119
# For production: update _base_iri to your w3id.org URI
120120
```
121121

knowledgecomplex/queries/boundary.sparql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# Usage: substitute {simplex} with the IRI of the element.
99
# substitute {type_filter} with a type constraint or empty string.
1010

11-
PREFIX kc: <https://example.org/kc#>
11+
PREFIX kc: <https://w3id.org/kc#>
1212
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
1313

1414
SELECT ?boundary WHERE {

knowledgecomplex/queries/closure.sparql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# Usage: substitute {simplex} with the IRI of the element.
1010
# substitute {type_filter} with a type constraint or empty string.
1111

12-
PREFIX kc: <https://example.org/kc#>
12+
PREFIX kc: <https://w3id.org/kc#>
1313
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
1414

1515
SELECT ?closure WHERE {

knowledgecomplex/queries/coboundary.sparql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#
1010
# Usage: substitute {simplex} with the IRI of the element.
1111

12-
PREFIX kc: <https://example.org/kc#>
12+
PREFIX kc: <https://w3id.org/kc#>
1313

1414
SELECT ?coboundary WHERE {
1515
?coboundary kc:boundedBy {simplex} .

0 commit comments

Comments
 (0)