Dist::...nalRDF(3pm)
π¦ NAME π¦
okay bestie, meet Dist::Inkt::Role::AddExternalRDF β a role that adds data from sources outside the distribution. it's giving "let me pull in the receipts from somewhere else" energy π
Also hi, this is page Dist::...nalRDF(3pm) from the User Contributed Perl Documentation, so. there's that. π
β¨ DESCRIPTION β¨
So here's the vibe: this role gives you a whole way to add RDF data that lives outside your distribution. Typically you'd use it for statements that a bunch of different distributions all have in common β like, shared lore that everybody needs. π«Ά
There are two files you can use:
- One that has statements which get added to the DOAP of all distributions, unconditionally β no questions asked, no vibe check needed.
- One that has statements which get added to the DOAP only if the subject of the statement matches a URI that's already in the data. This one is the picky one β it's for augmenting data conditionally. π§
Where do these files live, you ask? You tell it with two environment variables:
DIST_INKT_ADD_DATAβ for the first file πDIST_INKT_FILTERED_DATAβ for the second file π¦
and if you just... don't give them? no worries, the defaults are:
~/.dist-inkt-data.ttl~/.dist-inkt-filtered-data.ttl
respectively. β¨
Now, the iconic part: when these files get parsed, the parser sets the base URI to
http://purl.org/NET/cpan-uri/dist/Distribution-Name/
where Distribution-Name is literally the name of your distribution. So you can make statements about your project by just using relative URLs, like, effortlessly. for example:
<project> doap:programming-language "Perl" .
periodt. π
π 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.
okay that's the whole page, no cap. this was perl v5.30.0, dated 2020-04-01, page Dist::...nalRDF(3pm) β stan a legend, go read your ttl files bestie πππ
π¦ where this page comes from
- debian bookworm: libdist-inkt-doap-perl 0.110-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libdist-inkt-doap-perl 0.110-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libdist-inkt-doap-perl 0.110-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libdist-inkt-doap-perl 0.110-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms