public class StatsGenerator
extends java.lang.Object
Constructor and Description |
---|
StatsGenerator() |
Modifier and Type | Method and Description |
---|---|
static java.util.ArrayList<java.lang.String> |
getActualResultsFromFile(java.lang.String resultsFile)
The actual query results from file
|
static java.util.ArrayList<java.lang.String> |
getCurrentResult(org.openrdf.query.TupleQueryResult res)
Get the current results of the query execution
|
static java.lang.String |
getFscores(java.lang.String queryFile,
java.util.ArrayList<java.lang.String> curResults)
Get Precison, Recall, and F1 Score for the given query results
|
static java.lang.String |
getFscores(java.lang.String queryFile,
org.openrdf.query.TupleQueryResult res)
Get Precison, Recall, and F1 Score for the given query results
|
static java.util.ArrayList<java.lang.String> |
getMissingResults(java.lang.String actualResultsFile,
java.util.ArrayList<java.lang.String> curResults)
Get the list of missing results (if any) the query execution
|
static java.util.ArrayList<java.lang.String> |
getMissingResults(java.lang.String actualResultsFile,
org.openrdf.query.TupleQueryResult res)
Get the list of missing results (if any) the query execution
|
static void |
main(java.lang.String[] args) |
public static void main(java.lang.String[] args) throws org.openrdf.repository.RepositoryException, org.openrdf.query.MalformedQueryException, org.openrdf.query.QueryEvaluationException, java.io.IOException
org.openrdf.repository.RepositoryException
org.openrdf.query.MalformedQueryException
org.openrdf.query.QueryEvaluationException
java.io.IOException
public static java.util.ArrayList<java.lang.String> getActualResultsFromFile(java.lang.String resultsFile) throws java.io.IOException
resultsFile
- Specific query results filejava.io.IOException
public static java.lang.String getFscores(java.lang.String queryFile, org.openrdf.query.TupleQueryResult res) throws org.openrdf.query.QueryEvaluationException, org.openrdf.repository.RepositoryException, org.openrdf.query.MalformedQueryException, java.io.IOException
queryFile
- Query file containing actual results of the query.res
- ResultSet Iteratororg.openrdf.query.QueryEvaluationException
org.openrdf.repository.RepositoryException
org.openrdf.query.MalformedQueryException
java.io.IOException
public static java.lang.String getFscores(java.lang.String queryFile, java.util.ArrayList<java.lang.String> curResults) throws org.openrdf.query.QueryEvaluationException, org.openrdf.repository.RepositoryException, org.openrdf.query.MalformedQueryException, java.io.IOException
queryFile
- Query file containing actual results of the query.curResults
- Current Results in array each bindings values should be separated by the
same separator as used in actual results files. In our BigRDFBench results, we used <===> as separator.org.openrdf.query.QueryEvaluationException
org.openrdf.repository.RepositoryException
org.openrdf.query.MalformedQueryException
java.io.IOException
public static java.util.ArrayList<java.lang.String> getMissingResults(java.lang.String actualResultsFile, org.openrdf.query.TupleQueryResult res) throws org.openrdf.query.QueryEvaluationException, org.openrdf.repository.RepositoryException, org.openrdf.query.MalformedQueryException, java.io.IOException
actualResultsFile
- Query file of actual resultsres
- ResultSet Iteratororg.openrdf.query.QueryEvaluationException
org.openrdf.repository.RepositoryException
org.openrdf.query.MalformedQueryException
java.io.IOException
public static java.util.ArrayList<java.lang.String> getMissingResults(java.lang.String actualResultsFile, java.util.ArrayList<java.lang.String> curResults) throws org.openrdf.query.QueryEvaluationException, org.openrdf.repository.RepositoryException, org.openrdf.query.MalformedQueryException, java.io.IOException
actualResultsFile
- Query file of actual resultscurResults
- current Resultsorg.openrdf.query.QueryEvaluationException
org.openrdf.repository.RepositoryException
org.openrdf.query.MalformedQueryException
java.io.IOException
public static java.util.ArrayList<java.lang.String> getCurrentResult(org.openrdf.query.TupleQueryResult res) throws org.openrdf.query.QueryEvaluationException
res
- ResultSet iteratororg.openrdf.query.QueryEvaluationException