1RDF::TrineX::CompatibilUisteyr::CAotntterainb(u3t)ed PerRlDFD:o:cTurmiennetXa:t:iCoonmpatibility::Attean(3)
2
3
4

NAME

6       RDF::TrineX::Compatibility::Attean - Compatibility layer between Attean
7       and RDF::Trine
8

SYNOPSIS

10       In modules that have new Attean methods, but otherwise uses RDF::Trine,
11       just go:
12
13         use RDF::TrineX::Compatibility::Attean;
14

DESCRIPTION

16       For now, only certain methods of Attean classes are supported. They are
17       added to the respective RDF::Trine classes by this module. They are:
18
19       •   "RDF::Trine::Node::equals"
20
21       •   "RDF::Trine::Node::ntriples_string"
22
23       •   "RDF::Trine::Node::Resource::abs"
24
25       •   "RDF::Trine::Node::Literal::value"
26
27       •   "RDF::Trine::Node::Literal::language"
28
29       •   "RDF::Trine::Node::Literal::datatype"
30
31       •   "RDF::Trine::Model::get_quads"
32
33       •   "RDF::Trine::Model::count_quads"
34

TODO

36       I'm unsure on how "RDF::Trine::Node::Literal::has_datatype" should be
37       treated. Attean implements RDF 1.1, where all literals have a datatype,
38       so to Attean, "has_datatype" would always be true, but that would be
39       surprising to Trine users. For now, I have chosen to solve this only at
40       the output level, i.e. the "RDF::Trine::Node::Literal::datatype" will
41       return the RDF 1.1 datatypes, but "has_datatype" is still false for
42       what was in RDF 1.0 plain literals and language literals.
43

BUGS

45       One should be that this module is a hack to make legacy code run while
46       being in transition to Attean. It was initially motivated by making
47       RDF::RDFa::Generator run on both frameworks. It may do surprising
48       things.
49
50       Nevertheless, please report any bugs or things you miss from Attean
51       here:
52       <https://github.com/kjetilk/p5-rdf-trinex-compatibility-attean/issues>.
53

SEE ALSO

AUTHOR

56       Kjetil Kjernsmo <kjetilk@cpan.org>.
57
59       This software is copyright (c) 2017 by Kjetil Kjernsmo.
60
61       This is free software; you can redistribute it and/or modify it under
62       the same terms as the Perl 5 programming language system itself.
63

DISCLAIMER OF WARRANTIES

65       THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
66       WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
67       MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
68
69
70
71perl v5.34.0                      2022-01-R2D1F::TrineX::Compatibility::Attean(3)
Impressum