Skip to content

Conversation

@beckyjackson
Copy link
Contributor

@beckyjackson beckyjackson commented May 11, 2020

Resolves #688

  • docs/ have been added/updated
  • tests have been added/updated
  • mvn verify says all tests pass
  • mvn site says all JavaDocs correct
  • CHANGELOG.md has been updated

This PR is mainly to add better error-handling to IRI resolution in template. If a prefix was not defined, a CURIE could still get passed as an "IRI", but the ontology would fail to save because it wasn't a valid QName. All entities generated from templates should have IRIs that are valid QNames, otherwise template will fail at the very end with IllegalElementNameException.

The template tests had to be updated because it turned out that the third template we were testing for the "multiple templates" had everything in it (IDs from template-ids.csv and synonyms from template-labels.csv), so the first two didn't really matter. Additionally, we were never passing the previously generated ontology as input. For example, if you define labels and IDs in template-ids.csv and use only labels in template.csv, it would fail. It didn't fail in the past because we included an ID column in template.csv. This is just a minor rework of the test, not an issue with the template operation.

@jamesaoverton jamesaoverton merged commit b85cabe into master May 12, 2020
@jamesaoverton jamesaoverton deleted the 688-fix branch June 16, 2022 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Robot raise a ONTOLOGY STORAGE ERROR when template gets an rdfxml error

3 participants