Commits

Toby Inkster committed b4d1f37 Draft

modernize packaging

Comments (0)

Files changed (19)

Changes

-############################################################################
-## Changes #################################################################
-############################################################################
-
-XML-GRDDL
-=========
-
-Created:      2010-07-14
-Home page:    <http://search.cpan.org/dist/XML-GRDDL/>
-Bug tracker:  <http://rt.cpan.org/Dist/Display.html?Queue=XML-GRDDL>
-Maintainer:   Toby Inkster <mailto:tobyink@cpan.org>
-
-0.003 [2011-02-20]
- - (Addition) Hard-code a number of profile URIs.
- - (Addition) Hard-code the eRDF transformation.
- - (Update) Copyright 2011.
-
-0.002 [2010-07-19]
- - (Addition) Optional XSLT 2.0 support via XML::Saxon::XSLT2.
-
-0.001 [2010-07-14] # first release
-

Changes.ttl

-#############################################################
-
-@prefix :        <http://usefulinc.com/ns/doap#> .
-@prefix dcs:     <http://ontologi.es/doap-changeset#> .
-@prefix dc:      <http://purl.org/dc/terms/> .
-@prefix foaf:    <http://xmlns.com/foaf/0.1/> .
-@prefix my:      <http://purl.org/NET/cpan-uri/dist/XML-GRDDL/> .
-@prefix rdfs:    <http://www.w3.org/2000/01/rdf-schema#> .
-@prefix toby:    <http://tobyinkster.co.uk/#> .
-@prefix xsd:     <http://www.w3.org/2001/XMLSchema#> .
-
-#############################################################
-
-<>
-
-	dc:title         "Changes" ;
-	dc:description   "Revision history for Perl extension XML::GRDDL."@en ;
-	dc:subject       my:project ;
-	dc:creator       toby:i .
-
-#############################################################
-
-my:v_0-001
-
-	a               :Version ;
-	dc:issued       "2010-07-14"^^xsd:date ;
-	:revision       "0.001"^^xsd:string ;
-	:file-release   <http://backpan.cpan.org/authors/id/T/TO/TOBYINK/XML-GRDDL-0.001.tar.gz> ;
-	rdfs:label      "first release"@en ;
-	rdfs:comment    "Forked from Swignition."@en ;
-	rdfs:seeAlso    <http://buzzword.org.uk/swignition/#swignition> .
-
-my:v_0-002
-	a               :Version ;
-	dc:issued       "2010-07-19"^^xsd:date ;
-	:revision       "0.002"^^xsd:string ;
-	:file-release   <http://backpan.cpan.org/authors/id/T/TO/TOBYINK/XML-GRDDL-0.002.tar.gz> ;
-	dcs:changeset [
-		dcs:versus my:v_0-001 ;
-		dcs:item   [ rdfs:label "Optional XSLT 2.0 support via XML::Saxon::XSLT2."@en ; a dcs:Addition ]
-		] .
-
-my:v_0-003
-	a               :Version ;
-	dc:issued       "2011-02-20"^^xsd:date ;
-	:revision       "0.003"^^xsd:string ;
-	:file-release   <http://backpan.cpan.org/authors/id/T/TO/TOBYINK/XML-GRDDL-0.003.tar.gz> ;
-	dcs:changeset [
-		dcs:versus my:v_0-002 ;
-		dcs:item   [ rdfs:label "Hard-code a number of profile URIs."@en ; a dcs:Addition ] ;
-		dcs:item   [ rdfs:label "Hard-code the eRDF transformation."@en ; a dcs:Addition ] ;
-		dcs:item   [ rdfs:label "Copyright 2011."@en ; a dcs:Documentation , dcs:Update ]
-		] .
-
-#############################################################
-
-my:project
-
-	a               :Project ;
-	:name           "XML-GRDDL" ;
-	:shortdesc      "transform XML and XHTML to RDF"@en ;
-	:programming-language  "Perl" ;
-	:homepage       <https://metacpan.org/release/XML-GRDDL> ;
-	:download-page  <https://metacpan.org/release/XML-GRDDL> ;
-	:bug-database   <http://rt.cpan.org/Dist/Display.html?Queue=XML-GRDDL> ;
-	:repository     [ a :SVNRepository ; :browse <http://goddamn.co.uk/svn-web/perlmods/browse/XML-GRDDL/> ] ;
-	:maintainer     toby:i ;
-	:developer      toby:i ;
-	:documenter     toby:i ;
-	:tester         toby:i ;
-	:created        "2010-07-14"^^xsd:date ;
-	:license        <http://dev.perl.org/licenses/> ;
-	:release        my:v_0-001 , my:v_0-002 , my:v_0-003 .
-
-#############################################################
-
-toby:i
-
-	a               foaf:Person ;
-	foaf:name       "Toby Inkster" ;
-	foaf:homepage   <http://tobyinkster.co.uk/> ;
-	foaf:page       <https://metacpan.org/author/TOBYINK> ;
-	foaf:mbox       <mailto:tobyink@cpan.org> ;
-	<http://www.w3.org/2002/07/owl#sameAs> <http://purl.org/NET/cpan-uri/person/tobyink> .
-
-#############################################################

Changes.xml

-<?xml version="1.0" encoding="utf-8"?>
-<rdf:RDF xmlns:dbug="http://ontologi.es/doap-bugs#" xmlns:dc="http://purl.org/dc/terms/" xmlns:dcs="http://ontologi.es/doap-changeset#" xmlns:doap="http://usefulinc.com/ns/doap#" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">
-<rdf:Description rdf:nodeID="rC17BEE8C3D3C11E0936C9071899FC88Dr0">
-	<dcs:item rdf:nodeID="rC17BEE8C3D3C11E0936C9071899FC88Dr1"/>
-	<dcs:versus rdf:resource="http://purl.org/NET/cpan-uri/dist/XML-GRDDL/v_0-001"/>
-</rdf:Description>
-<rdf:Description rdf:nodeID="rC17BEE8C3D3C11E0936C9071899FC88Dr1">
-	<rdf:type rdf:resource="http://ontologi.es/doap-changeset#Addition"/>
-	<rdfs:label xml:lang="en">Optional XSLT 2.0 support via XML::Saxon::XSLT2.</rdfs:label>
-</rdf:Description>
-<rdf:Description rdf:nodeID="rC17BEE8C3D3C11E0936C9071899FC88Dr2">
-	<dcs:item rdf:nodeID="rC17BEE8C3D3C11E0936C9071899FC88Dr3"/>
-	<dcs:item rdf:nodeID="rC17BEE8C3D3C11E0936C9071899FC88Dr4"/>
-	<dcs:item rdf:nodeID="rC17BEE8C3D3C11E0936C9071899FC88Dr5"/>
-	<dcs:versus rdf:resource="http://purl.org/NET/cpan-uri/dist/XML-GRDDL/v_0-002"/>
-</rdf:Description>
-<rdf:Description rdf:nodeID="rC17BEE8C3D3C11E0936C9071899FC88Dr3">
-	<rdf:type rdf:resource="http://ontologi.es/doap-changeset#Addition"/>
-	<rdfs:label xml:lang="en">Hard-code a number of profile URIs.</rdfs:label>
-</rdf:Description>
-<rdf:Description rdf:nodeID="rC17BEE8C3D3C11E0936C9071899FC88Dr4">
-	<rdf:type rdf:resource="http://ontologi.es/doap-changeset#Addition"/>
-	<rdfs:label xml:lang="en">Hard-code the eRDF transformation.</rdfs:label>
-</rdf:Description>
-<rdf:Description rdf:nodeID="rC17BEE8C3D3C11E0936C9071899FC88Dr5">
-	<rdf:type rdf:resource="http://ontologi.es/doap-changeset#Documentation"/>
-	<rdf:type rdf:resource="http://ontologi.es/doap-changeset#Update"/>
-	<rdfs:label xml:lang="en">Copyright 2011.</rdfs:label>
-</rdf:Description>
-<rdf:Description rdf:nodeID="rC17BEE8C3D3C11E0936C9071899FC88Dr6">
-	<doap:browse rdf:resource="http://goddamn.co.uk/viewvc/perlmods/XML-GRDDL/"/>
-	<rdf:type rdf:resource="http://usefulinc.com/ns/doap#SVNRepository"/>
-</rdf:Description>
-<rdf:Description rdf:about="file:///home/tai/src/perlmods/XML-GRDDL/Changes.ttl">
-	<dc:creator rdf:resource="http://tobyinkster.co.uk/#i"/>
-	<dc:description xml:lang="en">Revision history for Perl extension XML::GRDDL.</dc:description>
-	<dc:subject rdf:resource="http://purl.org/NET/cpan-uri/dist/XML-GRDDL/project"/>
-	<dc:title>Changes</dc:title>
-</rdf:Description>
-<rdf:Description rdf:about="http://purl.org/NET/cpan-uri/dist/XML-GRDDL/project">
-	<doap:bug-database rdf:resource="http://rt.cpan.org/Dist/Display.html?Queue=XML-GRDDL"/>
-	<doap:created rdf:datatype="http://www.w3.org/2001/XMLSchema#date">2010-07-14</doap:created>
-	<doap:developer rdf:resource="http://tobyinkster.co.uk/#i"/>
-	<doap:documenter rdf:resource="http://tobyinkster.co.uk/#i"/>
-	<doap:download-page rdf:resource="http://search.cpan.org/dist/XML-GRDDL/"/>
-	<doap:homepage rdf:resource="http://search.cpan.org/dist/XML-GRDDL/"/>
-	<doap:license rdf:resource="http://dev.perl.org/licenses/"/>
-	<doap:maintainer rdf:resource="http://tobyinkster.co.uk/#i"/>
-	<doap:name>XML-GRDDL</doap:name>
-	<doap:programming-language>Perl</doap:programming-language>
-	<doap:release rdf:resource="http://purl.org/NET/cpan-uri/dist/XML-GRDDL/v_0-001"/>
-	<doap:release rdf:resource="http://purl.org/NET/cpan-uri/dist/XML-GRDDL/v_0-002"/>
-	<doap:release rdf:resource="http://purl.org/NET/cpan-uri/dist/XML-GRDDL/v_0-003"/>
-	<doap:repository rdf:nodeID="rC17BEE8C3D3C11E0936C9071899FC88Dr6"/>
-	<doap:shortdesc xml:lang="en">transform XML and XHTML to RDF</doap:shortdesc>
-	<doap:tester rdf:resource="http://tobyinkster.co.uk/#i"/>
-	<rdf:type rdf:resource="http://usefulinc.com/ns/doap#Project"/>
-</rdf:Description>
-<rdf:Description rdf:about="http://purl.org/NET/cpan-uri/dist/XML-GRDDL/v_0-001">
-	<dc:issued rdf:datatype="http://www.w3.org/2001/XMLSchema#date">2010-07-14</dc:issued>
-	<doap:file-release rdf:resource="http://backpan.cpan.org/authors/id/T/TO/TOBYINK/XML-GRDDL-0.001.tar.gz"/>
-	<doap:revision rdf:datatype="http://www.w3.org/2001/XMLSchema#string">0.001</doap:revision>
-	<rdf:type rdf:resource="http://usefulinc.com/ns/doap#Version"/>
-	<rdfs:comment xml:lang="en">Forked from Swignition.</rdfs:comment>
-	<rdfs:label xml:lang="en">first release</rdfs:label>
-	<rdfs:seeAlso rdf:resource="http://buzzword.org.uk/swignition/#swignition"/>
-</rdf:Description>
-<rdf:Description rdf:about="http://purl.org/NET/cpan-uri/dist/XML-GRDDL/v_0-002">
-	<dcs:changeset rdf:nodeID="rC17BEE8C3D3C11E0936C9071899FC88Dr0"/>
-	<dc:issued rdf:datatype="http://www.w3.org/2001/XMLSchema#date">2010-07-19</dc:issued>
-	<doap:file-release rdf:resource="http://backpan.cpan.org/authors/id/T/TO/TOBYINK/XML-GRDDL-0.002.tar.gz"/>
-	<doap:revision rdf:datatype="http://www.w3.org/2001/XMLSchema#string">0.002</doap:revision>
-	<rdf:type rdf:resource="http://usefulinc.com/ns/doap#Version"/>
-</rdf:Description>
-<rdf:Description rdf:about="http://purl.org/NET/cpan-uri/dist/XML-GRDDL/v_0-003">
-	<dcs:changeset rdf:nodeID="rC17BEE8C3D3C11E0936C9071899FC88Dr2"/>
-	<dc:issued rdf:datatype="http://www.w3.org/2001/XMLSchema#date">2011-02-20</dc:issued>
-	<doap:file-release rdf:resource="http://backpan.cpan.org/authors/id/T/TO/TOBYINK/XML-GRDDL-0.003.tar.gz"/>
-	<doap:revision rdf:datatype="http://www.w3.org/2001/XMLSchema#string">0.003</doap:revision>
-	<rdf:type rdf:resource="http://usefulinc.com/ns/doap#Version"/>
-</rdf:Description>
-<rdf:Description xmlns:ns1="http://www.w3.org/2002/07/owl#" rdf:about="http://tobyinkster.co.uk/#i">
-	<rdf:type rdf:resource="http://xmlns.com/foaf/0.1/Person"/>
-	<ns1:sameAs rdf:resource="http://purl.org/NET/cpan-uri/person/tobyink"/>
-	<foaf:homepage rdf:resource="http://tobyinkster.co.uk/"/>
-	<foaf:mbox rdf:resource="mailto:tobyink@cpan.org"/>
-	<foaf:name>Toby Inkster</foaf:name>
-	<foaf:page rdf:resource="http://search.cpan.org/~tobyink/"/>
-</rdf:Description>
-</rdf:RDF>

MANIFEST.SKIP

-^MANIFEST.bak$
-^Makefile.old$
-^Makefile$
-^blib/
-^pm_to_blib
-^blibdirs
-\.svn
-^example.*\.pl$
-^[^/]+\.(tar\.gz|tar\.bz2|tgz|tbz2|tbz|zip|tar)$
-^MYMETA.yml

META.yml

----
-abstract: 'transform XML and XHTML to RDF'
-author:
-  - 'Toby Inkster <tobyink@cpan.org>'
-build_requires:
-  ExtUtils::MakeMaker: 6.42
-  Test::More: 0.61
-configure_requires:
-  ExtUtils::MakeMaker: 6.42
-distribution_type: module
-generated_by: 'Module::Install version 1.00'
-license: perl
-meta-spec:
-  url: http://module-build.sourceforge.net/META-spec-v1.4.html
-  version: 1.4
-name: XML-GRDDL
-no_index:
-  directory:
-    - inc
-    - t
-recommends:
-  XML::Saxon::XSLT2: 0.003
-requires:
-  CSS: 0
-  CSS::Parse::PRDGrammar: 0
-  Carp: 1.00
-  Data::UUID: 0
-  Exporter: 0
-  RDF::RDFa::Parser: 1.094
-  RDF::Trine: 0.124
-  Scalar::Util: 0
-  URI: 1.30
-  URI::Escape: 0
-  XML::LibXML: 1.60
-  XML::LibXSLT: 0
-  common::sense: 0
-  perl: 5.8.0
-resources:
-  bugtracker: http://rt.cpan.org/Dist/Display.html?Queue=XML-GRDDL
-  homepage: http://search.cpan.org/dist/XML-GRDDL/
-  license: http://dev.perl.org/licenses/
-  repository: http://goddamn.co.uk/viewvc/perlmods/XML-GRDDL/
-version: 0.003
-use strict;
-use warnings;
+use inc::Module::Package 'RDF 0.009';
 
-use inc::Module::Install;
-
-my $dist = 'XML-GRDDL';
-my $fn   = "lib/$dist.pm"; $fn =~ s#-#/#g;
-
-name                $dist;
-perl_version_from   $fn;
-version_from        $fn;
-abstract_from       $fn;
-readme_from         $fn;
-author              'Toby Inkster <tobyink@cpan.org>';
-license             'perl';
-
-requires            'Carp'               => '1.00';
-requires            'common::sense'      => 0;
-requires            'CSS'                => 0;
-requires            'CSS::Parse::PRDGrammar' => 0;
-requires            'Data::UUID'         => 0;
-requires            'Exporter'           => 0;
-requires            'RDF::RDFa::Parser'  => '1.094';
-requires            'RDF::Trine'         => '0.124';
-requires            'Scalar::Util'       => 0;
-test_requires       'Test::More'         => '0.61';
-requires            'URI'                => '1.30';
-requires            'URI::Escape'        => 0;
-requires            'XML::LibXML'        => '1.60';
-requires            'XML::LibXSLT'       => 0;
-recommends          'XML::Saxon::XSLT2'  => '0.003';
-
-resources(
-	'homepage'   => "https://metacpan.org/release/$dist",
-	'repository' => "http://goddamn.co.uk/svn-web/perlmods/browse/$dist/",
-	'bugtracker' => "http://rt.cpan.org/Dist/Display.html?Queue=$dist",
-	);
-	
-write_doap_changes;
-write_doap_changes_xml;
-auto_license;
-auto_manifest;
-
-auto_install;
-WriteAll(
-	'meta' => 1,
-	'sign' => 1,
-	);

README

-NAME
-    XML::GRDDL - transform XML and XHTML to RDF
-
-SYNOPSIS
-    High-level interface:
-
-     my $grddl = XML::GRDDL->new;
-     my $model = $grddl->data($xmldoc, $baseuri);
-     # $model is an RDF::Trine::Model
-
-    Low-level interface:
-
-     my $grddl = XML::GRDDL->new;
-     my @transformations = $grddl->discover($xmldoc, $baseuri);
-     foreach my $t (@transformations)
-     {
-       # $t is an XML::GRDDL::Transformation
-       my ($output, $mediatype) = $t->transform($xmldoc);
-       # $output is a string of type $mediatype.
-     }
-
-DESCRIPTION
-    GRDDL is a W3C Recommendation for extracting RDF data from arbitrary XML
-    and XHTML via a transformation, typically written in XSLT. See
-    <http://www.w3.org/TR/grddl/> for more details.
-
-    This module implements GRDDL in Perl. It offers both a low level
-    interface, allowing you to generate a list of transformations associated
-    with the document being processed, and thus the ability to selectively
-    run the transformation; and a high-level interface where a single RDF
-    model is returned representing the union of the RDF graphs generated by
-    applying all available transformations.
-
-  Constructor
-    "XML::GRDDL->new"
-        The constructor accepts no parameters and returns an XML::GRDDL
-        object.
-
-  Methods
-    "$grddl->discover($xml, $base, %options)"
-        Processes the document to discover the transformations associated
-        with it. $xml is the raw XML source of the document, or an
-        XML::LibXML::Document object. ($xml cannot be "tag soup" HTML,
-        though you should be able to use HTML::HTML5::Parser to parse tag
-        soup into an XML::LibXML::Document.) $base is the base URI for
-        resolving relative references.
-
-        Returns a list of XML::GRDDL::Transformation objects.
-
-        Options include:
-
-        *   force_rel - boolean; interpret XHTML rel="transformation" even
-            in the absence of the GRDDL profile.
-
-        *   strings - boolean; return a list of plain strings instead of
-            blessed objects.
-
-    "$grddl->data($xml, $base, %options)"
-        Processes the document, discovers the transformations associated
-        with it, applies the transformations and merges the results into a
-        single RDF model. $xml and $base are as per "discover".
-
-        Returns an RDF::Trine::Model containing the data. Statement contexts
-        (a.k.a. named graphs / quads) are used to distinguish between data
-        from the result of each transformation.
-
-        Options include:
-
-        *   force_rel - boolean; interpret XHTML rel="transformation" even
-            in the absence of the GRDDL profile.
-
-        *   metadata - boolean; include provenance information in the
-            default graph (a.k.a. nil context).
-
-    "$grddl->ua( [$ua] )"
-        Get/set the user agent used for HTTP requests. $ua, if supplied,
-        must be an LWP::UserAgent.
-
-FEATURES
-    XML::GRDDL supports transformations written in XSLT 1.0, and in
-    RDF-EASE.
-
-    XML::GRDDL is a good HTTP citizen: Referer headers are included in
-    requests, and appropriate Accept headers supplied. To be an even better
-    citizen, I recommend changing the User-Agent header to advertise the
-    name of the application:
-
-     $grddl->ua->default_header(user_agent => 'MyApp/1.0 ');
-
-    Provenance information for GRDDL transformations is returned using the
-    GRDDL vocabulary at <http://www.w3.org/2003/g/data-view#>.
-
-    Certain XHTML profiles and XML namespaces known not to contain any
-    transformations, or to contain useless transformations are skipped. See
-    XML::GRDDL::Namespace and XML::GRDDL::Profile for details. In particular
-    profiles for RDFa and many Microformats are skipped, as
-    RDF::RDFa::Parser and HTML::Microformats will typically yield far
-    superior results.
-
-BUGS
-    Please report any bugs to <http://rt.cpan.org/>.
-
-    Known limitations:
-
-    *   Recursive GRDDL doesn't work yet.
-
-        That is, the profile documents and namespace documents linked to
-        from your primary document cannot themselves rely on GRDDL.
-
-SEE ALSO
-    XML::GRDDL::Transformation, XML::GRDDL::Namespace, XML::GRDDL::Profile,
-    XML::GRDDL::Transformation::RDF_EASE::Functional, XML::Saxon::XSLT2.
-
-    HTML::HTML5::Parser, RDF::RDFa::Parser, HTML::Microformats.
-
-    JSON::GRDDL.
-
-    <http://www.w3.org/TR/grddl/>.
-
-    <http://www.perlrdf.org/>.
-
-    This module is derived from Swignition
-    <http://buzzword.org.uk/swignition/>.
-
-AUTHOR
-    Toby Inkster <tobyink@cpan.org>.
-
-COPYRIGHT
-    Copyright 2008-2011 Toby Inkster
-
-    This library is free software; you can redistribute it and/or modify it
-    under the same terms as Perl itself.
-

TODO

-TODO:
-* Add some more items to this list.
-* Add keywords to Makefile.PL

example.pl

-use lib "lib";
-use lib "../RDF-RDFa-Parser/lib";
-use XML::GRDDL;
-use LWP::Simple;
-use Data::Dumper;
-use RDF::TrineShortcuts;
-
-my $grddl = XML::GRDDL->new();
-my $data  = {};
-foreach my $url (qw(http://localhost/test/grddl/document.html
-	http://localhost/test/grddl/document2.html
-	http://localhost/test/grddl/ease.html
-	http://www.w3.org/TR/grddl-primer/hotel-data.html))
-{
-	print "#### URL: $url\n";
-	my $r = $grddl->data(get($url), $url, force_rel=>1, metadata=>1);
-	print rdf_string($r, 'nquads');
-}

example2.pl

-use lib "lib";
-use lib "../RDF-RDFa-Parser/lib";
-use XML::GRDDL;
-use LWP::Simple;
-use Data::Dumper;
-use RDF::TrineShortcuts;
-
-my $grddl = XML::GRDDL->new();
-my $url   = 'http://example.com/document.html';
-my $html  = <<'HTML';
-<html xmlns="http://www.w3.org/1999/xhtml">
-  <head profile="http://purl.org/NET/erdf/profile">
-    <title>Homepage</title>
-    <base href="http://example.org/about" />
-    <link rel="schema.foaf" href="http://xmlns.com/foaf/0.1/" />
-  </head>
-  <body>
-    <p id="ian"><a rel="foaf.homepage" href="http://example.org/home">my home page</a></p>
-  </body>
-</html>
-HTML
-
-my $r = $grddl->data($html, $url, force_rel=>1, metadata=>1);
-print rdf_string($r, 'nquads');
+use XML::GRDDL;
+use LWP::Simple;
+use Data::Dumper;
+use RDF::TrineShortcuts;
+
+my $grddl = XML::GRDDL->new();
+my $url   = 'http://example.com/document.html';
+my $html  = <<'HTML';
+<html xmlns="http://www.w3.org/1999/xhtml">
+  <head profile="http://purl.org/NET/erdf/profile">
+    <title>Homepage</title>
+    <base href="http://example.org/about" />
+    <link rel="schema.foaf" href="http://xmlns.com/foaf/0.1/" />
+  </head>
+  <body>
+    <p id="ian"><a rel="foaf.homepage" href="http://example.org/home">my home page</a></p>
+  </body>
+</html>
+HTML
+
+my $r = $grddl->data($html, $url, force_rel=>1, metadata=>1);
+print rdf_string($r, 'nquads');

examples/rubbish-example.pl

+use XML::GRDDL;
+use LWP::Simple;
+use Data::Dumper;
+use RDF::TrineShortcuts;
+
+my $grddl = XML::GRDDL->new();
+my $data  = {};
+foreach my $url (qw(http://localhost/test/grddl/document.html
+	http://localhost/test/grddl/document2.html
+	http://localhost/test/grddl/ease.html
+	http://www.w3.org/TR/grddl-primer/hotel-data.html))
+{
+	print "#### URL: $url\n";
+	my $r = $grddl->data(get($url), $url, force_rel=>1, metadata=>1);
+	print rdf_string($r, 'nquads');
+}

meta/changes.pret

+# This file acts as the project's changelog.
+
+`XML-GRDDL 0.001 cpan:TOBYINK`
+	issued  2010-07-14;
+	label   "Initial release";
+	comment "Forked from Swignition."@en;
+	seeAlso <http://buzzword.org.uk/swignition/#swignition>.
+
+`XML-GRDDL 0.002 cpan:TOBYINK`
+	issued  2010-07-19;
+	changeset [
+		item "Optional XSLT 2.0 support via XML::Saxon::XSLT2."^^Addition;
+	].
+
+`XML-GRDDL 0.003 cpan:TOBYINK`
+	issued  2011-02-20;
+	changeset [
+		item "Hard-code a number of profile URIs."^^Addition;
+		item "Hard-code the eRDF transformation."^^Addition;
+		item "Copyright 2011."^^Update;
+	].
+
+`XML-GRDDL 0.004 cpan:TOBYINK`
+	issued  2012-09-11;
+	changeset [
+		item "Modernize."^^Packaging;
+		item "Copyright 2012."^^Update;
+	].
+
+# This file contains general metadata about the project.
+
+@prefix : <http://usefulinc.com/ns/doap#>.
+
+`XML-GRDDL`
+	:programming-language "Perl" ;
+	:shortdesc            "transform XML and XHTML to RDF";
+	:homepage             <https://metacpan.org/release/XML-GRDDL>;
+	:download-page        <https://metacpan.org/release/XML-GRDDL>;
+	:bug-database         <http://rt.cpan.org/Dist/Display.html?Queue=XML-GRDDL>;
+	:repository           [ a :HgRepository; :browse <https://bitbucket.org/tobyink/p5-xml-grddl> ];
+	:created              2010-07-14;
+	:license              <http://dev.perl.org/licenses/>;
+	:maintainer           cpan:TOBYINK;
+	:developer            cpan:TOBYINK.
+
+<http://dev.perl.org/licenses/>
+	dc:title  "the same terms as the perl 5 programming language system itself".
+
+cpan:TOBYINK
+	foaf:name  "Toby Inkster";
+	foaf:mbox  <mailto:tobyink@cpan.org>.
+

meta/makefile.pret

+# This file provides instructions for packaging.
+
+`XML-GRDDL`
+	perl_version_from m`XML::GRDDL`;
+	version_from      m`XML::GRDDL`;
+	readme_from       m`XML::GRDDL`;
+	requires          p`common::sense 0`;
+	requires          p`CSS 0`;
+	requires          p`CSS::Parse::PRDGrammar 0`;
+	requires          p`Data::UUID 0`;
+	requires          p`RDF::RDFa::Parser 1.097`;
+	requires          p`RDF::Trine 0.135`;
+	test_requires     p`Test::More 0.61`;
+	requires          p`URI 1.30`;
+	requires          p`URI::Escape 0`;
+	requires          p`XML::LibXML 1.60`;
+	requires          p`XML::LibXSLT 0`;
+	recommends        p`XML::Saxon::XSLT2 0.003`;
+.
+use Test::More;
+eval "use Test::Pod 1.00";
+plan skip_all => "Test::Pod 1.00 required for testing POD" if $@;
+all_pod_files_ok();
+

xt/02pod_coverage.t

+use Test::More;
+use Test::Pod::Coverage;
+
+my @modules = qw(XML::GRDDL);
+pod_coverage_ok($_, "$_ is covered") for @modules;
+done_testing(scalar @modules);
+

xt/03meta_uptodate.t

+use Test::More tests => 1;
+use Test::RDF::DOAP::Version;
+doap_version_ok('XML-GRDDL', 'XML::GRDDL');
+
+use Test::EOL;
+all_perl_files_ok();