# Raptor RDF Parser Toolkit - Raptor RDF parser utility

## NAME

| rapper − Raptor RDF parser utility

## SYNOPSIS

| rapper [OPTIONS] <source-URI> [base-URI]

## EXAMPLE

    rapper -o ntriples http://ilrt.org/discovery/rdf/resources/rss.rdf
    rapper -i rss-tag-soup pile-of-rss.xml http://example.org/base/
    rapper --count http://example.org/index.rdf

## DESCRIPTION

| The rapper utility allows parsing of RDF content by the Raptor RDF parser toolkit emitting the results as RDF triples in a choice of syntaxes. The source-URI can be a file name or if Raptor is built with a WWW retrieval library, a general URI. The optional base-URI is used as the document URI if present.

## OPTIONS

| rapper uses the usual GNU command line syntax, with long options starting with two dashes (‘-’) if supported by the getopt_long function. Otherwise the short options are only available.

| −h, −−help

| Show a summary of the options.

| −i, −−input FORMAT

| Set the input FORMAT to one of ’rdfxml’ (RDF/XML, default), ’ntriples’ (N-Triples, see below), ’turtle’ (Turtle, see below) or ’rss-tag-soup’ (RSS tag soup).

| −o, −−output FORMAT

| Set the output FORMAT to ’simple’ (default) or ’ntriples’ (N-Triples, see below)

| −c, −−count

| Only count the triples and produce no other output.

| −e, −−ignore-errors

| Ignore errors, do not emit the messages and try to continue parsing.

| −q, −−quiet

| No extra information messages.

| −r, −−replace-newlines

| Replace newlines in multi-line literals with spaces.

| −s, −−scan

| Scan for <rdf:RDF> element in the RDF/XML source content..

| −w, −−ignore-warnings

| Ignore warnings, do not emit the messages.

| −v, −−version

| Print the raptor version and exit.

## CONFORMING TO

| RDF/XML Syntax (Revised), W3C Proposed Recommendation, http://www.w3.org/TR/rdf-syntax-grammar/ N-Triples, in RDF Test Cases, Jan Grant and Dave Beckett (eds.) W3C Proposed Recommendation, http://www.w3.org/TR/rdf-testcases/#ntriples Turtle Terse RDF Triple Language, Dave Beckett, http://www.ilrt.bristol.ac.uk/discovery/2004/01/turtle/

## SEE ALSO

| libraptor(7),raptor-config(1)

## CHANGES

| 1.1.0 Removed −a, −−assume since rdf:RDF is now always optional.

## AUTHOR

| Dave Beckett Institute for Learning and Research Technology (ILRT) University of Bristol

Copyright 2002-2004 Dave Beckett, Institute for Learning and Research Technology, University of Bristol