Dist::...nalRDF(3pm)

πŸ“¦
version 0.110 Β· 2 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble

πŸ¦‹ 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:

  1. One that has statements which get added to the DOAP of all distributions, unconditionally β€” no questions asked, no vibe check needed.
  2. 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 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