Skip to content

Commit 865fd29

Browse files
turbomamclaude
andcommitted
Fix SPARQL term-namespace filters to match actual METPO IRI scheme
ODK 1.6.1 regeneration changed filters from https://w3id.org/metpo/METPO_ to https://w3id.org/METPO_ in 5 SPARQL files. Both were wrong: METPO terms use bare numeric IRIs (https://w3id.org/metpo/0000001, no METPO_ prefix). Sets the correct prefix https://w3id.org/metpo/ in all 5 files. The pre-existing METPO_ suffix was also a bug that matched nothing in the OWL; this commit fixes both the regression and the underlying pre-existing error. Fixes Copilot review comments on PR #487. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 4194478 commit 865fd29

5 files changed

Lines changed: 5 additions & 5 deletions

src/sparql/dc-properties-violation.sparql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
SELECT ?term ?predicate WHERE {
77
?term ?predicate ?value .
88
FILTER(STRSTARTS(STR(?predicate), "http://purl.org/dc/elements/1.1/"))
9-
FILTER(isIRI(?term) && (STRSTARTS(str(?term), "https://w3id.org/METPO_")))
9+
FILTER(isIRI(?term) && (STRSTARTS(str(?term), "https://w3id.org/metpo/")))
1010
}
1111

src/sparql/iri-range-violation.sparql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ WHERE {
1313
oboInOwl:inSubset
1414
dcterms:contributor }
1515
?term ?property ?value .
16-
FILTER(isIRI(?term) && (STRSTARTS(str(?term), "https://w3id.org/METPO_")))
16+
FILTER(isIRI(?term) && (STRSTARTS(str(?term), "https://w3id.org/metpo/")))
1717
FILTER (!isIRI(?value))
1818
}

src/sparql/label-with-iri-violation.sparql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ SELECT ?term ?value
44
WHERE {
55
?term rdfs:label ?value .
66
FILTER (REGEX(?value, "http[s]?[:]"))
7-
FILTER(isIRI(?term) && (STRSTARTS(str(?term), "https://w3id.org/METPO_")))
7+
FILTER(isIRI(?term) && (STRSTARTS(str(?term), "https://w3id.org/metpo/")))
88
}

src/sparql/metpo_terms.sparql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ WHERE {
33
{ ?s1 ?p1 ?term . }
44
UNION
55
{ ?term ?p2 ?o2 . }
6-
FILTER(isIRI(?term) && (STRSTARTS(str(?term), "https://w3id.org/METPO_")))
6+
FILTER(isIRI(?term) && (STRSTARTS(str(?term), "https://w3id.org/metpo/")))
77
}

src/sparql/owldef-self-reference-violation.sparql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ SELECT ?term WHERE {
77
{ ?term owl:equivalentClass [ owl:intersectionOf [ rdf:rest*/rdf:first ?term ] ] }
88
UNION
99
{ ?term owl:equivalentClass [ owl:intersectionOf [ rdf:rest*/rdf:first [ owl:someValuesFrom ?term ] ] ] }
10-
FILTER(isIRI(?term) && (STRSTARTS(str(?term), "https://w3id.org/METPO_")))
10+
FILTER(isIRI(?term) && (STRSTARTS(str(?term), "https://w3id.org/metpo/")))
1111
}

0 commit comments

Comments
 (0)