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

oeo import from stato #8

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all 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
13 changes: 13 additions & 0 deletions oeo-imports/stato/extract-stato-module.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Note: For consistent results run with ROBOT v1.91 or higher
# Download the STATO release 1.3 (2016-03-18)
curl -L https://raw.githubusercontent.com/ISA-tools/stato/dev/releases/1.3/stato.owl > stato-full-download.owl
# Extract the terms we want without hierarchy
# Classification: tbd in oeo-import-edits
robot merge --input stato-full-download.owl extract --method MIREOT --lower-terms stato-extract-n-hierarchy.txt --upper-term owl:topObjectProperty --intermediates none --output stato-extracted.owl
# Annotates the output module with a commentary to the origin of the content
robot annotate --input stato-extracted.owl --annotation rdfs:comment "This file contains externally imported content from the Statistics Ontology (STATO) for import into the Open Energy Ontology (OEO). It is automatically extracted using ROBOT." --output iao-extracted.owl
# Annotates each axiom with the ontology IRI, using prov:wasDerivedFrom
robot annotate --input stato-extracted.owl --annotate-derived-from true --annotate-defined-by true --output stato-extracted.owl
# Annotate with new ontology information
robot annotate --input stato-extracted.owl --ontology-iri http://openenergy-platform.org/ontology/oeo/imports/stato-extracted.owl --version-iri http://openenergy-platform.org/ontology/oeo/dev/imports/iao-extracted.owl --output iao-extracted.owl
rm stato-full-download.owl
4 changes: 4 additions & 0 deletions oeo-imports/stato/stato-extract-n-hierarchy.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
http://purl.obolibrary.org/obo/STATO_0000314 # upper confidence limit
http://purl.obolibrary.org/obo/STATO_0000315 # lower confidence limit
http://purl.obolibrary.org/obo/STATO_0000196 # confidence interval