Stardog response to exportDB with nonexistent graphURI not helpful

1 view
Skip to first unread message

jrh...@thematix.com

unread,
Jul 13, 2015, 10:26:10 PM7/13/15
to sta...@clarkparsia.com
Running Stardog 3.1.2 using stardog.js 0.3.0  in node.
When I execute exportDB with a graphUri option and the named graph does not exist, I get back a dump of the entire database.
I need to return a 404 not found to the browser in this case, but no simple way to tell the difference between entire database export and named graph export.
Better would be if the option is not tag:stardog:api:context:all and the named graph is not found, return a zero length string.

Michael Grove

unread,
Jul 14, 2015, 8:16:27 AM7/14/15
to stardog
Can you provide a code example of where this occurs?  I am not able to reproduce this behavior on the command line:

```
mhgrove:dist mhgrove$ ./bin/stardog data export --named-graph urn:doesNotExist --format TRIG foo
@prefix stardog: <tag:stardog:api:> .
```

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

Reply all
Reply to author
Forward
0 new messages