use of ai.grakn.graql.ComputeQuery in project grakn by graknlabs.
the class QueryToStringTest method testComputeQuerySubgraphToString.
// TODO: FIX THIS
@Ignore
@Test
public void testComputeQuerySubgraphToString() {
ComputeQuery query = qb.compute().centrality().usingDegree().in("movie", "person");
assertEquivalent(query, "compute centrality in movie, person; using degree;");
}
use of ai.grakn.graql.ComputeQuery in project grakn by graknlabs.
the class QueryToStringTest method testClusterSizeToString.
@Test
public void testClusterSizeToString() {
ComputeQuery query = qb.compute().cluster().usingConnectedComponent().in("movie", "person").clusterSize(10);
assertEquivalent(query, "compute cluster in movie, person; size 10;");
}
use of ai.grakn.graql.ComputeQuery in project grakn by graknlabs.
the class QueryToStringTest method testClusterToString.
@Test
public void testClusterToString() {
ComputeQuery query = qb.compute().cluster().usingConnectedComponent().in("movie", "person");
assertEquivalent(query, "compute cluster in movie, person;");
}
use of ai.grakn.graql.ComputeQuery in project grakn by graknlabs.
the class QueryToStringTest method testDegreeOf.
// TODO: FIX THIS
@Ignore
@Test
public void testDegreeOf() {
ComputeQuery query = qb.compute().centrality().usingDegree().in("movie", "person").of("person");
assertEquivalent(query, "compute centrality of person in movie, person; using degree;");
}
Aggregations