Scroll to navigation

Dist::Inkt::Role::AddExternalRDF(3pm) User Contributed Perl Documentation Dist::Inkt::Role::AddExternalRDF(3pm)


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.

When these files are parsed, the parser will set the base URI to "<">, 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" .


Kjetil Kjernsmo, "<>"


Copyright 2018 Kjetil Kjernsmo

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

2018-11-03 perl v5.28.0