public class AllInstancesQuery extends Query
Constructor and Description |
---|
AllInstancesQuery(Concept concept) |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.Double> |
getDegrees()
Gets the degree of membership to the query concept for every individual in the knowledge base.
|
java.util.List<Individual> |
getIndividuals()
Gets the named individuals of the knowledge base.
|
void |
preprocess(KnowledgeBase kb)
Performs some preprocessing steps of the query over a fuzzy KB.
|
Solution |
solve(KnowledgeBase kb)
Solves the query over a fuzzy KB.
|
java.lang.String |
toString()
Gets the name of the query.
|
public AllInstancesQuery(Concept concept) throws FuzzyOntologyException
FuzzyOntologyException
public void preprocess(KnowledgeBase kb) throws FuzzyOntologyException
Query
preprocess
in class Query
kb
- A fuzzy KB.FuzzyOntologyException
public Solution solve(KnowledgeBase kb) throws FuzzyOntologyException
Query
solve
in class Query
kb
- A fuzzy KB.FuzzyOntologyException
public java.lang.String toString()
Query
public java.util.List<Individual> getIndividuals()
public java.util.List<java.lang.Double> getDegrees()