Mercurial > hg > semantic-sia
comparison 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 |
comparison
equal
deleted
inserted
replaced
51:7d3ef5f70b90 | 52:761cbb67e3d4 |
---|---|
1 package org.qmul.eecs.c4dm.sparql.utilities; | |
2 | |
3 import org.qmul.eecs.c4dm.sia.SiaMain; | |
4 | |
5 import com.hp.hpl.jena.query.Dataset; | |
6 import com.hp.hpl.jena.tdb.TDBFactory; | |
7 | |
8 public class ExecuteTDBSelect { | |
9 | |
10 // SPARQL queries | |
11 private static final String selectAllFromAllGraphsQuery = "file:src/sparql/select_all_from_all_graphs.sparql"; | |
12 | |
13 /** | |
14 * @param args | |
15 */ | |
16 public static void main(String[] args) { | |
17 | |
18 // Obtain a dataset context | |
19 Dataset dataset = TDBFactory.assembleDataset(SiaMain.assemblerFile); | |
20 | |
21 SparqlWrapperMethods.queryDataset(selectAllFromAllGraphsQuery, dataset); | |
22 | |
23 dataset.close(); | |
24 | |
25 } | |
26 | |
27 } |