rdfproc --version (return code: 0)
1.0.17
rdfproc --help (return code: 0)
Usage: rdfproc [options] store-name command arg...
Redland RDF processor utility 1.0.17
Copyright 2000-2012 David Beckett. Copyright 2000-2005 University of Bristol
Utility for processing RDF using the Redland library.
Options:
-c, --contexts Use Redland contexts
-h, --help Print this help, then exit
-n, --new Create a new store (default no)
-o, --output FORMAT Set the triple output format
ntriples N-Triples
turtle Turtle Terse RDF Triple Language
rdfxml-xmp RDF/XML (XMP Profile)
rdfxml-abbrev RDF/XML (Abbreviated)
rdfxml RDF/XML (default)
rss-1.0 RSS 1.0
atom Atom 1.0
dot GraphViz DOT format
json-triples RDF/JSON Triples
json RDF/JSON Resource-Centric
html HTML Table
nquads N-Quads
-p, --password Read storage option 'password' from standard input
-q, --quiet Do not print information messages
-r, --results FORMAT Set the query results format (no default)
xml SPARQL XML Query Results
json SPARQL JSON Query Results
table Table
csv Comma Separated Values (CSV)
tsv Tab Separated Values (TSV)
html HTML Table
turtle Turtle Query Results
rdfxml RDF/XML Query Results
-s, --storage TYPE Set the graph storage type
hashes Indexed hashes (default)
trees Balanced trees
memory In memory lists
file Local file based store
uri URI store (read-only)
-t, --storage-options OPTIONS
Storage options (default "hash-type='bdb',dir='.'")
-v, --version Print the Redland version
-V, --verbose Increase message verbosity
Commands:
parse FILE|URI [SYNTAX [BASEURI [CONTEXT]]]
parse-stream FILE|URI [SYNTAX [BASEURI [CONTEXT]]]
Parse RDF syntax (default RDF/XML) in FILE or URI into the graph
with optional BASEURI, into the optional CONTEXT.
print Print the graph triples.
serialize [SYNTAX [URI [MIME-TYPE]]] Serializes to a syntax (RDF/XML).
query NAME|- URI|- QUERY-STRING Run QUERY-STRING query in language NAME for bindings
find SUBJECT|- PREDICATE|- OBJECT|- [CONTEXT] Find matching triples
contains SUBJECT PREDICATE OBJECT Check if triple is in the graph.
contexts List the contexts in the graph.
add SUBJECT PREDICATE OBJECT [CONTEXT] Add triple to graph.
add-typed SUBJECT PREDICATE OBJECT OBJECT-LANG OBJECT-URI [CONTEXT]
Add datatyped triple to graph.
remove SUBJECT PREDICATE OBJECT [CONTEXT] Remove triple from graph.
remove-context CONTEXT Remove all triples with CONTEXT.
sources | targets | arcs NODE1 NODE2 Show matching nodes.
source | target | arc NODE1 NODE2 Show 1 matching node.
arcs-in | arcs-out NODE Show properties in/out of NODE
has-arc-in | has-arc-out NODE ARC Check for property in/out of NODE.
size Print the number of triples in the graph.
Notation:
nodes are either blank node identifiers like _:ABC,
URIs like http://example.org otherwise are literal strings.
- matches any node when allowed.
triples are three nodes (subject, predicate, object)
predicates can only be uris, only objects can be literals
source means subject of triples matching (?, NODE1, NODE2)
target means object of triples matching (NODE1, NODE2, ?)
arc means predicate of triples matching (NODE1, ?, NODE2)
Report bugs to http://bugs.librdf.org/
Redland home page: http://librdf.org/