@@ -0,0 +1,1417 @@
+package org.mitre.provenance.asias;%0A%0Aimport java.util.Iterator;%0A%0Aimport org.mitre.provenance.client.RESTProvenanceClient;%0Aimport org.mitre.provenance.plusobject.*;%0A%0A/**%0A *  @author piekut%0A *%09Simple call to http://localhost:8080/plus/api/graph/search/%7Bquery:.*%7D via RESTProvenanceClient,%0A *  which corresponds to method search() in DAGServices.java%09%0A */%0A%0Apublic class Test_ExecuteCypherQuery %7B%0A%0A%09public static void main(String %5B%5D args) throws Exception %7B %0A%09%09RESTProvenanceClient client = new RESTProvenanceClient(%22localhost%22, %228080%22);%0A%09%09%0A%09%09// Edit this string to produce different results.  Must be valid Cypher query!%0A%09%09String query = %22MATCH (n:Provenance %7Bname: %5C%22tt-upgrade%5C%22%7D) return n;%22;%0A%09%09%0A%09%09ProvenanceCollection queryMatchResults = client.query(query);%0A%09%09%0A%09%09// print collection info, save to disk.%0A%09%09System.out.println(%22Collection matching Cypher query:  %22 + query);%0A%09%09%0A%09%09System.out.println(%22  # nodes= %22 + queryMatchResults.getNodes().size() + %22: %22);%0A%09%09Iterator%3CPLUSObject%3E nodeIt = queryMatchResults.getNodes().iterator();%0A%09%09while (nodeIt.hasNext()) %7B%0A%09%09%09PLUSObject o = nodeIt.next();%0A%09%09%09System.out.println(%22  OID: %22 + o.getId());%0A%09%09%7D%0A%09%09%0A%09%09System.out.println(%22  # provenance edges= %22 + queryMatchResults.getEdges().size() + %22: %22);%0A%09%09System.out.println(%22  # non-prov edges= %22 + queryMatchResults.getNonProvenanceEdges().size() + %22: %22);%0A%09%09%0A%09%09System.out.println(%22Done!%22);%09%09%0A%09%09System.exit(0); %0A%09%7D // End main%0A%09%0A%7D%0A

Create Test_ExecuteCypherQuery.java