Skip to content

Commit

Permalink
Fix base uri
Browse files Browse the repository at this point in the history
  • Loading branch information
ckindermann committed Apr 17, 2024
1 parent 7abf39a commit 0b850de
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/sparql/dc-properties-violation.sparql
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
SELECT ?term ?predicate WHERE {
?term ?predicate ?value .
FILTER(STRSTARTS(STR(?predicate), "http://purl.org/dc/elements/1.1/"))
FILTER(isIRI(?term) && (STRSTARTS(str(?term), "https://github.com/bmir-radx/gcbo/GCBO_")))
FILTER(isIRI(?term) && (STRSTARTS(str(?term), "https://github.com/bmir-radx/gcbo//GCBO_")))
}

2 changes: 1 addition & 1 deletion src/sparql/gcbo_terms.sparql
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ WHERE {
{ ?s1 ?p1 ?term . }
UNION
{ ?term ?p2 ?o2 . }
FILTER(isIRI(?term) && (STRSTARTS(str(?term), "https://github.com/bmir-radx/gcbo/GCBO_")))
FILTER(isIRI(?term) && (STRSTARTS(str(?term), "https://github.com/bmir-radx/gcbo//GCBO_")))
}
2 changes: 1 addition & 1 deletion src/sparql/inject-subset-declaration.ru
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ INSERT { ?y rdfs:subPropertyOf <http://www.geneontology.org/formats/oboInOwl#Sub
WHERE {
?x <http://www.geneontology.org/formats/oboInOwl#inSubset> ?y .
FILTER(isIRI(?y))
FILTER(regex(str(?y),"^(http://purl.obolibrary.org/obo/)") || regex(str(?y),"^(http://www.ebi.ac.uk/efo/)") || regex(str(?y),"^(https://w3id.org/biolink/)") || regex(str(?y),"^(https://github.com/bmir-radx/gcbo)"))
FILTER(regex(str(?y),"^(http://purl.obolibrary.org/obo/)") || regex(str(?y),"^(http://www.ebi.ac.uk/efo/)") || regex(str(?y),"^(https://w3id.org/biolink/)") || regex(str(?y),"^(https://github.com/bmir-radx/gcbo/)"))
}
2 changes: 1 addition & 1 deletion src/sparql/inject-synonymtype-declaration.ru
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ INSERT { ?y rdfs:subPropertyOf <http://www.geneontology.org/formats/oboInOwl#Syn
WHERE {
?x <http://www.geneontology.org/formats/oboInOwl#hasSynonymType> ?y .
FILTER(isIRI(?y))
FILTER(regex(str(?y),"^(http://purl.obolibrary.org/obo/)") || regex(str(?y),"^(http://www.ebi.ac.uk/efo/)") || regex(str(?y),"^(https://w3id.org/biolink/)") || regex(str(?y),"^(https://github.com/bmir-radx/gcbo)"))
FILTER(regex(str(?y),"^(http://purl.obolibrary.org/obo/)") || regex(str(?y),"^(http://www.ebi.ac.uk/efo/)") || regex(str(?y),"^(https://w3id.org/biolink/)") || regex(str(?y),"^(https://github.com/bmir-radx/gcbo/)"))
}
2 changes: 1 addition & 1 deletion src/sparql/iri-range-violation.sparql
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ WHERE {
oboInOwl:inSubset
dcterms:contributor }
?term ?property ?value .
FILTER(isIRI(?term) && (STRSTARTS(str(?term), "https://github.com/bmir-radx/gcbo/GCBO_")))
FILTER(isIRI(?term) && (STRSTARTS(str(?term), "https://github.com/bmir-radx/gcbo//GCBO_")))
FILTER (!isIRI(?value))
}

2 changes: 1 addition & 1 deletion src/sparql/label-with-iri-violation.sparql
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ SELECT ?term ?value
WHERE {
?term rdfs:label ?value .
FILTER (REGEX(?value, "http[s]?[:]"))
FILTER(isIRI(?term) && (STRSTARTS(str(?term), "https://github.com/bmir-radx/gcbo/GCBO_")))
FILTER(isIRI(?term) && (STRSTARTS(str(?term), "https://github.com/bmir-radx/gcbo//GCBO_")))
}

2 changes: 1 addition & 1 deletion src/sparql/owldef-self-reference-violation.sparql
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ SELECT ?term WHERE {
{ ?term owl:equivalentClass [ owl:intersectionOf [ rdf:rest*/rdf:first ?term ] ] }
UNION
{ ?term owl:equivalentClass [ owl:intersectionOf [ rdf:rest*/rdf:first [ owl:someValuesFrom ?term ] ] ] }
FILTER(isIRI(?term) && (STRSTARTS(str(?term), "https://github.com/bmir-radx/gcbo/GCBO_")))
FILTER(isIRI(?term) && (STRSTARTS(str(?term), "https://github.com/bmir-radx/gcbo//GCBO_")))
}

0 comments on commit 0b850de

Please sign in to comment.