Class SortaServiceImpl

    • 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 Iterable<org.molgenis.data.Entity> getAllOntologyEntities()
        Description copied from interface: SortaService
        Get all ontology entities in generic type
        Specified by:
        getAllOntologyEntities in interface SortaService
        Returns:
        list of untyped ontology entities
      • getOntologyEntity

        public org.molgenis.data.Entity getOntologyEntity​(String ontologyIri)
        Description copied from interface: SortaService
        Get a specified ontology entity in generic type based on the given ontologyIri
        Specified by:
        getOntologyEntity in interface SortaService
        Returns:
        specified ontology entity in generic type
      • getOntologyTermEntity

        public org.molgenis.data.Entity getOntologyTermEntity​(String ontologyTermIri,
                                                              String ontologyIri)
        Description copied from interface: SortaService
        Get a specified ontologyterm in generic type based on the given ontologyIri and ontologyTermIri
        Specified by:
        getOntologyTermEntity in interface SortaService
        Returns:
        specifieid ontologyterm entity in a generic type
      • findOntologyTermEntities

        public Iterable<org.molgenis.data.Entity> findOntologyTermEntities​(String ontologyIri,
                                                                           org.molgenis.data.Entity inputEntity)
        Description copied from interface: SortaService
        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. hpo, omim)
        Specified by:
        findOntologyTermEntities in interface SortaService
        Returns:
        a list of ontologyterm entities in generic type