atima
(mah)
May 29, 2021, 4:03pm
1
Hello There!
I am developing a Java program to interact with the Stardog database.
I'd like to know if anyone has an example of java code for building a database with specific properties such as reasoning type to be DL and specific query time out?
How can we modify these properties in Java?
Any help is highly appreciated!
Thanks!
serge
(Serge Colle - Senior Solution Architect)
May 31, 2021, 2:52pm
2
Hi Atima,
Here are a few resource from Stardog
atima
(mah)
June 3, 2021, 4:57pm
3
Thank you so much Serge!
For anyone struggling it can be set within the AdminConnection like this:
aAdminConnection.offline(DB);
aAdminConnection.set(DB, ReasoningOptions.REASONING_TYPE, ReasoningType.DL);
aAdminConnection.set(DB, ReasoningOptions.SCHEMA_REASONING_TIMEOUT, Duration.valueOf("3h"));
aAdminConnection.set(DB, DatabaseOptions.CONNECTION_TIMEOUT, Duration.valueOf("3h"));
aAdminConnection.set(DB, DatabaseOptions.QUERY_TIMEOUT, Duration.valueOf("3h"));
aAdminConnection.online(DB);
system
(system)
Closed
June 17, 2021, 4:58pm
4
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.