public void TestTraversal() { var g = new BrightstarDB.Graph.Graph("type=http;endpoint=http://localhost:8090/brightstar", "movielens"); var query = new Query(g, new Uri("http://brightstardb.com/samples/movielens/user/" + 500)); query.TraverseInverse("http://brightstardb.com/samples/movielens/model/user"); // traverse to ratings var result = query.Execute(); Assert.IsNotNull(result); Assert.IsNotNull(result.ResourceSet); Assert.IsTrue(result.ResourceSet.Count > 0); }
public Query(Graph graph, Uri startNode) { _startNodes = new List<Uri> {startNode}; _graph = graph; _terms = new List<QueryTerm>(); }