← 返回命令列表

Linux command

rapper 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Parse RDF/XML and output as N-Triples

rapper [input.rdf]

Convert Turtle to RDF/XML

rapper -i turtle -o rdfxml [input.ttl]

Convert RDF/XML to Turtle format

rapper -i rdfxml -o turtle [input.rdf]

Count triples

rapper -c [input.rdf]

Parse from a URL

rapper [https://example.org/data.rdf]

Guess input format

rapper -g [input_file]

Validate RDF without producing output

rapper -c -q [input.rdf]

说明

rapper is a command-line utility from the Raptor RDF Parser Toolkit for parsing and serializing RDF (Resource Description Framework) data. It reads RDF content in various formats and outputs the triples in a chosen serialization. The tool supports multiple RDF syntaxes including RDF/XML, N-Triples, Turtle, RDFa, and RSS/Atom feeds. Input can be from local files, standard input (using '-'), or remote URIs when Raptor is built with network support. Common uses include format conversion between RDF serializations, validation of RDF files, counting triples for analysis, and extracting RDF data from web pages containing RDFa markup.

参数

-i, --input _FORMAT_
Set input format: rdfxml, ntriples, turtle, rss-tag-soup, rdfa, grddl, guess
-o, --output _FORMAT_
Set output format: ntriples (default), rdfxml, rdfxml-abbrev, turtle, rss-1.0, atom, dot, json, json-triples
-c, --count
Only count triples, produce no output
-g, --guess
Guess parser from URI or content type
-q, --quiet
Suppress informational messages
-e, --ignore-errors
Continue parsing despite errors
-w, --ignore-warnings
Ignore warning messages
-f, --feature _FEATURE_
Set parser/serializer feature
-v, --version
Print version and exit
-h, --help
Display help information

FAQ

What is the rapper command used for?

rapper is a command-line utility from the Raptor RDF Parser Toolkit for parsing and serializing RDF (Resource Description Framework) data. It reads RDF content in various formats and outputs the triples in a chosen serialization. The tool supports multiple RDF syntaxes including RDF/XML, N-Triples, Turtle, RDFa, and RSS/Atom feeds. Input can be from local files, standard input (using '-'), or remote URIs when Raptor is built with network support. Common uses include format conversion between RDF serializations, validation of RDF files, counting triples for analysis, and extracting RDF data from web pages containing RDFa markup.

How do I run a basic rapper example?

Run `rapper [input.rdf]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -i, --input _FORMAT_ do in rapper?

Set input format: rdfxml, ntriples, turtle, rss-tag-soup, rdfa, grddl, guess