Skip to content

Commit

Permalink
Filter out problematic value from GO. (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
balhoff authored May 16, 2024
1 parent 4c74b8e commit f3c8240
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ ontologies-merged.ttl: mirror
$(ROBOT) merge $(addprefix -i mirror/,$(shell ls mirror)) \
remove --axioms 'disjoint' --trim true --preserve-structure false \
remove --term 'owl:Nothing' --trim true --preserve-structure false \
query --update build-sparql/filter-bad-uri-values.ru \
reason -r ELK -D debug.ofn -o $@.owl &&\
riot -q --nocheck --output=turtle $@.owl >$@

Expand Down
8 changes: 8 additions & 0 deletions build-sparql/filter-bad-uri-values.ru
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
PREFIX term_tracker_item: <http://purl.obolibrary.org/obo/IAO_0000233>
DELETE {
?term term_tracker_item: ?value .
}
WHERE {
?term term_tracker_item: ?value .
FILTER(!STRSTARTS(STR(?value), "http"))
}

0 comments on commit f3c8240

Please sign in to comment.