rapper(1)
โจ NAME โจ
okay so bestie, meet rapper โ the Raptor RDF parsing and serializing utility. it's the command-line bestie of the Raptor toolkit and she eats RDF for breakfast ๐
(this is the rapper(1) page, general commands manual energy, iykyk).
๐ฆ SYNOPSIS ๐ฆ
rapper [OPTIONS] INPUT-URI [INPUT-BASE-URI]
๐ธ EXAMPLE ๐ธ
rapper -o ntriples http://planetrdf.com/guide/rss.rdf
rapper -i rss-tag-soup -o rss-1.0 pile-of-rss.xml http://example.org/base/
rapper --count http://example.org/index.rdf
๐ DESCRIPTION ๐
so the rapper utility lets you parse RDF content using the Raptor RDF parser toolkit, and it emits the results as RDF triples in whichever syntax you pick. choose your own adventure, no cap โจ
the INPUT-URI can be:
- a file name
-for standard input- or, if Raptor was built with a WWW retrieval library, a general URI
the optional INPUT-BASE-URI gets used as the document parser base URI if you give it โ otherwise it defaults to the INPUT-URI. and a value of - means no base URI. that's it, that's the vibe ๐ซถ
๐ OPTIONS ๐
rapper uses the usual GNU command line syntax, with long options starting with two dashes (`-') if supported by the getopt_long function. otherwise? short options only, bestie. that's just how it is ๐
-h,--helpโ show a summary of the options. (the lil cheat sheet, highly recommend)-i,--input FORMATโ set the inputFORMATto one of'rdfxml'(RDF/XML, and that's the default),'ntriples'(N-Triples, see below),'turtle'(Turtle, see below) or'rss-tag-soup'(RSS Tag Soup). and okay the RSS Tag Soup parser is genuinely iconic โ it can turn the many XML RSS formats, Atom 0.3 and Atom 1.0 into RDF triples. obsessed. the list of parsers depends on howlibraptor(3)was built, and the list of supported parsers is given in the help summary given by-h.-I,--input-uri URIโ set the input/parser base URI, or use the value-for no base. the default is theINPUT-URIargument value.-o,--output FORMATโ set the outputFORMATto'ntriples'(N-Triples, and yes that's the default),'rdfxml'(RDF/XML),'rdfxml-abbrev'(RDF/XML with abbreviations) or'rss-1.0'(RSS 1.0, which is also an RDF/XML syntax). the list of serializers depends on howlibraptor(3)was built, and the list of supported serializers is given in the help summary given by-h.-O,--output-uri URIโ set the output/serializer base URI, or use the value-for no base. the default is the input base uri, either set by the argumentINPUT-BASE-URIor via options-I,--input-uri URI.-c,--countโ only count the triples and produce no other output. just the number, main character minimalism โจ-e,--ignore-errorsโ ignore errors, do not emit the messages and try to continue parsing.-f,--feature FEATURE[=VALUE]โ set a parser or serializer featureFEATUREto a value, or to1ifVALUEis omitted. use-f helpto get lists of valid parser and serializer features. if the form-f 'xmlns:prefix="uri"'is used, the prefix and namespace uri given will be set for serializing. the syntax matches XML in that either or both of prefix or uri can be omitted.-g,--guessโ guess the parser to use from the source-URI rather than use the-i FORMAT. she's psychic, she's thriving ๐ฎ-q,--quietโ no extra information messages.-r,--replace-newlinesโ replace newlines in multi-line literals with spaces.--show-graphsโ print graph names (URIs) as they are seen in the input. this only has a meaning for parsers that support graph names such as the TRiG parser.--show-namespacesโ print namespaces as they are seen in the input.-t,--traceโ print URIs retrieved during parsing. especially useful for monitoring what the guess and GRDDL parsers are doing. peak detective behavior ๐ต๏ธ-w,--ignore-warningsโ ignore warnings, do not emit the messages.-v,--versionโ print the raptor version and exit.
๐ EXAMPLES ๐
rapper -q -i ntriples -o rdfxml -f
'xmlns:rss="http://purl.org/rss/1.0/"' -f
'xmlns:ex="http://example.org/"' tests/test.nt
rapper -q -o rdfxml -f 'xmlns:rdfs="http://www.w3.org/2000/01/rdf-
schema#"' tests/rdf-schema.rdf 'http://www.w3.org/2000/01/rdf-schema#'
๐ CONFORMING TO ๐
- RDF/XML Syntax (Revised), W3C Recommendation, http://www.w3.org/TR/rdf-syntax-grammar/
- N-Triples, in RDF Test Cases, Jan Grant and Dave Beckett (eds.), W3C Recommendation, http://www.w3.org/TR/rdf-testcases/#ntriples
- Turtle Terse RDF Triple Language, Dave Beckett, http://www.dajobe.org/2004/01/turtle/
- RDFA in XHTML: Syntax and Processing, Ben Adida, Mark Birbeck, Shane McCarron and Steven Pemberton (eds.), W3C Candidate Recommendation, 20 June 2008 http://www.w3.org/TR/2008/CR-rdfa-syntax-20080620/
- RDF Site Summary (RSS) 1.0, 2000-12-06 http://purl.org/rss/1.0/spec
๐ฅ SEE ALSO ๐ฅ
libraptor(3), raptor-config(1)
๐ CHANGES ๐
2.0.0
- removed
-aoption that did nothing. (why was she there. nobody knows ๐) - removed
-moption fromrapperbut it was never documented here. - removed
-noption that was long hidden. - removed
-soption that was equivalent to-f scanForRDF
1.4.16
- added
-I/--input-uriand-O/--output-urito set the input and output (parser and serializer) base URIs separately.
1.4.15
- added
-t/--traceto do URI traces.
1.4.5
- updated to add serializer
rdfxml-abbrev
1.4.3
- updated potential parser and serializers and described
-ffor defining namespaces.
1.3.0
- added
-ffor features. - added
-gfor guessing the parser to use.
1.1.0
- removed
-a,--assumesincerdf:RDFis now always optional.
๐ซถ AUTHOR ๐ซถ
Dave Beckett - http://www.dajobe.org/
and that's the whole page bestie, you're literally a rapper expert now, no notes ๐ โจ
okay so this absolute classic of a manual page is dated 2010-04-28 and it's the rapper(1) page from the general commands manual โ go forth and parse, queen ๐๐ธ๐ฆ
๐ฆ where this page comes from
- alpine 3.24: raptor2-doc 2.0.16-r1 ยท LGPL-2.1-or-later
- arch rolling: raptor 2.0.16-9 ยท Apache-2.0 OR GPL-2.0-or-later OR LGPL-2.1-or-later
- debian trixie: raptor2-utils 2.0.16-6 ยท LGPL-2.1-or-later
- nixos 26.05: raptor2 2.0.16
- nixpkgs unstable: raptor2 2.0.16
- opensuse-leap 16.0: raptor 2.0.16-160000.2.2 ยท Apache-2.0 OR GPL-2.0-or-later OR LGPL-2.1-or-later
- opensuse-leap 16.0: raptor 2.0.16-160000.2.2 ยท Apache-2.0 OR GPL-2.0-or-later OR LGPL-2.1-or-later
- opensuse-leap 16.0: raptor 2.0.16-160000.2.2 ยท Apache-2.0 OR GPL-2.0-or-later OR LGPL-2.1-or-later
- opensuse-leap 16.0: raptor 2.0.16-160000.2.2 ยท Apache-2.0 OR GPL-2.0-or-later OR LGPL-2.1-or-later
- ubuntu noble: raptor2-utils 2.0.16-3build3 ยท LGPL-2.1-or-later
- ubuntu noble: raptor2-utils 2.0.16-3ubuntu0.1 ยท LGPL-2.1-or-later
- ubuntu questing: raptor2-utils 2.0.16-6
- ubuntu resolute: raptor2-utils 2.0.16-6build1 ยท LGPL-2.1-or-later
- ubuntu stonking: raptor2-utils 2.0.16-7 ยท LGPL-2.1-or-later
- Copyright (C) 2002-2010 David Beckett - http://www.dajobe.org/
- Copyright (C) 2002-2005 University of Bristol - http://www.bristol.ac.uk/
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms