use of eu.esdihumboldt.hale.io.oml.internal.model.generated.oml.FormalismType in project hale by halestudio.
the class OmlRdfReader method getFormalism.
/**
* converts from JAXB FromalismType {@link FormalismType} to OML
* {@link Formalism}
*
* @param jaxbFormalism
* @return Formalism
*/
private Formalism getFormalism(eu.esdihumboldt.hale.io.oml.internal.model.generated.oml.OntologyType.Formalism jaxbFormalism) {
if (LOG.isTraceEnabled()) {
LOG.trace("getFormalism(eu.esdihumboldt.generated.oml.OntologyType.Formalism) - start");
}
Formalism formalism = null;
if (jaxbFormalism != null) {
FormalismType fType = jaxbFormalism.getFormalism();
URI uri = null;
try {
uri = new URI(fType.getUri());
} catch (URISyntaxException e) {
LOG.error("getFormalism(eu.esdihumboldt.generated.oml.OntologyType.Formalism)", e);
// throw new RuntimeException(e);
}
formalism = new Formalism(fType.getName(), uri);
}
if (LOG.isTraceEnabled()) {
LOG.trace("getFormalism(eu.esdihumboldt.generated.oml.OntologyType.Formalism) - end");
}
return formalism;
}
Aggregations