Browse files

Updated README from wiki

  • Loading branch information...
1 parent 0319ac2 commit 350e65a43d6dbd23b9d73facd4c92813e2d095da @joshsh joshsh committed Oct 20, 2011
View
6 README.textile
@@ -1,3 +1,7 @@
!https://github.com/tinkerpop/tinkubator/raw/master/doc/images/tinkubator-logo.png!
-The Tinkubator is a laboratory repository for emerging "TinkerPop":http://tinkerpop.com projects. Furthermore, it also contains historic, low-activity projects. If you feel like contributing to TinkerPop, perhaps start a fresh project in the Tinkubator.
+The Tinkubator is a laboratory repository for emerging "TinkerPop":http://tinkerpop.com projects. Furthermore, it also contains historic, low-activity projects. If you feel like contributing to TinkerPop, perhaps start a fresh project in the Tinkubator.
+
+Selected Tinkubator projects:
+# "PropertyGraphSail":https://github.com/tinkerpop/tinkubator/wiki/PropertyGraphSail, which provides an RDF view of any Blueprints graph
+
View
13 property-graph-sail/src/test/java/com/tinkerpop/tinkubator/pgsail/PropertyGraphSailTest.java
@@ -370,14 +370,8 @@ public void testRDFDump() throws Exception {
@Test
public void testSPARQL() throws Exception {
- SPARQLParser parser = new SPARQLParser();
- BindingSet bindings = new EmptyBindingSet();
- String baseURI = "http://example.org/bogus/";
- String queryStr;
- ParsedQuery query;
- CloseableIteration<? extends BindingSet, QueryEvaluationException> results;
int count;
- queryStr = "PREFIX pgm: <" + PropertyGraphSail.ONTOLOGY_NS + ">\n" +
+ String queryStr = "PREFIX pgm: <" + PropertyGraphSail.ONTOLOGY_NS + ">\n" +
"PREFIX prop: <" + PropertyGraphSail.PROPERTY_NS + ">\n" +
"SELECT ?project ?name WHERE {\n" +
" ?marko prop:name \"marko\".\n" +
@@ -390,8 +384,9 @@ public void testSPARQL() throws Exception {
" ?project prop:name ?name.\n" +
"}";
System.out.println(queryStr);
- query = parser.parseQuery(queryStr, baseURI);
- results = sc.evaluate(query.getTupleExpr(), query.getDataset(), bindings, false);
+ ParsedQuery query = new SPARQLParser().parseQuery(queryStr, "http://example.org/bogus/");
+ CloseableIteration<? extends BindingSet, QueryEvaluationException> results
+ = sc.evaluate(query.getTupleExpr(), query.getDataset(), new EmptyBindingSet(), false);
try {
count = 0;
while (results.hasNext()) {

0 comments on commit 350e65a

Please sign in to comment.