Skip to content

Commit

Permalink
Commit query files for subset targets. (#29741)
Browse files Browse the repository at this point in the history
  • Loading branch information
balhoff authored Feb 16, 2025
1 parent 0db299c commit e1edc74
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/sparql/subset-properties.sparql
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
PREFIX owl: <http://www.w3.org/2002/07/owl#>
SELECT ?term
WHERE {
{ ?termIRI a owl:AnnotationProperty }
UNION
{ ?termIRI a owl:DatatypeProperty }
UNION
{ ?termIRI a owl:ObjectProperty }
FILTER(isIRI(?termIRI))
BIND(STR(?termIRI) AS ?term)
}
9 changes: 9 additions & 0 deletions src/sparql/subset-terms.sparql
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
PREFIX oio: <http://www.geneontology.org/formats/oboInOwl#>
SELECT ?term ?subset
WHERE {
?termIRI oio:inSubset ?subsetIRI .
FILTER(isIRI(?termIRI))
FILTER(isIRI(?subsetIRI))
BIND(STR(?termIRI) AS ?term)
BIND(REPLACE(STR(?subsetIRI), "http://purl.obolibrary.org/obo/go#", "") AS ?subset)
}

0 comments on commit e1edc74

Please sign in to comment.