Hi,
Working on an instance of Stardog Essentials...
Perhaps you can help. When attempting to change some properties from the command line interface where the DB must first be taken offline I receive an error. For example, when I attempt a command like:
First take the DB offline:
stardog-admin --server stardog_server db offline --passwd password --username username -- dbname
It does successfully take the DB offline. But it fails when I run:
stardog-admin --server stardog_server metadata set -o search.semantic.enabled=true --passwd password --username username -- dbname
I receive an error:
Invalid option: search.semantic.enabled.
Perhaps I'm doing something wrong. For example, prior to issuing the "metadata set" command above, I had previously successfully set the search.enabled=true.
It appears that the problem may be setting voicebox.enabled, where I get the following error:
Invalid option: voicebox.enabled.
The detailed stack trace for the error is:
com.complexible.stardog.cli.CliException: Invalid option: voicebox.enabled.
at com.complexible.stardog.cli.impl.CliUtil.readOptions(CliUtil.java:132)
at com.complexible.stardog.cli.impl.Set.performSecure(Set.java:60)
at com.complexible.stardog.cli.admin.SecureStardogAdminCommand.call(SecureStardogAdminCommand.java:63)
at com.complexible.stardog.cli.CLIBase.execute(CLIBase.java:56)
at com.complexible.stardog.cli.admin.CLI.main(CLI.java:168)
Regards Marcus
Here is all the detail:
Successfully created database 'example'.
Command used: stardog-admin db create -c database.properties --passwd password -v --username apiuser
Respone returned: 0
The database example is now offline.
Command used: stardog-admin --server serverURL db offline --passwd password --username apiuser -- example
Respone returned: 0
The option(s) for the database 'example' were successfully set.
Command used: stardog-admin --server serverURL metadata set -o search.enabled=true --passwd password --username apiuser -v -- example
Respone returned: 0
Invalid option: search.semantic.enabled.
The detailed stack trace for the error is:
com.complexible.stardog.cli.CliException: Invalid option: search.semantic.enabled.
at com.complexible.stardog.cli.impl.CliUtil.readOptions(CliUtil.java:132)
at com.complexible.stardog.cli.impl.Set.performSecure(Set.java:60)
at com.complexible.stardog.cli.admin.SecureStardogAdminCommand.call(SecureStardogAdminCommand.java:63)
at com.complexible.stardog.cli.CLIBase.execute(CLIBase.java:56)
at com.complexible.stardog.cli.admin.CLI.main(CLI.java:168)
Command used: stardog-admin --server serverURL metadata set -o search.semantic.enabled=true --passwd password --username apiuser -v -- example
Respone returned: 1
The option(s) for the database 'example' were successfully set.
Command used: stardog-admin --server serverURL metadata set -o spatial.enabled=true --passwd password --username apiuser -v -- example
Respone returned: 0
The option(s) for the database 'example' were successfully set.
Command used: stardog-admin --server serverURL metadata set -o spatial.use.jts=true --passwd password --username apiuser -v -- example
Respone returned: 0
The option(s) for the database 'example' were successfully set.
Command used: stardog-admin --server serverURL metadata set -o docs.default.rdf.extractors=text,entities,linked,dictionary --passwd password --username apiuser -v -- example
Respone returned: 0
The option(s) for the database 'example' were successfully set.
Command used: stardog-admin --server serverURL metadata set -o graph.aliases=true --passwd password --username apiuser -v -- example
Respone returned: 0
Invalid option: voicebox.enabled.
The detailed stack trace for the error is:
com.complexible.stardog.cli.CliException: Invalid option: voicebox.enabled.
at com.complexible.stardog.cli.impl.CliUtil.readOptions(CliUtil.java:132)
at com.complexible.stardog.cli.impl.Set.performSecure(Set.java:60)
at com.complexible.stardog.cli.admin.SecureStardogAdminCommand.call(SecureStardogAdminCommand.java:63)
at com.complexible.stardog.cli.CLIBase.execute(CLIBase.java:56)
at com.complexible.stardog.cli.admin.CLI.main(CLI.java:168)
Command used: stardog-admin --server serverURL metadata set -o voicebox.enabled=true --passwd password --username apiuser -v -- example
Respone returned: 1
The database example is now online.
Command used: stardog-admin --server serverURL db online --passwd password --username apiuser -- example
Response returned: 0