Class PhenotypesRetriever
- java.lang.Object
-
- org.molgenis.vibe.core.ontology_processing.PhenotypesRetriever
-
- Direct Known Subclasses:
ChildrenRetriever,MaxDistanceRetriever
public abstract class PhenotypesRetriever extends Object
-
-
Constructor Summary
Constructors Constructor Description PhenotypesRetriever(org.apache.jena.ontology.OntModel model, Collection<Phenotype> inputPhenotypes, int maxDistance)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidaddPhenotypeToNetwork(org.apache.jena.ontology.OntClass phenotypeOC, PhenotypeNetwork network, int distance)Collection<Phenotype>getInputPhenotypes()intgetMaxDistance()PhenotypeNetworkCollectiongetPhenotypeNetworkCollection()protected org.apache.jena.ontology.OntClassretrievePhenotypeFromModel(Phenotype phenotype)abstract voidrun()protected booleanskippableUri(org.apache.jena.ontology.OntClass phenotypeOC)Checks whether an URI is skippable.
-
-
-
Constructor Detail
-
PhenotypesRetriever
public PhenotypesRetriever(org.apache.jena.ontology.OntModel model, Collection<Phenotype> inputPhenotypes, int maxDistance)
-
-
Method Detail
-
getInputPhenotypes
public Collection<Phenotype> getInputPhenotypes()
-
getPhenotypeNetworkCollection
public PhenotypeNetworkCollection getPhenotypeNetworkCollection()
-
getMaxDistance
public int getMaxDistance()
-
retrievePhenotypeFromModel
protected org.apache.jena.ontology.OntClass retrievePhenotypeFromModel(Phenotype phenotype)
-
run
public abstract void run()
-
skippableUri
protected boolean skippableUri(org.apache.jena.ontology.OntClass phenotypeOC)
Checks whether an URI is skippable. This is based on the fact that while the URI is an expected result, it is not used within the application. Otherwise these URIs could cause an error because they would be treated as an unexpected result.
-
addPhenotypeToNetwork
protected void addPhenotypeToNetwork(org.apache.jena.ontology.OntClass phenotypeOC, PhenotypeNetwork network, int distance)- Parameters:
phenotypeOC- what needs to be added to thenetworknetwork- where thephenotypeOCneeds to be added todistance- the number to be used asdistancewhen adding thephenotypeOCto thenetwork
-
-