Skip to content

Commit

Permalink
Add taxon disjoints to subset (#75)
Browse files Browse the repository at this point in the history
* add taxon disjoints to subset

* update query

* update subset pipeline

* new pipeline for disjoint file in ncbitaxon

* update readme to include disjoint file in ncbitaxon

* Revert "update readme to include disjoint file in ncbitaxon"

This reverts commit 9ef8074.

* Revert "new pipeline for disjoint file in ncbitaxon"

This reverts commit b6c412a.

---------

Co-authored-by: Anita Caron <[email protected]>
  • Loading branch information
Anita Caron and anitacaron authored Jun 16, 2023
1 parent b244442 commit 26bbfae
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
5 changes: 4 additions & 1 deletion subsets/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ taxslim: taxon-subset-ids.txt
robot convert -i taxslim.owl -f json -o taxslim.json

taxslim-disjoint-over-in-taxon.owl: taxslim
owltools taxslim.owl --create-taxon-disjoint-over-in-taxon --root NCBITaxon:1
owltools taxslim.owl --create-taxon-disjoint-over-in-taxon --root NCBITaxon:1 --output $@.tmp.owl
robot query --input taxslim.owl --format ttl --query add-taxon-disjoints.ru $@.tmp.ttl
robot merge --input $@.tmp.owl --input $@.tmp.ttl --output $@
rm $@.tmp.owl && rm $@.tmp.ttl

## The following should not be run as part of CI job.
## Admin for this project should run and check in results.
Expand Down
22 changes: 22 additions & 0 deletions subsets/add-taxon-disjoints.ru
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX in_taxon: <http://purl.obolibrary.org/obo/RO_0002162>
CONSTRUCT {
[
a owl:Restriction ;
owl:onProperty in_taxon: ;
owl:someValuesFrom ?subtaxon ;
owl:disjointWith [
a owl:Restriction ;
owl:onProperty in_taxon: ;
owl:someValuesFrom [
a owl:Class ;
owl:complementOf ?subtaxon
]
]
] .
}
WHERE {
?subtaxon rdf:type owl:Class .
}

0 comments on commit 26bbfae

Please sign in to comment.