Class SortaServiceImpl
- java.lang.Object
-
- org.molgenis.ontology.sorta.service.impl.SortaServiceImpl
-
- All Implemented Interfaces:
SortaService
public class SortaServiceImpl extends java.lang.Object implements SortaService
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_MATCHING_IDENTIFIERstatic java.lang.StringDEFAULT_MATCHING_NAME_FIELDstatic java.lang.StringDEFAULT_MATCHING_SYNONYM_PREFIX_FIELDstatic java.lang.CharacterDEFAULT_SEPARATORstatic java.lang.StringSIGNIFICANT_VALUE
-
Constructor Summary
Constructors Constructor Description SortaServiceImpl(org.molgenis.data.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 java.lang.Iterable<org.molgenis.data.Entity>findOntologyTermEntities(java.lang.String ontologyIri, org.molgenis.data.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.java.lang.Iterable<org.molgenis.data.Entity>getAllOntologyEntities()Get all ontology entities in generic typeorg.molgenis.data.EntitygetOntologyEntity(java.lang.String ontologyIri)Get a specified ontology entity in generic type based on the given ontologyIriorg.molgenis.data.EntitygetOntologyTermEntity(java.lang.String ontologyTermIri, java.lang.String ontologyIri)Get a specified ontologyterm in generic type based on the given ontologyIri and ontologyTermIri
-
-
-
Field Detail
-
SIGNIFICANT_VALUE
public static final java.lang.String SIGNIFICANT_VALUE
- See Also:
- Constant Field Values
-
DEFAULT_SEPARATOR
public static final java.lang.Character DEFAULT_SEPARATOR
-
DEFAULT_MATCHING_NAME_FIELD
public static final java.lang.String DEFAULT_MATCHING_NAME_FIELD
- See Also:
- Constant Field Values
-
DEFAULT_MATCHING_SYNONYM_PREFIX_FIELD
public static final java.lang.String DEFAULT_MATCHING_SYNONYM_PREFIX_FIELD
- See Also:
- Constant Field Values
-
DEFAULT_MATCHING_IDENTIFIER
public static final java.lang.String DEFAULT_MATCHING_IDENTIFIER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SortaServiceImpl
public SortaServiceImpl(org.molgenis.data.DataService dataService, InformationContentService informationContentService, OntologyTermHitMetaData ontologyTermHitMetaData, org.molgenis.ontology.core.meta.OntologyTermSynonymFactory ontologyTermSynonymFactory)
-
-
Method Detail
-
getAllOntologyEntities
public java.lang.Iterable<org.molgenis.data.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 org.molgenis.data.Entity getOntologyEntity(java.lang.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 org.molgenis.data.Entity getOntologyTermEntity(java.lang.String ontologyTermIri, java.lang.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 java.lang.Iterable<org.molgenis.data.Entity> findOntologyTermEntities(java.lang.String ontologyIri, org.molgenis.data.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
-
-