Skip to content

Commit

Permalink
Update DISDRIV purl redirects
Browse files Browse the repository at this point in the history
- Fix ontology IRI redirect
- Add versionIRI redirect
- Add geneic fallback
  • Loading branch information
allenbaron committed Dec 14, 2023
1 parent 6a49915 commit 7f1cfc3
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions config/disdriv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,24 @@
idspace: DISDRIV
base_url: /obo/disdriv


products:
- disdriv.owl: https://raw.githubusercontent.com/DiseaseOntology/DiseaseDriversOntology/main/src/ontology/releases/disdriv.owl
- disdriv.owl: https://raw.githubusercontent.com/DiseaseOntology/DiseaseDriversOntology/main/src/ontology/disdriv.owl

term_browser: ontobee
example_terms:
- DISDRIV_0000002

entries:

- regex: ^/obo/disdriv/releases/([^\s/]+)/(\S+)$
replacement: https://raw.githubusercontent.com/DiseaseOntology/DiseaseDriversOntology/v$1/src/ontology/$2
tests:
- from: /releases/2023-12-15/disdriv.owl
to: https://raw.githubusercontent.com/DiseaseOntology/DiseaseDriversOntology/v2023-12-15/src/ontology/disdriv.owl

# generic fall-back (rules processed in order = keep at bottom)
- prefix: /
replacement: https://raw.githubusercontent.com/DiseaseOntology/DiseaseDriversOntology/main/src/ontology/
tests:
- from: /disdriv.owl
to: https://raw.githubusercontent.com/DiseaseOntology/DiseaseDriversOntology/main/src/ontology/disdriv.owl

0 comments on commit 7f1cfc3

Please sign in to comment.