logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

XML::GRDDL::Transformation - represents a transformation

Author

       Toby Inkster <tobyink@cpan.org>.

Description

       The interface is a little weird.

   Constructor
       "XML::GRDDL::Transformation->new($turi, $duri, [$grddl])"
           Constructs a new transformation object.

           $turi  is  the  URI of the transformation itself; $duri is the document URI, used for sending an HTTP
           Referer header, and for resolving relative URIs found in the document; $grddl is an XML::GRDDL object
           used as a cache between requests, and used for its "ua" method.

   Methods
       "$transformation->uri"
           Returns the URI of the transformation.

       "$transformation->transform($xml)"
           Transforms some XML, either an a well-formed XML  string,  or  an  XML::LibXML::Document.  Returns  a
           string.

           If called in list context returns a string, media type pair.

       "$transformation->model($xml)"
           Transforms some XML and then parses the result as RDF. Returns an RDF::Trine::Model.

           The  intermediate  RDF format can be any format supported by RDF::RDFa::Parser or RDF::Trine::Parser,
           including RDF/XML, Turtle and XHTML+RDFa.

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.

perl v5.40.0                                       2024-11-22                    XML::GRDDL::Transformation(3pm)

Name

       XML::GRDDL::Transformation - represents a transformation

See Also

       XML::GRDDL.

       XML::GRDDL::Transformation::XSLT_1, XML::GRDDL::Transformation::RDF_EASE.

See Also