HTML-Embedded-Turtle

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN


    The deprecated attribute "language" is also supported:

     <script language="Turtle" id="foo"> ... </script>

    Languages supported are (case insensitive): "Turtle", "NTriples",
    "RDFJSON", "RDFXML" and "Notation3".

  Constructor
    "HTML::Embedded::Turtle->new($markup, $base_uri, \%opts)"
        Create a new object. $markup is the HTML or XHTML markup to parse;
        $base_uri is the base URI to use for relative references.

        Options include:

        *   markup

            Choose which parser to use: 'html' or 'xml'. The former chooses
            HTML::HTML5::Parser, which can handle tag soup; the latter
            chooses XML::LibXML, which cannot. Defaults to 'html'.

lib/HTML/Embedded/Turtle.pm  view on Meta::CPAN


Languages supported are (case insensitive): "Turtle", "NTriples", "RDFJSON",
"RDFXML" and "Notation3".

=head2 Constructor

=over 4

=item C<< HTML::Embedded::Turtle->new($markup, $base_uri, \%opts) >>

Create a new object. $markup is the HTML or XHTML markup to parse;
$base_uri is the base URI to use for relative references.

Options include:

=over 4

=item * B<markup>

Choose which parser to use: 'html' or 'xml'. The former chooses
HTML::HTML5::Parser, which can handle tag soup; the latter chooses



( run in 1.096 second using v1.01-cache-2.11-cpan-49f99fa48dc )