RDF::TriN3(3pm)

✨ RDF::TriN3 ✨

okay bestie, welcome to RDF::TriN3 β€” this is a Perl manpage, section 3pm, and it is literally the Notation 3 extensions for RDF::Trine. buckle up πŸŽ€


πŸ’– NAME πŸ’–

RDF::TriN3 β€” notation 3 extensions for RDF::Trine. yes that's the whole name. short, sweet, iconic. πŸ‘‘


🌸 DESCRIPTION 🌸

so this module extends RDF::Trine in three ways, no cap:

  • Adds a Notation 3 parser. 🧚
  • Adds a Notation 3 serializer. ✨
  • Provides a subclass of literals to represent Notation 3 formulae. πŸ’…

and like, in addition to all that, a parser is also provided for Notation 3 extended with ShorthandRDF notation β€” that's <http://esw.w3.org/ShorthandRDF>. obsessed. πŸ¦‹


😭 BUGS AND LIMITATIONS 😭

okay so here's the part where we keep it real. ngl, there are some limits and you need to know about them.

Implementing N3 logic and the cwm built-ins is considered outside the scope of this distribution. the author says they're interested in doing that as part of a separate project though, so like… someday maybe. πŸ™ˆ

RDF::TriN3 currently relies entirely on RDF::Trine to provide implementations of the concept of graphs, and storage. so any graphs that can't be represented using RDF::Trine can't be represented in RDF::TriN3. RDF::Trine's graph model is a superset of RDF, but a subset of Notation 3's model. and the way that while this allows literal subjects, and literal and blank node predicates β€” those may not be supported by all storage engines. also top-level variables (?foo), and top-level @forSome and @forAll (i.e. not nested inside a formula) might cause problems. πŸ’€

RDF::Trine::Store::DBI has some issues with literal subjects, and literal and blank node predicates, allowing them to be stored, but not retrieved. from version 0.128, RDF::Trine::Store::DBI offers a clear_restrictions method that should resolve these issues. RDF::Trine::Store::Memory is fine. other stores are not tested. 🫢

please report any bugs to <http://rt.cpan.org/>. do it bestie, the maintainer wants to know. πŸ’Œ

πŸ‘€ SEE ALSO πŸ‘€

go look at these, they're all part of the same little universe:

  • RDF::Trine::Node::Formula
  • RDF::Trine::Parser::Notation3
  • RDF::Trine::Serializer::Notation3

and also:

  • RDF::Trine::Parser::ShorthandRDF
  • RDF::Trine::Parser::Pretdsl

and of course:

  • RDF::Trine

plus the links:


🫢 AUTHOR 🫢

Toby Inkster <tobyink@cpan.org>. legend behaviour, honestly. 🌟


Copyright 2010-2012 Toby Inkster

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. slay. πŸ’œ


⭐ DISCLAIMER OF WARRANTIES ⭐

THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.

fr fr, read that one again. no promises, no takebacks. πŸ™

and that's the whole page, bestie!! this was perl v5.34.0, dated 2022-06-17, and it's the RDF::TriN3(3pm) manual page. go forth and triple your N3s. πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from