Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a new inSubset ROBOT template #2196

Merged
merged 12 commits into from
Mar 17, 2022
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/odk-workflows/RepositoryFileStructure.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,4 @@ These are the components in UBERON
| Filename | URL |
| -------- | --- |
| mappings.owl | None |
| in-taxon.owl | None |
rays22 marked this conversation as resolved.
Show resolved Hide resolved
4 changes: 3 additions & 1 deletion src/ontology/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ TODAY ?= $(shell date +%Y-%m-%d)
OBODATE ?= $(shell date +'%d:%m:%Y %H:%M')
VERSION= $(TODAY)
ANNOTATE_ONTOLOGY_VERSION = annotate -V $(ONTBASE)/releases/$(VERSION)/$@ --annotation owl:versionInfo $(VERSION)
OTHER_SRC = $(PATTERNDIR)/definitions.owl $(COMPONENTSDIR)/mappings.owl
OTHER_SRC = $(PATTERNDIR)/definitions.owl $(COMPONENTSDIR)/mappings.owl $(COMPONENTSDIR)/in-taxon.owl
ONTOLOGYTERMS = $(TMPDIR)/ontologyterms.txt
PATTERNDIR= ../patterns
PATTERN_TESTER= dosdp validate -i
Expand Down Expand Up @@ -323,6 +323,8 @@ $(COMPONENTSDIR)/%: | $(COMPONENTSDIR)





# ----------------------------------------
# Mirroring upstream ontologies
# ----------------------------------------
Expand Down
420 changes: 198 additions & 222 deletions src/ontology/catalog-v001.xml

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions src/ontology/components/in-taxon.owl
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0"?>
rays22 marked this conversation as resolved.
Show resolved Hide resolved
<rdf:RDF
xml:base="http://purl.obolibrary.org/obo/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:oboInOwl="http://www.geneontology.org/formats/oboInOwl#"
xmlns:xml="http://www.w3.org/XML/1998/namespace"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:obo="http://purl.obolibrary.org/obo/">
<owl:Ontology rdf:about="http://purl.obolibrary.org/obo/uberon/components/in-taxon.owl"/>

<!-- This is a placeholder, it will be regenerated when makefile is first executed -->
</rdf:RDF>
3 changes: 2 additions & 1 deletion src/ontology/uberon-edit.obo
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ treat-xrefs-as-equivalent: OG
treat-xrefs-as-equivalent: VSAO
treat-xrefs-as-is_a: VHOG
remark: Aurelie Comte, Bill Bug, Catherine Leroy, Duncan Davidson and Trish Whetzel are also contributors. However their ORCIDs were not found.
import: http://purl.obolibrary.org/obo/uberon/components/in-taxon.owl
import: http://purl.obolibrary.org/obo/uberon/components/mappings.owl
import: http://purl.obolibrary.org/obo/uberon/components/vasculature_class.owl
import: http://purl.obolibrary.org/obo/uberon/imports/bfo_import.owl
Expand Down Expand Up @@ -147141,8 +147142,8 @@ id: UBERON:0011390
name: pudendal nerve
def: "The pudendal nerve is a somatic nerve in the pelvic region that innervates the external genitalia of both sexes, as well as sphincters for the bladder and the rectum. It originates in Onuf's nucleus in the sacral region of the spinal cord." [Wikipedia:Pudendal_nerve]
synonym: "internal pudendal nerve" RELATED [Wikipedia:Pudendal_nerve]
synonym: "nervus pudendae" EXACT LATIN [doi:10.1002/ca.23705]
synonym: "nervus pudendae" EXACT DEPRECATED [doi:10.1002/ca.23705]
synonym: "nervus pudendae" EXACT LATIN [doi:10.1002/ca.23705]
synonym: "nervus pudendales" EXACT LATIN [doi:10.1002/ca.23705]
synonym: "pudenal nerve" RELATED [Wikipedia:Pudendal_nerve]
synonym: "pudendal" BROAD [Wikipedia:Pudendal_nerve]
Expand Down
23 changes: 12 additions & 11 deletions src/ontology/uberon-odk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ export_formats:
- owl
- obo
- json
namespaces:
namespaces:
- http://purl.obolibrary.org/obo/UBERON_
- http://purl.obolibrary.org/obo/uberon#
- http://purl.obolibrary.org/obo/UBPROP_
release_artefacts:
release_artefacts:
- base
- full
- simple
Expand All @@ -33,7 +33,7 @@ import_group:
mirror_from: https://raw.githubusercontent.com/obophenotype/pro_obo_slim/master/pr_slim.owl
- id: cl
- id: go
- id: envo
- id: envo
- id: ro
- id: bspo
- id: chebi
Expand Down Expand Up @@ -87,23 +87,24 @@ subset_group:
robot_java_args: '-Xmx20G'
robot_report:
release_reports: False
fail_on : ERROR
use_labels : False
custom_profile : True
report_on :
fail_on: ERROR
use_labels: False
custom_profile: True
report_on:
- edit
custom_sparql_checks :
- equivalent-classes
custom_sparql_checks:
- equivalent-classes
- owldef-self-reference
- illegal-annotation-property
- taxon-range
- orcid-contributor
custom_sparql_exports :
custom_sparql_exports:
- basic-report
owltools_memory: '20G'
create_obo_metadata: FALSE
documentation:
documentation_system: mkdocs
components:
products:
- filename: mappings.owl
- filename: mappings.owl
- filename: in-taxon.owl
rays22 marked this conversation as resolved.
Show resolved Hide resolved
8 changes: 8 additions & 0 deletions src/ontology/uberon.Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1675,6 +1675,14 @@ uberon-nif-merged.obo: uberon-nif-merged.owl
%-names.txt: %.obo
grep ^name: $< | grep -v obsolete | perl -npe 's@name: @@' > $@.tmp && sort -u $@.tmp > $@

# ----------------------------------------
# ROBOT PATTERNS AND TEMPLATES
# ----------------------------------------

$(COMPONENTSDIR)/in-subset.owl: $(SRC) $(TEMPLATEDIR)/in-subset.template.tsv
$(ROBOT) template --template $(TEMPLATEDIR)/in-subset.template.tsv \
annotate --ontology-iri $(ONTBASE)/$@ --output $(COMPONENTSDIR)/in-subset.owl

# ----------------------------------------
# DEAD SIMPLE DESIGN PATTERNS
# ----------------------------------------
Expand Down
2 changes: 2 additions & 0 deletions src/templates/in-subset.template.tsv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Class ID Subset tag PROVENANCE
ID AI oboInOwl:inSubset >AI oboInOwl:source