Previous Topic

Next Topic

load

Reads RDF/XML or N-Triple statements from a file and and loads them into a model. The URL for the file to load must be absolute. The general syntax is as follows:

load [local | remote] file into model;

For example:

load <http://mysite.com/tmp/mydata.rdf> into <rmi://mysite.com/Server1#Model1>;
load <file:/tmp/ntriple.n3 into <rmi://mysite.com/Server1#Model1>;

By default, the load command expects an RDF/XML file. To load an N-Triple file, the file must have one of the following file extensions: .n3, .nt, .n3.gz, .nt.gz, .n3.zip or .nt.zip. The load command also accepts zip and GNUzip (gzip) compressed file formats.

For documents with a protocol of file:, two optional parameters specify whether the document resides on the server or the client:

  • remote (the default) specifies that the document resides on the server
  • local specifies that the document resides on the client, and is streamed to the server first before loading into the model

For example:

load <file:/tmp/mydata.rdf> into <rmi://mysite.com/Server1#Model1>;

and

load remote <file:/tmp/mydata.rdf> into <rmi://mysite.com/Server1#Model1>;

are equivalent. The file resides on the server and is loaded into the model.

load local <file:/tmp/mydata.rdf> into <rmi://mysite.com/Server1#Model1>;

streams the file from the client to the server first, then loads it into the model.

Note - For systems running a Windows® operating system, the file specification would look something like <file:/C:/temp/mydata.rdf>.

See Also

iTQL Commands

alias

backup

comment (#)

commit

create

delete

drop

execute

help

insert

quit

restore

rollback

select

set

Open Source logo

© 2001-2004 Tucana Technologies, Inc. Some rights reserved.

© 2006 The Mulgara Project. Some rights reserved.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".