|
45 | 45 | _FRAMEWORK_QUERIES_DIR = Path(__file__).parent / "queries" |
46 | 46 |
|
47 | 47 | # Internal namespace constants |
48 | | -_KC = Namespace("https://example.org/kc#") |
| 48 | +_KC = Namespace("https://w3id.org/kc#") |
49 | 49 |
|
50 | 50 |
|
51 | 51 | def _load_query_templates( |
@@ -744,7 +744,7 @@ def element_ids(self, type: str | None = None) -> list[str]: |
744 | 744 | sparql = f""" |
745 | 745 | SELECT ?elem WHERE {{ |
746 | 746 | ?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 . |
748 | 748 | }} |
749 | 749 | """ |
750 | 750 | results = self._instance_graph.query( |
@@ -881,7 +881,7 @@ def coboundary(self, id: str, *, type: str | None = None) -> set[str]: |
881 | 881 | """ |
882 | 882 | tf = self._type_filter_clause("coboundary", type) |
883 | 883 | sparql = f"""\ |
884 | | -PREFIX kc: <https://example.org/kc#> |
| 884 | +PREFIX kc: <https://w3id.org/kc#> |
885 | 885 | PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> |
886 | 886 | SELECT ?coboundary WHERE {{ |
887 | 887 | ?coboundary kc:boundedBy <{self._iri(id)}> . |
@@ -938,7 +938,7 @@ def closure(self, ids: str | set[str], *, type: str | None = None) -> set[str]: |
938 | 938 | values = " ".join(f"(<{self._iri(i)}>)" for i in ids) |
939 | 939 | tf = self._type_filter_clause("closure", type) |
940 | 940 | sparql = f"""\ |
941 | | -PREFIX kc: <https://example.org/kc#> |
| 941 | +PREFIX kc: <https://w3id.org/kc#> |
942 | 942 | PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> |
943 | 943 | SELECT ?closure WHERE {{ |
944 | 944 | VALUES (?sigma) {{ {values} }} |
|
0 commit comments