Skip to content

Instantly share code, notes, and snippets.

View Irtazaraza's full-sized avatar

Syed Irtaza Raza Irtazaraza

View GitHub Profile
public class Main {
public static void main(String[] args) {
SimpleURI localGrakn = new SimpleURI("127.0.0.1", 48555);
Keyspace keyspace = Keyspace.of("gene-disease-associations");
Grakn grakn = new Grakn(localGrakn);
Grakn.Session session = grakn.session(keyspace);
migrateDiseases(session);
migrateGenes(session);
define
disease sub entity,
has disease-name,
has source,
has disease-id,
has disease-mim,
has last-modified,
plays associated-disease;