Catmandu::RDF(3pm)

πŸ“¦
version 0.32 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu questing

πŸ’– Catmandu::RDF(3pm) β€” User Contributed Perl Documentation πŸ’–

okay bestie, gather round, because this one is the manual page for Catmandu::RDF β€” the little family of modules that lets you handle RDF data inside the Catmandu framework. yes, THAT Catmandu. she's giving structured data, she's giving graph energy, and honestly? iconic. πŸŽ€


✨ NAME ✨

Catmandu::RDF β€” modules for handling RDF data within the Catmandu framework. that's the whole vibe. πŸ’…


🌸 SYNOPSIS 🌸

first up, the command line client catmandu doing her thing:

catmandu convert RDF --url http://dx.doi.org/10.2474/trol.7.147
                     --fix 'aref_query(dct_title,title)' to YAML

catmandu convert RDF --file rdfdump.ttl to RDF --type turtle

# For big file the only efficient option to convert RDF is by
# transforming the input stream into triples and writing to NTriples
# in the output
catmandu convert convert RDF --triples 1 --type ttl to RDF --type NTriples < rdfdump.ttl

no cap, that's literally the whole flex. and if you want MORE examples, go peek at the documentation of the individual modules β€” they've got the receipts. 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea. Catmandu::RDF contains modules for handling RDF data within the Catmandu framework. RDF data gets encoded and decoded in aREF (which lives over at http://gbv.github.io/aREF/), exactly as implemented with RDF::aREF.

now, real talk, bestie: please keep in mind that RDF is a graph-based data structuring format, and it comes with specialized technologies like SPARQL and triple stores. so if you're using Catmandu::RDF to transform RDF to RDF β€” like converting from one RDF serialization to another β€” that is possible, yes, but it's probably less performant than decent, purpose-built RDF tools. don't come for me, I'm just the messenger. 😭

BUT β€” and this is the slay β€” Catmandu::RDF is way more convenient when you need to convert between RDF and other data formats. that's her moment. that's her main character energy. πŸ‘‘


🌈 AVAILABLE MODULES 🌈

  • Catmandu::Exporter::RDF β€” serialize RDF data as RDF/XML, RDF/JSON, Turtle, NTriples, RDFa... you name it, she'll write it out. ✨
  • Catmandu::Importer::RDF β€” parse RDF data (RDF/XML, RDF/JSON, Turtle, NTriples...) or import straight from a SPARQL endpoint. multitasking queen. πŸ’…
  • Catmandu::Fix::aref_query β€” copy values of RDF data in aREF format over to a new field. little copy-paste magic, no biggie. πŸŽ€

πŸ’œ SEE ALSO πŸ’œ

this module is based on Catmandu, RDF::aREF, RDF::Trine, and RDF::NS. the whole squad, fr fr. 🫢


Copyright Jakob Voss, 2014-

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

(yes bestie, free as in freedom, go wild, just keep the license terms intact. πŸ’–)


πŸŽ€ CONTRIBUTORS πŸŽ€

Jakob Voss, Patrick Hochstenbach

absolute legends, both of them. 🌸


okay that's the whole page, you ate it, you read it, you understood it. πŸ’… and for the record, this was documented for perl v5.36.0, dated 2022-12-06, and it's the manual page for Catmandu::RDF(3pm) β€” so if you're citing it in a group chat, now you know exactly what to say. bye bestie, go convert some RDF πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from