@@includeTop@@ Mulgara | Semantic Store - backup @@includeMiddle@@

export

Directs a Mulgara server to export the contents of an RDF graph into an RDF/XML file. The general syntax is as follows:

export server#graph to [local|remote] file;

Where:

Note - The server#graph notation for graph URI's is not required. The export command also supports exporting graphs with opaque URI's, in which case the export command will be sent to the server running locally at rmi://localhost/server1.

For example:

export <rmi://mysite.com/server1#mygraph> to <file:/tmp/graphexport.rdf>;

and

export <rmi://mysite.com/server1#mygraph> to remote <file:/tmp/graphexport.rdf>;

are equivalent. Both commands write the exported RDF/XML file remotely on the server's filesystem.

export <rmi://mysite.com/server1#mygraph> to local <file:/tmp/graphexport.rdf>;

writes the exported RDF/XML file locally on the client.

export <urn:graph1234> to <file:/tmp/graphexport.rdf>;

tells the server running at rmi://localhost/server1 to export the graph with the opaque URI urn:graph1234.

Use the create and load commands to restore graph exports.

For example:

create <rmi://mysite.com/server1#newgraph>;
load <file:/tmp/graphbackup.rdf> into <rmi://mysite.com/server1#newgraph>;

@@includeBottom@@