Optional database names

0 views
Skip to first unread message

bsletten

unread,
Dec 14, 2012, 3:17:53 PM12/14/12
to sta...@clarkparsia.com
I'm working on a Stardog NetKernel integration and am digging down into some options more than I have before. For the time being I have to go through the REST API (until we sort out some class versioning issues) which should be sufficient.  As I look through the configuration JSON, I see the documentation shows a database w/ an empty name. I seem to remember a discussion about this, but I can't find it at the moment. Can you verify that blank DB names are allowed? If so, how are they referred to in the REST API?

Mike Grove

unread,
Dec 14, 2012, 3:24:19 PM12/14/12
to stardog
On Fri, Dec 14, 2012 at 3:17 PM, bsletten <brian....@gmail.com> wrote:
I'm working on a Stardog NetKernel integration and am digging down into some options more than I have before. For the time being I have to go through the REST API (until we sort out some class versioning issues) which should be sufficient.  As I look through the configuration JSON, I see the documentation shows a database w/ an empty name. I seem to remember a discussion about this, but I can't find it at the moment. Can you verify that blank DB names are allowed? If so, how are they referred to in the REST API?

No, blank names are not legal in Stardog.  The regex for names is [A-Za-z]{1}[A-Za-z0-9_-]*

Where in the docs do we show a database w/ an empty name?

Cheers,

Mike 

--
-- --
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
 
 

bsletten

unread,
Dec 14, 2012, 3:30:00 PM12/14/12
to sta...@clarkparsia.com

http://stardog.com/docs/network/


Create a new database

...

JSON (application/json):
{
  "dbname" : "",
  "options" : { 
    "icv.active.graphs" : "http://graph, http://another", 
    "search.enabled" : true,
    ...
  },
  "files" : [{ "name":"fileX.ttl", "context":"some:context" }, ...]
}

Mike Grove

unread,
Dec 14, 2012, 3:32:13 PM12/14/12
to stardog
Oh, yeah, that's incorrect.  We'll correct that, thanks for pointing it out.

Cheers,

Mike


--
Reply all
Reply to author
Forward
0 new messages