Mercurial > hg > semantic-sia
diff src/org/qmul/eecs/c4dm/sparql/utilities/ExecuteTDBSelect.java @ 52:761cbb67e3d4
new
author | stevenh |
---|---|
date | Tue, 02 Apr 2013 23:03:51 +0100 |
parents | |
children | 499327c1180e |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/org/qmul/eecs/c4dm/sparql/utilities/ExecuteTDBSelect.java Tue Apr 02 23:03:51 2013 +0100 @@ -0,0 +1,27 @@ +package org.qmul.eecs.c4dm.sparql.utilities; + +import org.qmul.eecs.c4dm.sia.SiaMain; + +import com.hp.hpl.jena.query.Dataset; +import com.hp.hpl.jena.tdb.TDBFactory; + +public class ExecuteTDBSelect { + + // SPARQL queries + private static final String selectAllFromAllGraphsQuery = "file:src/sparql/select_all_from_all_graphs.sparql"; + + /** + * @param args + */ + public static void main(String[] args) { + + // Obtain a dataset context + Dataset dataset = TDBFactory.assembleDataset(SiaMain.assemblerFile); + + SparqlWrapperMethods.queryDataset(selectAllFromAllGraphsQuery, dataset); + + dataset.close(); + + } + +}