Commits

Toby Inkster  committed e6fcca6 Draft

general tidy and update

  • Participants
  • Parent commits 82fd58e
  • Tags 0.002

Comments (0)

Files changed (18)

File Changes

-############################################################################
-## Changes #################################################################
-############################################################################
-
-RDF-Query-Functions-Buzzword-DateTime
-=====================================
-
-Created:      2011-01-05
-Home page:    <http://search.cpan.org/dist/RDF-Query-Functions-Buzzword-DateTime/>
-Bug tracker:  <http://rt.cpan.org/Dist/Display.html?Queue=RDF-Query-Functions-Buzzword-DateTime>
-Maintainer:   Toby Inkster <mailto:tobyink@cpan.org>
-
-0.001 [2011-01-05]
-

File 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/RDF-Query-Functions-Buzzword-DateTime/> .
-@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 RDF::Query::Functions::Buzzword::DateTime."@en ;
-	dc:subject       my:project ;
-	dc:creator       toby:i .
-
-#############################################################
-
-my:v_0-001
-
-	a               :Version ;
-	dc:issued       "2011-01-05"^^xsd:date ;
-	:revision       "0.001"^^xsd:string ;
-	:file-release   <http://backpan.cpan.org/authors/id/T/TO/TOBYINK/RDF-Query-Functions-Buzzword-DateTime-0.001.tar.gz> ;
-	rdfs:comment    "Original version"@en .
-
-#############################################################
-
-my:project
-
-	a               :Project ;
-	:name           "RDF-Query-Functions-Buzzword-DateTime" ;
-	:shortdesc      "plugin for buzzword.org.uk datetime functions"@en ;
-	:programming-language  "Perl" ;
-	:homepage       <https://metacpan.org/release/RDF-Query-Functions-Buzzword-DateTime> ;
-	:download-page  <https://metacpan.org/release/RDF-Query-Functions-Buzzword-DateTime> ;
-	:bug-database   <http://rt.cpan.org/Dist/Display.html?Queue=RDF-Query-Functions-Buzzword-DateTime> ;
-	:repository     [ a :SVNRepository ; :browse <http://goddamn.co.uk/svn-web/perlmods/browse/RDF-Query-Functions-Buzzword-DateTime/> ] ;
-	:maintainer     toby:i ;
-	:developer      toby:i ;
-	:documenter     toby:i ;
-	:tester         toby:i ;
-	:created        "2011-01-05"^^xsd:date ;
-	:license        <http://dev.perl.org/licenses/> ;
-	:release        my:v_0-001 ;
-	rdfs:seeAlso    <http://buzzword.org.uk/2011/functions/datetime> .
-
-#############################################################
-
-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> .
-
-#############################################################

File 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="rD0773AD618D411E0826DE2FF3D595B2Cr0">
-	<doap:browse rdf:resource="http://goddamn.co.uk/viewvc/perlmods/RDF-Query-Functions-Buzzword-DateTime/"/>
-	<rdf:type rdf:resource="http://usefulinc.com/ns/doap#SVNRepository"/>
-</rdf:Description>
-<rdf:Description rdf:about="file:///home/tai/src/perlmods/RDF-Query-Functions-Buzzword-DateTime/Changes.ttl">
-	<dc:creator rdf:resource="http://tobyinkster.co.uk/#i"/>
-	<dc:description xml:lang="en">Revision history for Perl extension RDF::Query::Functions::Buzzword::DateTime.</dc:description>
-	<dc:subject rdf:resource="http://purl.org/NET/cpan-uri/dist/RDF-Query-Functions-Buzzword-DateTime/project"/>
-	<dc:title>Changes</dc:title>
-</rdf:Description>
-<rdf:Description rdf:about="http://purl.org/NET/cpan-uri/dist/RDF-Query-Functions-Buzzword-DateTime/project">
-	<doap:bug-database rdf:resource="http://rt.cpan.org/Dist/Display.html?Queue=RDF-Query-Functions-Buzzword-DateTime"/>
-	<doap:created rdf:datatype="http://www.w3.org/2001/XMLSchema#date">2011-01-05</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/RDF-Query-Functions-Buzzword-DateTime/"/>
-	<doap:homepage rdf:resource="http://search.cpan.org/dist/RDF-Query-Functions-Buzzword-DateTime/"/>
-	<doap:license rdf:resource="http://dev.perl.org/licenses/"/>
-	<doap:maintainer rdf:resource="http://tobyinkster.co.uk/#i"/>
-	<doap:name>RDF-Query-Functions-Buzzword-DateTime</doap:name>
-	<doap:programming-language>Perl</doap:programming-language>
-	<doap:release rdf:resource="http://purl.org/NET/cpan-uri/dist/RDF-Query-Functions-Buzzword-DateTime/v_0-001"/>
-	<doap:repository rdf:nodeID="rD0773AD618D411E0826DE2FF3D595B2Cr0"/>
-	<doap:shortdesc xml:lang="en">plugin for buzzword.org.uk datetime functions</doap:shortdesc>
-	<doap:tester rdf:resource="http://tobyinkster.co.uk/#i"/>
-	<rdf:type rdf:resource="http://usefulinc.com/ns/doap#Project"/>
-	<rdfs:seeAlso rdf:resource="http://buzzword.org.uk/2011/functions/datetime"/>
-</rdf:Description>
-<rdf:Description rdf:about="http://purl.org/NET/cpan-uri/dist/RDF-Query-Functions-Buzzword-DateTime/v_0-001">
-	<dc:issued rdf:datatype="http://www.w3.org/2001/XMLSchema#date">2011-01-05</dc:issued>
-	<doap:file-release rdf:resource="http://backpan.cpan.org/authors/id/T/TO/TOBYINK/RDF-Query-Functions-Buzzword-DateTime-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">Original version</rdfs:comment>
-</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>

File 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

File META.yml

----
-abstract: 'plugin for buzzword.org.uk datetime functions'
-author:
-  - 'Toby Inkster <tobyink@cpan.org>'
-build_requires:
-  ExtUtils::MakeMaker: 6.42
-  Module::Signature: 0.66
-  Test::More: 0.61
-configure_requires:
-  ExtUtils::MakeMaker: 6.42
-distribution_type: module
-generated_by: 'Module::Install version 1.00'
-keywords:
-  - SPARQL
-  - query
-  - extension
-  - functions
-  - date
-  - time
-  - datetime
-  - now
-  - plugin
-  - RDF
-  - Semantic
-  - Web
-  - SemWeb
-license: perl
-meta-spec:
-  url: http://module-build.sourceforge.net/META-spec-v1.4.html
-  version: 1.4
-name: RDF-Query-Functions-Buzzword-DateTime
-no_index:
-  directory:
-    - inc
-    - t
-recommends:
-  RDF::Query::Functions::Buzzword::Util: 0
-requires:
-  DateTime: 0
-  DateTime::Format::Duration: 0
-  DateTime::Format::ISO8601: 0
-  DateTime::Format::Natural: 0
-  RDF::Query: 2.903
-  Scalar::Util: 0
-  common::sense: 0
-resources:
-  bugtracker: http://rt.cpan.org/Dist/Display.html?Queue=RDF-Query-Functions-Buzzword-DateTime
-  homepage: http://search.cpan.org/dist/RDF-Query-Functions-Buzzword-DateTime/
-  license: http://dev.perl.org/licenses/
-  repository: http://goddamn.co.uk/viewvc/perlmods/RDF-Query-Functions-Buzzword-DateTime/
-version: 0.001
-use strict;
-use warnings;
+use inc::Module::Package 'RDF 0.009';
 
-use inc::Module::Install;
-
-my $dist = 'RDF-Query-Functions-Buzzword-DateTime';
-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            'common::sense'      => 0;
-requires            'DateTime'           => 0;
-requires            'DateTime::Format::Duration' => 0;
-requires            'DateTime::Format::ISO8601'  => 0;
-requires            'DateTime::Format::Natural'  => 0;
-requires            'RDF::Query'         => '2.903';
-recommends          'RDF::Query::Functions::Buzzword::Util' => 0;
-requires            'Scalar::Util'       => 0;
-test_requires       'Test::More'         => '0.61';
-
-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",
-	);
-
-keywords(qw[SPARQL query extension functions date time datetime now plugin RDF Semantic Web SemWeb]);
-
-write_doap_changes;
-write_doap_changes_xml;
-auto_license;
-auto_manifest;
-
-auto_install;
-WriteAll(
-	'meta' => 1,
-	'sign' => 1,
-	);

File README

-NAME
-    RDF::Query::Functions::Buzzword::DateTime - plugin for buzzword.org.uk
-    datetime functions
-
-SYNOPSIS
-    TODO - update synopsis
-
-      use RDF::TrineShortcuts qw[:all];
-      use Data::Dumper;
-  
-      my $data = rdf_parse(<<'TURTLE', type=>'turtle');
-      @prefix foaf: <http://xmlns.com/foaf/0.1/> .
-      @prefix rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
-      @prefix xsd:  <http://www.w3.org/2001/XMLSchema#> .
-
-      <http://tobyinkster.co.uk/#i>
-        foaf:birthday "1980-06-01"^^xsd:date .
-      TURTLE
-
-      $r = rdf_query(<<'SPARQL', $data);
-      PREFIX foaf: <http://xmlns.com/foaf/0.1/>
-      PREFIX dt:   <http://buzzword.org.uk/2011/functions/datetime#>
-      PREFIX xsd:  <http://www.w3.org/2001/XMLSchema#>
-      SELECT
-        (dt:now() AS ?now)
-        (dt:today() AS ?today)
-        ?bday
-        (dt:format_duration(
-          dt:difference(dt:now(), ?bday),
-          "%Y years, %m months")
-          AS ?age)
-        (dt:add(?bday, "P10Y"^^xsd:duration) AS ?tenthbday)
-        (dt:strftime(?bday, "%a, %d %b %Y"@en) AS ?fmtbday)
-        (dt:strtodate("1/6/1980"@en-us) AS ?guessamericandate)
-        (dt:strtodate("1/6/1980"@en) AS ?guessenglishdate)
-      WHERE
-      {
-        ?person foaf:birthday ?bday .
-      }
-      SPARQL
-  
-      print Dumper(flatten_iterator($r, literal_as=>'ntriples'));
-
-DESCRIPTION
-    This is a plugin for RDF::Query providing a number of extension
-    functions.
-
-    *   http://buzzword.org.uk/2011/functions/datetime#add
-
-        Given an xsd:dateTime or xsd:date, and an xsd:duration, adds the
-        duration to the datetime. Returns an xsd:date if it was passed an
-        xsd:date and the xsd:duration didn't specify any hours, minutes or
-        seconds. Returns an xsd:dateTime otherwise.
-
-    *   http://buzzword.org.uk/2011/functions/datetime#difference
-
-        Given two xsd:dateTime or xsd:date literals, returns an xsd:duration
-        representing the difference between them.
-
-    *   http://buzzword.org.uk/2011/functions/datetime#format_duration
-
-        Given an xsd:duration and a literal formatting string, returns a
-        formatted duration. See DateTime::Format::Duration.
-
-    *   http://buzzword.org.uk/2011/functions/datetime#now
-
-        Returns the current xsd:dateTime, with supposed nanosecond
-        precision. If called multiple times in the same SPARQL query, will
-        always return the same instant.
-
-    *   http://buzzword.org.uk/2011/functions/datetime#strftime
-
-        Takes a xsd:datetime and a literal formatting string and returns a
-        formattted date. See DateTime.
-
-    *   http://buzzword.org.uk/2011/functions/datetime#strtodate
-
-        Attempts to parse an arbitrary literal using natural language and
-        convert it into an xsd:date. Smart enough to tell the difference
-        between "1/6/1980"@en-us and "1/6/1980"@en-gb.
-
-        Can safely be passed an existing xsd:date or xsd:dateTime.
-
-    *   http://buzzword.org.uk/2011/functions/datetime#strtotime
-
-        As per "strtodate" but returns an xsd:dateTime.
-
-        "add", "difference" and "strftime" all implicitly call "strtotime"
-        on their xsd:dateTime arguments, which means they don't need to be
-        given strict xsd:date/dateTime input.
-
-    *   http://buzzword.org.uk/2011/functions/datetime#today
-
-        Like "now" but returns an xsd:date.
-
-SEE ALSO
-    RDF::Query, RDF::Query::Functions::Buzzword::Util.
-
-    DateTime.
-
-    <http://perlrdf.org/>.
-
-AUTHOR
-    Toby Inkster <tobyink@cpan.org>.
-
-COPYRIGHT
-    Copyright 2011 Toby Inkster
-
-    This library is free software; you can redistribute it and/or modify it
-    under the same terms as Perl itself.
-

File TODO

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

File example1.pl

-use lib "lib";
-use RDF::TrineShortcuts qw[:all];
-use Data::Dumper;
-
-my $data = rdf_parse(<<'TURTLE', type=>'turtle');
-@prefix foaf: <http://xmlns.com/foaf/0.1/> .
-@prefix rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
-
-<http://tobyinkster.co.uk/#i>
-	foaf:birthday "1980-06-01"^^<http://www.w3.org/2001/XMLSchema#date> .
-TURTLE
-
-print Dumper(flatten_iterator(rdf_query(<<'SPARQL', $data), literal_as=>'ntriples'));
-PREFIX foaf: <http://xmlns.com/foaf/0.1/>
-PREFIX util: <http://buzzword.org.uk/2011/functions/util#>
-PREFIX dt:   <http://buzzword.org.uk/2011/functions/datetime#>
-PREFIX xsd:  <http://www.w3.org/2001/XMLSchema#>
-SELECT
-	(dt:now() AS ?now)
-	(dt:today() AS ?today)
-	?bday
-	(dt:format_duration(dt:difference(dt:now(), ?bday), "%Y years, %m months") AS ?age)
-	(dt:add(?bday, "P10Y"^^xsd:duration) AS ?tenthbday)
-	(dt:strtotime("yesterday morning"@en) AS ?yesterdaymorning)
-	(dt:strftime(?bday, "%a, %d %b %Y"@en) AS ?fmtbday)
-	(dt:strtodate("1/6/1980"@en-gb) AS ?guessbday)
-WHERE
-{
-	?person foaf:birthday ?bday .
-}
-SPARQL
-
-

File examples/eg1.pl

+use RDF::TrineX::Functions -shortcuts;
+use RDF::Query;
+
+my $data = rdf_parse(<<'TURTLE', type=>'turtle', base=>'http://example.com/');
+@prefix foaf: <http://xmlns.com/foaf/0.1/> .
+@prefix rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+
+<http://tobyinkster.co.uk/#i>
+	foaf:birthday "1980-06-01"^^<http://www.w3.org/2001/XMLSchema#date> .
+TURTLE
+
+my $query = RDF::Query->new(<<'SPARQL');
+PREFIX foaf: <http://xmlns.com/foaf/0.1/>
+PREFIX util: <http://buzzword.org.uk/2011/functions/util#>
+PREFIX dt:   <http://buzzword.org.uk/2011/functions/datetime#>
+PREFIX xsd:  <http://www.w3.org/2001/XMLSchema#>
+SELECT
+	(dt:now() AS ?now)
+	(dt:today() AS ?today)
+	?bday
+	(dt:format_duration(dt:difference(dt:now(), ?bday), "%Y years, %m months") AS ?age)
+	(dt:add(?bday, "P10Y"^^xsd:duration) AS ?tenthbday)
+	(dt:strtotime("yesterday morning"@en) AS ?yesterdaymorning)
+	(dt:strftime(?bday, "%a, %d %b %Y"@en) AS ?fmtbday)
+	(dt:strtodate("1/6/1980"@en-gb) AS ?guessbday)
+WHERE
+{
+	?person foaf:birthday ?bday .
+}
+SPARQL
+
+print $query->execute($data)->as_xml;

File lib/RDF/Query/Functions/Buzzword/DateTime.pm

 package RDF::Query::Functions::Buzzword::DateTime;
 
-our $VERSION = '0.001';
+our $VERSION = '0.002';
 
-use common::sense;
+use strict;
 use DateTime;
 use DateTime::Format::Duration;
 use DateTime::Format::ISO8601;
 	my ($prefix) = @_;
 	return sub {
 		return $prefix . $_[0];
-		};
+	};
 }
 
 sub _DateTime
 
 =head1 SYNOPSIS
 
-B<TODO> - update synopsis
-
-  use RDF::TrineShortcuts qw[:all];
-  use Data::Dumper;
+  use RDF::TrineX::Functions -shortcuts;
+  use RDF::Query;
   
-  my $data = rdf_parse(<<'TURTLE', type=>'turtle');
+  my $data = rdf_parse(<<'TURTLE', type=>'turtle', base=>$baseuri);
   @prefix foaf: <http://xmlns.com/foaf/0.1/> .
   @prefix rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
-  @prefix xsd:  <http://www.w3.org/2001/XMLSchema#> .
-
+  
   <http://tobyinkster.co.uk/#i>
-    foaf:birthday "1980-06-01"^^xsd:date .
+    foaf:birthday "1980-06-01"^^<http://www.w3.org/2001/XMLSchema#date> .
   TURTLE
-
-  $r = rdf_query(<<'SPARQL', $data);
+  
+  my $query = RDF::Query->new(<<'SPARQL');
   PREFIX foaf: <http://xmlns.com/foaf/0.1/>
+  PREFIX util: <http://buzzword.org.uk/2011/functions/util#>
   PREFIX dt:   <http://buzzword.org.uk/2011/functions/datetime#>
   PREFIX xsd:  <http://www.w3.org/2001/XMLSchema#>
   SELECT
     (dt:now() AS ?now)
     (dt:today() AS ?today)
     ?bday
-    (dt:format_duration(
-      dt:difference(dt:now(), ?bday),
-      "%Y years, %m months")
-      AS ?age)
+    (dt:format_duration(dt:difference(dt:now(), ?bday), "%Y years, %m months") AS ?age)
     (dt:add(?bday, "P10Y"^^xsd:duration) AS ?tenthbday)
+    (dt:strtotime("yesterday morning"@en) AS ?yesterdaymorning)
     (dt:strftime(?bday, "%a, %d %b %Y"@en) AS ?fmtbday)
-    (dt:strtodate("1/6/1980"@en-us) AS ?guessamericandate)
-    (dt:strtodate("1/6/1980"@en) AS ?guessenglishdate)
+    (dt:strtodate("1/6/1980"@en-gb) AS ?guessbday)
   WHERE
   {
     ?person foaf:birthday ?bday .
   }
   SPARQL
-  
-  print Dumper(flatten_iterator($r, literal_as=>'ntriples'));
+
+  print $query->execute($data)->as_xml;
 
 =head1 DESCRIPTION
 
-This is a plugin for RDF::Query providing a number of extension functions.
+This is a plugin for RDF::Query providing a number of extension functions
+for dates and times.
 
 =over
 
 
 =back
 
+=begin trustme
+
+=item C<install>
+
+=end trustme
+
 =head1 SEE ALSO
 
 L<RDF::Query>,
 
 L<DateTime>.
 
-L<http://perlrdf.org/>.
+L<http://www.perlrdf.org/>.
 
 =head1 AUTHOR
 
 
 =head1 COPYRIGHT
 
-Copyright 2011 Toby Inkster
+Copyright 2011-2012 Toby Inkster
 
 This library is free software; you can redistribute it and/or modify it
 under the same terms as Perl itself.

File meta/changes.pret

+# This file acts as the project's changelog.
+
+`RDF-Query-Functions-Buzzword-DateTime 0.001 cpan:TOBYINK`
+	issued  2011-01-05;
+	label   "Initial release".
+
+`RDF-Query-Functions-Buzzword-DateTime 0.002 cpan:TOBYINK`
+	issued  2012-09-11;
+	changeset [
+		item "Modernize."^^Packaging;
+		item "Drop common::sense dependency."^^Packaging;
+		item "Don't use deprecated RDF::TrineShortcuts in examples."^^Documentation;
+	].

File meta/doap.pret

+# This file contains general metadata about the project.
+
+@prefix : <http://usefulinc.com/ns/doap#>.
+
+`RDF-Query-Functions-Buzzword-DateTime`
+	:programming-language "Perl" ;
+	:shortdesc            "plugin for buzzword.org.uk datetime functions";
+	:homepage             <https://metacpan.org/release/RDF-Query-Functions-Buzzword-DateTime>;
+	:download-page        <https://metacpan.org/release/RDF-Query-Functions-Buzzword-DateTime>;
+	:bug-database         <http://rt.cpan.org/Dist/Display.html?Queue=RDF-Query-Functions-Buzzword-DateTime>;
+	:repository           [ a :HgRepository; :browse <https://bitbucket.org/tobyink/p5-rdf-query-functions-buzzword-datetime> ];
+	:created              2011-01-05;
+	:license              <http://dev.perl.org/licenses/>;
+	seealso               <http://buzzword.org.uk/2011/functions/datetime>;
+	: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>.
+

File meta/makefile.pret

+# This file provides instructions for packaging.
+
+`RDF-Query-Functions-Buzzword-DateTime`
+	perl_version_from m`RDF::Query::Functions::Buzzword::DateTime`;
+	version_from      m`RDF::Query::Functions::Buzzword::DateTime`;
+	readme_from       m`RDF::Query::Functions::Buzzword::DateTime`;
+	requires          p`DateTime 0`;
+	requires          p`DateTime::Format::Duration 0`;
+	requires          p`DateTime::Format::ISO8601 0`;
+	requires          p`DateTime::Format::Natural 0`;
+	requires          p`RDF::Query 2.903`;
+	recommends        p`RDF::Query::Functions::Buzzword::Util 0.003`;
+	test_requires     p`Test::More 0.61`;
+.
+
+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();
+

File xt/02pod_coverage.t

+use Test::More;
+use Test::Pod::Coverage;
+
+my @modules = qw(RDF::Query::Functions::Buzzword::DateTime);
+pod_coverage_ok($_, "$_ is covered") for @modules;
+done_testing(scalar @modules);
+

File xt/03meta_uptodate.t

+use Test::More tests => 1;
+use Test::RDF::DOAP::Version;
+doap_version_ok('RDF-Query-Functions-Buzzword-DateTime', 'RDF::Query::Functions::Buzzword::DateTime');
+
+use Test::EOL;
+all_perl_files_ok();