RDF Dump

0 views
Skip to first unread message

Jasper Koehorst

unread,
Sep 10, 2014, 1:10:47 AM9/10/14
to sta...@clarkparsia.com
I tried to perform a graph dump to RDF files but somehow this either does not work or I am doing something odd...

I have this command:

jasperk@ssb2:~$ /stardog/stardog/stardog-2.2.1/bin/stardog data export -g ALL -s -p password -u user snarl://127.0.0.1:4567/ncbi /usb/ncbi.trig

Exported 1,039,766,536 statements from ncbi as TriG in 2.806 h

but when I ask the size of /usb/ncbi.trig it gives me 0 bytes.

So where did it put the data?


Mike Grove

unread,
Sep 10, 2014, 7:26:23 AM9/10/14
to stardog
It's in /usb/ncbi.trig on the server where Stardog is running.

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

Jasper Koehorst

unread,
Sep 10, 2014, 7:35:58 AM9/10/14
to sta...@clarkparsia.com
That is the entire problem:

-rw-rw-r--    1 jasperk jasperk      0 Sep 10 13:31

It contains 0 bytes...

For example:

stardog data export --format TURTLE -p ssbdata -u admin snarl://127.0.0.1:4567/ncbi

or TRIG

gives

@prefix owl: <http://www.w3.org/2002/07/owl#> .

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

@prefix stardog: <tag:stardog:api:> .

@prefix xml: <http://www.w3.org/XML/1998/namespace> .

@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .


and thats it while...

stardog data export --format TURTLE --named-graph http://ssb.wur.nl/ncbi -p ssbdata -u admin snarl://127.0.0.1:4567/ncbi

shows nothing

and

stardog data export --format TURTLE --named-graph http://ssb.wur.nl/ncbi -p ssbdata -u admin snarl://127.0.0.1:4567/ncbi /usb/ncbi_data

creates an empty file.

When I look at IOTOP it shows that it is writing at full speed but after 2 hours it says that it finished and create ±1 billion triples but the file is empty....





Op woensdag 10 september 2014 13:26:23 UTC+2 schreef Michael Grove:

Mike Grove

unread,
Sep 10, 2014, 7:47:18 AM9/10/14
to stardog
Actually, it should be in .exports in your STARDOG_HOME directory.  You should actually get an error on the CLI specifying -s/--server-side and a file argument.

Cheers,

Mike

Jasper Koehorst

unread,
Sep 10, 2014, 7:51:30 AM9/10/14
to sta...@clarkparsia.com
Thanks it might be useful to put that with big letters in the manual ;)

I found the files! (Many of them as I tried all kinds a lot…) Time to clean them up now.

4.0K ncbi-2014-09-09.0.ttl
4.0K ncbi-2014-09-09.1.ttl
4.0K ncbi-2014-09-09.2.ttl
359M ncbi-2014-09-09.nq
76G ncbi-2014-09-09.trig
4.0K ncbi-2014-09-09.ttl
28G ncbi-2014-09-10.0.trig
4.6G ncbi-2014-09-10.0.ttl
28G ncbi-2014-09-10.1.trig
28G ncbi-2014-09-10.1.ttl
28G ncbi-2014-09-10.2.trig
4.0K ncbi-2014-09-10.trig
74G ncbi-2014-09-10.ttl
To unsubscribe from this group and stop receiving emails from it, send an email to stardog+u...@clarkparsia.com.

Mike Grove

unread,
Sep 10, 2014, 7:53:54 AM9/10/14
to stardog
On Wed, Sep 10, 2014 at 7:51 AM, Jasper Koehorst <jasperk...@gmail.com> wrote:
Thanks it might be useful to put that with big letters in the manual ;)

It's mentioned in the manpage [1]

Cheers,

Mike

Reply all
Reply to author
Forward
0 new messages