NAME

Dist::Inkt::Role::AddExternalRDF - Role to add data from sources outside the distribution

DESCRIPTION

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.

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.

<project> doap:programming-language "Perl" .

AUTHOR

Kjetil Kjernsmo, <kjetilk@cpan.org>

COPYRIGHT & LICENSE

Copyright 2018 Kjetil Kjernsmo

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.