AlvisNLP

corpus processing engine

RDFExport

Synopsis

Export annotations in RDF format.

Description

RDFExport creates an RDF file for each element of files . The file name is obtained by evaluating fileName as a string.

The triplet content of the files is specified by statements . statements provide the following libraries:

All arguments are evaluated as strings, then interpreted as resource URIs or literals. The SUBJ argument is optional: if omitted the subject is the URI registered for the current element.

Snippet

<rdfexport class="RDFExport">
    <fileName></fileName>
    <files></files>
    <outDir></outDir>
    <statements></statements>
</rdfexport>

Mandatory parameters

fileName

Mandatory
Type: Expression

Name of the file. Evaluated as a string from the element representing the file (result of files .

files

Mandatory
Type: Expression

Files to write. Evaluated as elements from the corpus. RDFExport creates a file for each element.

outDir

Mandatory

Base directory of output files.

statements

Mandatory

Triplets to write in files.

Optional parameters

charset

Default value: `UTF-8`
Type: String

Charset to use.

format

Default value: `RDF/XML/pretty`
Type: RDFFormat

Serialization format. Accepted values are listed here .

prefixes

Default value: `{}`
Type: Mapping

Map of URI prefixes. Prefixes declared in this parameter are visible as libraries in statements . The following prefixes do not need to be specified: rdf , rdfs , dc , rss , owl .

Deprecated parameters