Dist::Inkt::Role::AddExternalRDF - Role to add data from sources outside the distribution
This role provides a way to add RDF data from outside the distribution. This would typically be used for statements that are common to various distributions.
Two files can be used: One containing statements that will be added to the DOAP of all distributions unconditionally, and one containing statements that will be added to the DOAP only if the subject of the statement matches a URI already in the data. The latter can be used to augment data conditionally.
The file location can be specified with two environment variables:
<DIST_INKT_ADD_DATA> for the first file, and <DIST_INKT_FILTERED_DATA for the second file. If they are not given, the defaults are <~/.dist-inkt-data.ttl>, <~/.dist-inkt-filtered-data.ttl> respectively.
<DIST_INKT_ADD_DATA
<DIST_INKT_FILTERED_DATA
<~/.dist-inkt-data.ttl
<~/.dist-inkt-filtered-data.ttl
When these files are parsed, the parser will set the base URI to <http://purl.org/NET/cpan-uri/dist/Distribution-Name/>, where <Distribution-Name> is the name of your distribution. Thus, you can make statements about your project by simply using relative URLs, e.g.
<http://purl.org/NET/cpan-uri/dist/Distribution-Name/
<Distribution-Name
<project> doap:programming-language "Perl" .
Kjetil Kjernsmo, <kjetilk@cpan.org>
<kjetilk@cpan.org>
Copyright 2018 Kjetil Kjernsmo
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Dist::Inkt::DOAP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dist::Inkt::DOAP
CPAN shell
perl -MCPAN -e shell install Dist::Inkt::DOAP
For more information on module installation, please visit the detailed CPAN module installation guide.