Last active
October 5, 2015 16:24
-
-
Save mhgrove/1333782 to your computer and use it in GitHub Desktop.
SNARL Admin
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
try (AdminConnection dbms = AdminConnectionConfiguration.toEmbeddedServer().credentials("admin", "admin").connect()) { | |
dbms.disk("icvWithGuard") // disk db named 'icvWithGuard' | |
.set(ICVOptions.ICV_ENABLED, true) // enable icv guard mode | |
.set(ICVOptions.ICV_REASONING_ENABLED, true) // specify that guard mode should use reasoning | |
.create(new File("data/sp2b_10k.n3")); // create the db, bulk loading the file(s) to start | |
} |
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
try (AdminConnection dbms = AdminConnectionConfiguration.toEmbeddedServer().credentials("admin", "admin").connect()) { | |
dbms.memory("waldoTest") | |
.set(SearchOptions.SEARCH_ENABLED, true) | |
.create(); | |
} |
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
try (AdminConnection dbms = AdminConnectionConfiguration.toEmbeddedServer().credentials("admin", "admin").connect()) { | |
aAdminConnection.createMemory("testConnectionAPI"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment