Commandline Application - 4rdf

4RDF version 1.0b1

4RDF command-line application Note: This is a general-purpose RDF tool. If you wish to query a 4Suite repository, you may find '4ss rdf' more convenient.

Usage

4rdf
[--help] [--dump] [--input-format=<FORMAT>]
[--serialize=<FORMAT>] [--full-uris] [--driver=<DRIVER>]
[--dbname=<DBNAME>] [--source-uri=<URI>] [source]...

Options

Name Description
-h, --help show detailed help message
-d, --dump Dump the resulting triples from the specified file or database in Python list-of-tuple form to standard output (no persistent changes are made). This is the default action if no driver is specified
--input-format=<FORMAT> The format of the input file, can be "rdfxml" (the default) or "ntriples"
-s, --serialize=<FORMAT> Serialize the RDF from the given file or database to standard output (no persistent changes are made). Uses the given format, "rdfxml" or "ntriples"
-f, --full-uris Do not abbreviate URIs according to RDF labels and built-in abbreviations
--driver=<DRIVER> Use the given 4RDF backend driver
--dbname=<DBNAME> Update the RDF model database with the given name
--source-uri=<URI> Override the URI used as the base of the document during deserialization

Arguments

Name Description
source The URI of the source RDF document. Note: if you use "-" as the name of the source document, the source will instead be read from standard input.