Package org.aksw.qa.commons.measure
Class SPARQLBasedEvaluation
java.lang.Object
org.aksw.qa.commons.measure.SPARQLBasedEvaluation
This class uses the dbpedia.org/sparql endpoint to check two given sparql
queries whether they return the same result and calculate precision, recall
and f-measure out of it
- Author:
- ricardousbeck
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic doubleprivate static booleanhasAggregations(String query)private static booleanprivate static booleanisSelectType(String sparqlQuery)static doublestatic double
-
Field Details
-
logger
private static org.slf4j.Logger logger
-
-
Constructor Details
-
SPARQLBasedEvaluation
public SPARQLBasedEvaluation()
-
-
Method Details
-
precision
-
recall
-
fMeasure
-
isAskType
-
isSelectType
-
hasAggregations
-