-
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.
- add selectable attribute - adapt to context being an object instead of a string - convert entries between the model in elastic search and the api format - add (clumsy) queries considering filters (this is not solved in a sophisticated manor) - add endpoint to query for relatives of entries - add endpoint to retrieve criteria profile data (uiprofile, context and termcodes)
- Loading branch information
1 parent
ece4b9a
commit 234faef
Showing
12 changed files
with
283 additions
and
34 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
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
15 changes: 15 additions & 0 deletions
15
src/main/java/de/numcodex/feasibility_gui_backend/terminology/api/UiProfile.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,15 @@ | ||
package de.numcodex.feasibility_gui_backend.terminology.api; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import lombok.Data; | ||
|
||
import java.util.List; | ||
|
||
@Data | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
public class UiProfile { | ||
private String name; | ||
private boolean timeRestrictionAllowed; | ||
private String valueDefinition; | ||
private List<AttributeDefinition> attributeDefinitions; | ||
} |
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
24 changes: 24 additions & 0 deletions
24
.../numcodex/feasibility_gui_backend/terminology/es/model/OntologyItemRelationsDocument.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,24 @@ | ||
package de.numcodex.feasibility_gui_backend.terminology.es.model; | ||
|
||
import jakarta.persistence.Id; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import org.springframework.data.elasticsearch.annotations.Document; | ||
import org.springframework.data.elasticsearch.annotations.Field; | ||
import org.springframework.data.elasticsearch.annotations.FieldType; | ||
|
||
import java.util.Collection; | ||
|
||
@Data | ||
@Builder | ||
@Document(indexName = "ontology") | ||
public class OntologyItemRelationsDocument { | ||
@Field(type = FieldType.Nested, includeInParent = true, name = "translations") | ||
private Collection<Translation> translations; | ||
@Field(type = FieldType.Nested, includeInParent = true, name = "parents") | ||
private Collection<Relative> parents; | ||
@Field(type = FieldType.Nested, includeInParent = true, name = "children") | ||
private Collection<Relative> children; | ||
@Field(type = FieldType.Nested, includeInParent = true, name = "related_terms") | ||
private Collection<Relative> relatedTerms; | ||
} |
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
Oops, something went wrong.