Class SortaServiceImpl
- java.lang.Object
-
- org.molgenis.ontology.sorta.service.impl.SortaServiceImpl
-
- All Implemented Interfaces:
SortaService
public class SortaServiceImpl extends Object implements SortaService
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_MATCHING_IDENTIFIERstatic StringDEFAULT_MATCHING_NAME_FIELDstatic StringDEFAULT_MATCHING_SYNONYM_PREFIX_FIELDstatic CharacterDEFAULT_SEPARATOR
-
Constructor Summary
Constructors Constructor Description SortaServiceImpl(DataService dataService, InformationContentService informationContentService, OntologyTermHitMetaData ontologyTermHitMetaData, org.molgenis.ontology.core.meta.OntologyTermSynonymFactory ontologyTermSynonymFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterable<Entity>findOntologyTermEntities(String ontologyIri, Entity inputEntity)Find a list of relevant ontologyterm typed entities using lexical matching (elasticsearch + ngram) in generic type based on given ontologyIri and a set of query inputs (name, synonym, ontology database id, e.g.Iterable<Entity>getAllOntologyEntities()Get all ontology entities in generic typeEntitygetOntologyEntity(String ontologyIri)Get a specified ontology entity in generic type based on the given ontologyIriEntitygetOntologyTermEntity(String ontologyTermIri, String ontologyIri)Get a specified ontologyterm in generic type based on the given ontologyIri and ontologyTermIri
-
-
-
Field Detail
-
DEFAULT_SEPARATOR
public static final Character DEFAULT_SEPARATOR
-
DEFAULT_MATCHING_NAME_FIELD
public static final String DEFAULT_MATCHING_NAME_FIELD
- See Also:
- Constant Field Values
-
DEFAULT_MATCHING_SYNONYM_PREFIX_FIELD
public static final String DEFAULT_MATCHING_SYNONYM_PREFIX_FIELD
- See Also:
- Constant Field Values
-
DEFAULT_MATCHING_IDENTIFIER
public static final String DEFAULT_MATCHING_IDENTIFIER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SortaServiceImpl
public SortaServiceImpl(DataService dataService, InformationContentService informationContentService, OntologyTermHitMetaData ontologyTermHitMetaData, org.molgenis.ontology.core.meta.OntologyTermSynonymFactory ontologyTermSynonymFactory)
-
-
Method Detail
-
getAllOntologyEntities
public Iterable<Entity> getAllOntologyEntities()
Description copied from interface:SortaServiceGet all ontology entities in generic type- Specified by:
getAllOntologyEntitiesin interfaceSortaService- Returns:
- list of untyped ontology entities
-
getOntologyEntity
public Entity getOntologyEntity(String ontologyIri)
Description copied from interface:SortaServiceGet a specified ontology entity in generic type based on the given ontologyIri- Specified by:
getOntologyEntityin interfaceSortaService- Returns:
- specified ontology entity in generic type
-
getOntologyTermEntity
public Entity getOntologyTermEntity(String ontologyTermIri, String ontologyIri)
Description copied from interface:SortaServiceGet a specified ontologyterm in generic type based on the given ontologyIri and ontologyTermIri- Specified by:
getOntologyTermEntityin interfaceSortaService- Returns:
- specifieid ontologyterm entity in a generic type
-
findOntologyTermEntities
public Iterable<Entity> findOntologyTermEntities(String ontologyIri, Entity inputEntity)
Description copied from interface:SortaServiceFind a list of relevant ontologyterm typed entities using lexical matching (elasticsearch + ngram) in generic type based on given ontologyIri and a set of query inputs (name, synonym, ontology database id, e.g. hpo, omim)- Specified by:
findOntologyTermEntitiesin interfaceSortaService- Returns:
- a list of ontologyterm entities in generic type
-
-