Add releases prefix, 2020-02-13 fix
@@ -13,19 +13,10 @@ example_terms:
entries:
-- exact: /releases/2020-08-26/
- replacement: https://raw.githubusercontent.com/PopulationAndCommunityOntology/pco/2020-08-26/
-
-#Note this one has to be the full URI, because the ontology has the version IRI listed as 2020-02-13, and a partial replacement won't work:
-- exact: http://purl.obolibrary.org/obo/pco/releases/2020-02-12/pco.owl
+# Handle typo in versionIRI date, see https://github.com/PopulationAndCommunityOntology/pco/issues/84
+- exact: /releases/2020-02-13/pco.owl
replacement: https://raw.githubusercontent.com/PopulationAndCommunityOntology/pco/2020-02-12/pco.owl
-- exact: /releases/2017-11-06/pco.owl
- replacement: https://raw.githubusercontent.com/PopulationAndCommunityOntology/pco/2017-11-06/pco.owl
-
-- exact: /releases/2017-08-16/pco.owl
- replacement: https://raw.githubusercontent.com/PopulationAndCommunityOntology/pco/2017-08-16/pco.owl
-
- exact: /releases/2016-12-14/pco.owl
replacement: https://raw.githubusercontent.com/PopulationAndCommunityOntology/pco/2016-12-14/src/ontology/pco_merged_inferred.owl
@@ -35,8 +26,15 @@ entries:
- exact: /pco_merged_inferred.owl
replacement: https://raw.githubusercontent.com/PopulationAndCommunityOntology/pco/master/src/ontology/pco_merged_inferred.owl
-# - prefix: /releases/
-# replacement: https://raw.githubusercontent.com/PopulationAndCommunityOntology/pco/v
+- prefix: /releases/
+ replacement: https://raw.githubusercontent.com/PopulationAndCommunityOntology/pco/
+ tests:
+ - from: /releases/2020-08-26/pco.owl
+ to: https://raw.githubusercontent.com/PopulationAndCommunityOntology/pco/2020-08-26/pco.owl
+ - from: /releases/2017-08-16/pco.owl
+ to: https://raw.githubusercontent.com/PopulationAndCommunityOntology/pco/2017-08-16/pco.owl
+ - from: /releases/2017-11-06/pco.owl
+ to: https://raw.githubusercontent.com/PopulationAndCommunityOntology/pco/2017-11-06/pco.owl
- prefix: /about/
replacement: http://www.ontobee.org/ontology/PCO?iri=http://purl.obolibrary.org/obo/
