use of ai.grakn.graql.DeleteQuery in project grakn by graknlabs.
the class DeleteQueryImplTest method deleteQueriesWithDifferentVarsAreDifferent.
@Test
public void deleteQueriesWithDifferentVarsAreDifferent() {
DeleteQuery query1 = DeleteQueryImpl.of(vars1, match1);
DeleteQuery query2 = DeleteQueryImpl.of(vars2, match1);
assertNotEquals(query1, query2);
}
use of ai.grakn.graql.DeleteQuery in project grakn by graknlabs.
the class AdminTest method testDeleteQueryPattern.
@Test
public void testDeleteQueryPattern() {
DeleteQuery query = qb.match(var("x").isa("movie")).delete("x");
assertEquals("match $x isa movie;", query.admin().match().toString());
query = qb.match(var("x").directIsa("movie")).delete("x");
assertEquals("match $x isa! movie;", query.admin().match().toString());
}
Aggregations