Skip to content

Commit 7883b8e

Browse files
authored
Fix ontology term parsing (#1181)
The API object from the terminology service contains an ontology name and an ontology prefix. Previously we used the ontology prefix which can be null but assumed we have the ontology name. Co-authored-by: KochTobi <[email protected]>
1 parent 514cc3a commit 7883b8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

project-management-infrastructure/src/main/java/life/qbic/projectmanagement/infrastructure/ontology/TIBTerminologyServiceIntegration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public TIBTerminologyServiceIntegration(
8585
* @since 1.4.0
8686
*/
8787
private static OntologyClass convert(TibTerm term) {
88-
return new OntologyClass(term.ontologyPrefix, "", "", term.label, term.shortForm,
88+
return new OntologyClass(term.ontologyName, "", "", term.label, term.shortForm,
8989
term.getDescription().orElse(""), term.iri);
9090
}
9191

0 commit comments

Comments
 (0)