96979899100101102103
@Override protected void exec() { DatasetGraphTDB dsg = getDatasetGraphTDB() ; Node gn = getGraphName() ; StatsResults results = stats(dsg, gn) ; Stats.write(System.out, results) ; }
172173174175176177178179
@Override protected void exec() { DatasetGraphTDB dsg = getDatasetGraphTDB() ; Node gn = getGraphName() ; StatsResults results = tdbstats.stats(dsg, gn) ; Stats.write(System.out, results) ; }
828384858687888990
return stats.results() ; } @Test public void stats_01() { StatsResults r = statsForDftGraph() ; assertEquals(1, r.getCount()) ; assertEquals(1, r.getPredicates().keySet().size()) ; }
899091929394959697
assertEquals(1, r.getPredicates().keySet().size()) ; } @Test public void stats_02() { NodeId gid = nt.getNodeIdForNode(NodeFactory.createURI("g1")) ; StatsResults r = statsForGraph(gid) ; assertEquals(1, r.getCount()) ; assertEquals(1, r.getPredicates().keySet().size()) ; }
96979899100101102103104
assertEquals(1, r.getPredicates().keySet().size()) ; } @Test public void stats_03() { NodeId gid = nt.getNodeIdForNode(NodeFactory.createURI("g2")) ; StatsResults r = statsForGraph(gid) ; assertEquals(2, r.getCount()) ; assertEquals(1, r.getPredicates().keySet().size()) ; }
102103104105106107108109110
assertEquals(2, r.getCount()) ; assertEquals(1, r.getPredicates().keySet().size()) ; } @Test public void stats_04() { StatsResults r = statsForGraph(null) ; assertEquals(3, r.getCount()) ; assertEquals(1, r.getPredicates().keySet().size()) ; }