Skip to content

Commit

Permalink
When converting Curie to IRI, return the original string if no conver…
Browse files Browse the repository at this point in the history
…sion is found
  • Loading branch information
jnguyenx committed Feb 2, 2017
1 parent 0d8a4e2 commit b82917e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1007,7 +1007,7 @@ protected OWLClass getOWLClass(String id) {
if (curieUtil.getCurieMap().isEmpty()) {
return getOWLClass(IRI.create(id));
} else {
return getOWLClass(IRI.create(curieUtil.getIri(id).get()));
return getOWLClass(IRI.create(curieUtil.getIri(id).or(id)));
}
}

Expand Down Expand Up @@ -1036,7 +1036,7 @@ public OWLNamedIndividual getOWLNamedIndividual(String id) {
if (curieUtil.getCurieMap().isEmpty()) {
return getOWLNamedIndividual(IRI.create(id));
} else {
return getOWLNamedIndividual(IRI.create(curieUtil.getIri(id).get()));
return getOWLNamedIndividual(IRI.create(curieUtil.getIri(id).or(id)));
}
}

Expand Down

0 comments on commit b82917e

Please sign in to comment.