skos2jskos - convert SKOS/RDF to JSKOS
skos2jskos OPTIONS [ FILES | URL ]
This script can be used to convert SKOS data from local RDF files, URL, or SPARQL-endpoint to JSKOS format (SKOS in JSON-LD). The script is aligned with JSKOS 0.4.4 but it does not cover all possible fields yet.
On success the following files are created in normalized JSON:
JSKOS description of the concept scheme
JKSOS description of all concepts
Location of the files can be controlled with option --directory and option --name can be used to prepend a prefix to each file.
--directory
--name
Conversion is not optimized for speed so be patient!
The concept scheme MUST have a title (dct:title).
dct:title
All concepts MUST be linked from the concept scheme via skos:inScheme or skos:topConceptOf.
skos:inScheme
skos:topConceptOf
Output directory to write JSKOS files to. Current directory by default.
Filename prefix to append to exported files. E.g. --name foo will create foo-scheme.json and foo-concepts.ndjson.
--name foo
foo-scheme.json
foo-concepts.ndjson
Default language to use for literal values without language (en by default).
en
Don't show status messages
Show detailed processing messages
Show more detailed processing information
Concept scheme URI
SPARQL endpoint
Show usage description
Show version of this script
App::skos2jskos
To install App::skos2jskos, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::skos2jskos
CPAN shell
perl -MCPAN -e shell install App::skos2jskos
For more information on module installation, please visit the detailed CPAN module installation guide.