diff --git a/misclassified_biomes.Makefile b/misclassified_biomes.Makefile new file mode 100644 index 00000000..6cb599ad --- /dev/null +++ b/misclassified_biomes.Makefile @@ -0,0 +1,6 @@ +# from src/envo, do `./run.sh make all` first + +misclassified_biomes.tsv: src/envo/envo.owl misclassified_biomes.rq + robot query \ + --input $(word 1, $^) \ + --query $(word 2, $^) $@ diff --git a/misclassified_biomes.rq b/misclassified_biomes.rq new file mode 100644 index 00000000..61d0addf --- /dev/null +++ b/misclassified_biomes.rq @@ -0,0 +1,18 @@ +PREFIX rdfs: +PREFIX ENVO: +PREFIX owl: +PREFIX nmdc: +select ?class_curie (str(?label) as ?label_str) +where { + { + ?c rdfs:label ?label . + filter(strends(?label, "biome")) + } minus { + ?c owl:deprecated true + } + minus { + ?c rdfs:subClassOf* ENVO:00000428 . + } + bind(concat("ENVO:", strafter(str(?c), "http://purl.obolibrary.org/obo/ENVO_")) as ?class_curie) +} +order by str(?label) \ No newline at end of file