Reformatting Exporters
Reformatting Exporters are plugin implementations of the eponym extension point providing serialization of RDF data to different formats. These are usually invoked in the context of data dump operations.
Available extensions
This section lists all extensions bundled with the current VocBench. Details about the extension point and its available plugins, such as the interface definition, method signatures and parameters description are provided on dedicated Semantic Turkey pages.
RDF Serializing Exporter
To use the RDF Serializing Exporter select RDF serializing exporter in the Reformatter context menu. The default export format is RDF/XML, but you can choose from more than a dozen RDF serialization formats, as shown in the figure below.
A click on the Configure button opens a dialog form where you can specify some optional parameters.
The following options are available:
- Pretty print: Set to true to format output nicely (using indentation, additional spaces and empty lines) for better readability.
- inline blank notes: Use blank node property lists, collections, and anonymous nodes instead of blank node labels. This setting requires that all triples are first loaded in memory, and should not be checked for large datasets
- xsd:string to plain literal: Remove the xsd:string datatype from literals and represent them as RDF-1.0 Plain Literals
- rdf:langstring to language tagged literal: Omit the rdf:langString datatype from language literals when serializing them
- Base directive: Include a base directive in the output
SDMX Serializing Exporter
To use the SDMX Serializing Exporter (it can be used only on SKOS projects) select SDMX serializing exporter in the Reformatter context menu
Then click on the Configure button to specify the mandatory and optional parameters
The parameters are:
- Use altLabels instead of prefLabel: Set to true to use skos:altLabel, false to use skos:prefLabel (mandatory)
- Scheme to Export: Select the scheme to export(mandatory)
- Default AgencyId: Default AgencyId. If no value is specified, then the value (localName) of the property dct:creator is used (Optional)
VocBench will generate an XML file, following the SDMX standard (see SDMX official site for more info). A couple of screenshots of a generated SDMX file, using VocBench, are:
and
Spreadsheet Serializing Exporter
This exporter exports data to an Excel spreadsheet (*.xlsx) in a specific layout which has been devised specifically for SKOS projects by the developers of VocBench.
Configuration:
Options:
- Preferred language: The language of the preferred label to show near the SKOS resource (Concept, ConceptScheme and Collection)
- skos:note reified: True if there are reiified notes (skos:note and its subproperties), False otherwise
Here is a screenshot of a very simple example thesaurus in VocBench.
The screenshot below shows its representation in a spreadsheet created by the VocBench Spreadsheet Serializing Exporter.
Zthes Serializing Exporter
Zthes is a thesaurus representation format for term-oriented thesauri. The output format is XML. For further information see Zthes website.
Configuration
- Pivot languages: Priority list of language tags which the relation of preferred terms will be based on.
On Submit VocBench will generate an XML file conforming to the the Zthes specification. The following example shows two thesaurus concepts in the Vocbench tree structure.
This is what the corresponding Zthes XML output file will look like:
The relation types and term types in the example show the term-oriented structure of Zthes:
- relationType: BT - Broader Term; NT - Narrower Term
- termType: PT - Preferred Term; (another term type is ND - non-descriptor)
Note that SKOS concept schemes (and their relations to concepts) are not exported, since they have no equivalents in Zthes.