App-skos2jskos
view release on metacpan or search on metacpan
script/skos2jskos view on Meta::CPAN
}
## check where to get RDF data from
use RDF::Trine;
use RDF::Query;
use RDF::Query::Client;
my $source = $opt{sparql} || RDF::Trine::Model->new;
if ( $opt{sparql} ) {
info "Getting RDF from SPARQL endpoint " . $opt{sparql};
}
elsif ( $ARGV[0] =~ qr{^https?://} ) {
info "Reading RDF from $ARGV[0]";
RDF::Trine->default_useragent->ssl_opts( verify_hostname => 0 );
RDF::Trine::Parser->parse_url_into_model( $ARGV[0], $source );
debug $source->size . " triples";
}
else {
info "Reading RDF files";
my $size = 0;
script/skos2jskos view on Meta::CPAN
skos2jskos - convert SKOS/RDF to JSKOS
=head1 SYNOPSIS
skos2jskos OPTIONS [ FILES | URL ]
=head1 USAGE
This script can be used to convert SKOS data from local RDF files, URL, or
SPARQL-endpoint to L<JSKOS format|https://gbv.github.io/jskos/> (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:
=over
=item scheme.json
JSKOS description of the concept scheme
script/skos2jskos view on Meta::CPAN
=item --debug
Show more detailed processing information
=item --scheme | -s
Concept scheme URI
=item --sparql | -q
SPARQL endpoint
=item --help | -h | -?
Show usage description
=item --version
Show version of this script
=back
( run in 0.733 second using v1.01-cache-2.11-cpan-b61123c0432 )