|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.dllearner.core.EvaluatedDescription
public class EvaluatedDescription
An evaluated description is a description and its score (with some convenience method and serialisation formats).
| Constructor Summary | |
|---|---|
EvaluatedDescription(Description description,
Score score)
Constructs an evaluated description using its score. |
|
| Method Summary | |
|---|---|
String |
asJSON()
This convenience method can be used to store and exchange evaluated descriptions by transforming them to a JSON string. |
double |
getAccuracy()
|
Description |
getDescription()
Gets the description, which was evaluated. |
int |
getDescriptionDepth()
|
int |
getDescriptionLength()
|
String |
getSparqlQuery(int limit)
Returns a SPARQL query to get instances of this description from a SPARQL endpoint. |
void |
setDescription(Description description)
Used for rewriting (simplification, beautification) of evaluated descriptions returned by the learning algorithm. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EvaluatedDescription(Description description,
Score score)
description - The description, which was evaluated.score - The score of the description.| Method Detail |
|---|
public Description getDescription()
public void setDescription(Description description)
description - The description to set.public int getDescriptionLength()
KBElement.getLength()public int getDescriptionDepth()
Description.getDepth()public double getAccuracy()
org.dllearner.core.Score#getScoreValue()public String getSparqlQuery(int limit)
limit - The maximum number of results. Corresponds to LIMIT
in SPARQL.
public String asJSON()
public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||