How to set namespaces via properties file at database creation time

0 views
Skip to first unread message

Jacobus Geluk

unread,
Dec 30, 2013, 1:36:06 PM12/30/13
to sta...@clarkparsia.com
Hi, I would like to set database.namespaces in the database properties file at creation time so that I do not have to call "stardog-admin namespace add" dozens of times (which is pretty time consuming).

I tried this:

---- snippet from properties file ----
database.namespaces = \
-----

But then I get this warning:

WARNING: Following options cannot be set at creation time and/or contradict with other options: [database.namespaces]

What is it: it can't be done at creation time or does it contradict with something else? I hope the latter...

Cheers
Jacobus

Stephen Nowell

unread,
Dec 30, 2013, 2:32:53 PM12/30/13
to sta...@clarkparsia.com
Hi Jacobus,

If you create an RDF file that defines the namespaces (even if it has no
other data in it) and load it at database creation time, it will add
each of those namespaces to your database.

-Stephen
> --
> -- --
> You received this message because you are subscribed to the C&P
> "Stardog" group.
> To post to this group, send email to sta...@clarkparsia.com
> To unsubscribe from this group, send email to
> stardog+u...@clarkparsia.com
> For more options, visit this group at
> http://groups.google.com/a/clarkparsia.com/group/stardog?hl=en

Evren Sirin

unread,
Dec 31, 2013, 10:36:53 AM12/31/13
to Stardog
The error message is because the namespaces option cannot be specified
at creation time though there is no good reason for this restriction
and we'll relax this restriction in the future. As Stephen pointed out
the namespace definitions in files you specify at creation time are
added automatically so that'd be the easiest workaround at this point.

Best,
Evren
Reply all
Reply to author
Forward
0 new messages