Skip to content

Commit

Permalink
Preprocess OMO to inject OBO format annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
matentzn committed Nov 14, 2024
1 parent 234a208 commit 6fea9a3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ontology/omo.Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,8 @@ MERGE_TEMPLATE=../templates/annotation_properties.tsv
merge_template: $(MERGE_TEMPLATE)
$(ROBOT) template --prefix "OMO: http://purl.obolibrary.org/obo/OMO_" --merge-before --input $(SRC) \
--template $(MERGE_TEMPLATE) convert -f owl -o $(SRC)


$(EDIT_PREPROCESSED): $(SRC)
$(ROBOT) query --input $< --update $(SPARQLDIR)/inject-is-metadata-tag.ru \
convert --format ofn --output $@
11 changes: 11 additions & 0 deletions src/sparql/inject-is-metadata-tag.ru
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX oboInOwl: <http://www.geneontology.org/formats/oboInOwl#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

INSERT {
?property oboInOwl:is_metadata_tag "true"^^xsd:boolean .
}
WHERE {
?property rdf:type owl:AnnotationProperty .
}

0 comments on commit 6fea9a3

Please sign in to comment.