@@ -175,12 +175,12 @@ private void transformDataTypeProperty(Set<OWLDataProperty> OWLDataPropertiesSet
175175 isGenericLiteral = true ;
176176 }
177177
178- IRI ontoIRI = onto .getOntologyID ().getOntologyIRI ().get ();
178+ IRI ontoIRI = onto .getOntologyID ().getOntologyIRI ().orNull ();
179179 if (ontoIRI == null && rdfsIsDefinedBy != null ) {
180180 ontoIRI = IRI .create (rdfsIsDefinedBy );
181181 }
182182
183- // add non generic literal node
183+ // add non generic literal node
184184 mod .addPropertyNode (targetNodeID , rdfsRessourceType , rdfsRange , null , null , null , null , null , isGenericLiteral );
185185
186186 if (sourceNodeID != -1 && targetNodeID != -1 ) {
@@ -340,7 +340,7 @@ private void transformObjectProperty(Set<OWLObjectProperty> OWLObjectPropertiesS
340340 targetNodeID = -1 ;
341341 }
342342
343- IRI ontoIRI = onto .getOntologyID ().getOntologyIRI ().get ();
343+ IRI ontoIRI = onto .getOntologyID ().getOntologyIRI ().orNull ();
344344 if (ontoIRI == null && rdfsIsDefinedBy != null ) {
345345 ontoIRI = IRI .create (rdfsIsDefinedBy );
346346 }
@@ -464,7 +464,7 @@ private void transformClasses(Set<OWLClass> OWLClassSet, OWLOntology onto, Graph
464464 mod .addClassThingWithDetails (0 , classID , className , classIRI , classComment , definedBy , owlVersion );
465465 } else {
466466 // check the namespace of the class if the class is imported or not
467- IRI ontoIRI = onto .getOntologyID ().getOntologyIRI ().get ();
467+ IRI ontoIRI = onto .getOntologyID ().getOntologyIRI ().orNull ();
468468 if (ontoIRI == null && definedBy != null ) {
469469 ontoIRI = IRI .create (definedBy );
470470 }
0 commit comments