Table of Contents

Name

ts-import - add data to a 3store RDF knowledge-base

Synopsis

ts-import [-h] [-u <user>] [-p <passwd>] [-d <db>] [-r <host>] [-v] [-m model] [-f format] [-b] <URI>+

Description

This command adds one or more RDF documents into a 3store knowledge-base.

Options

-h, --help
Show brief help message.
-u, --username
Set the username for the connection to the knowledge-base. This is optional, if it is not given a default will be used, generally 'rdf' unless it was changed at build time.
-p, --password
Set the password for the connection to the knowledge-base. This is optional, if it is not given a default will be used, generally 'rdf' unless it was changed at build time.
-d, --database
Set the database name used for the connection to the knowledge-base. If this parameter is not specified the default will be used.
-r, --remote
Give a remote host to connect to. If not given it will use the local machine.
-b, --background
This only applies in `standards compliance mode' (see ts-setup(1) ), and there it is the default. It specifies that data should be loaded into the 'background graph'. This can be overridden by using the -m flag to specify a model.
-a, --add
Add document to the appropriate model, rather than replacing it. When used without this argument the data in the model will be removed before the new document is imported, with this option the old data will be left. This was on by default in 3store versions 1 and 2.
-m, --model
Allows overriding of the model (graph identifier) that the imported RDF document will be stored under. By default it is the URI that is used to fetch the document.
-f, --format
Set the document format. By default the processor will attempt to guess (`auto'), but sometime it will guess incorrectly, so it can be overridden on the command line to say what parser should be used. Options are `auto', `rdfxml', `turtle' and `ntriples'.
-O, --optimise
Set the optimisation level. 0 is for no optimisation, 1 is normal, 2 is higher and 3 is experimental optimisations, which may reduce overall performance.
<URI>
Any non-option arguments that are given will be treated as URIs or file paths and fetched in order to import the RDF data into the knowledge-base. URIs may be mixed with options to change the way in which various documents are loaded with a single command.

Example

ts-import -f rdfxml http://www.purl.org/net/swh.xrdf
-
Load a file from the given URI and place it in a model with the same name (in `inference mode', in `standards compliance mode' it will place it in the background graph).
ts-import -m http://example.org/foaf http://www.purl.org/net/swh.xrdf
http://www.ecs.soton.ac.uk/~nmg/nmg-foaf.rdf
-
Import http://www.purl.org/net/swh.xrdf and http://www.ecs.soton.ac.uk/~nmg/nmg-foaf.rdf and store the data in the http://example.org/foaf model.

See Also

ts-setup(1) , ts-query(1) , ts-remove(1) , ts-util(1) and ts-explain(1)


Table of Contents