This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define | |
disease sub entity, | |
has disease-name, | |
has source, | |
has disease-id, | |
has disease-mim, | |
has last-modified, | |
plays associated-disease; |