-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#382 - Change display and translations structure for criteria and con…
…cepts - use correct onto tag in integration test - fix display entry for ontology item relations
- Loading branch information
1 parent
65a2632
commit bbdf144
Showing
7 changed files
with
49 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
src/main/java/de/numcodex/feasibility_gui_backend/terminology/api/RelationEntry.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package de.numcodex.feasibility_gui_backend.terminology.api; | ||
|
||
import de.numcodex.feasibility_gui_backend.common.api.DisplayEntry; | ||
import de.numcodex.feasibility_gui_backend.terminology.es.model.OntologyItemRelationsDocument; | ||
import de.numcodex.feasibility_gui_backend.terminology.es.model.Relative; | ||
import lombok.Builder; | ||
|
||
import java.util.Collection; | ||
|
||
@Builder | ||
public record RelationEntry( | ||
DisplayEntry display, | ||
Collection<Relative> parents, | ||
Collection<Relative> children, | ||
Collection<Relative> relatedTerms | ||
) { | ||
|
||
public static RelationEntry of(OntologyItemRelationsDocument document) { | ||
return RelationEntry.builder() | ||
.display(DisplayEntry.of(document.display())) | ||
.parents(document.parents()) | ||
.children(document.children()) | ||
.relatedTerms(document.relatedTerms()) | ||
.build(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters