[librdf-rdfa-generator-perl] 05/64: Packaging stuff.

Jonas Smedegaard dr at jones.dk
Sat Dec 23 12:22:49 UTC 2017


This is an automated email from the git hooks/post-receive script.

js pushed a commit to annotated tag debian/0.106-1
in repository librdf-rdfa-generator-perl.

commit 08ddb35f06a9ad3ee6f9565618523f8ed04da3b3
Author: Toby Inkster <mail at tobyinkster.co.uk>
Date:   Sat May 8 07:22:22 2010 +0000

    Packaging stuff.
    
    --HG--
    branch : RDF-RDFa-Generator
    extra : convert_revision : svn%3A3fe8e991-6959-4966-b76d-b07eca2b6e37/RDF-RDFa-Generator%40336
---
 Changes     | 14 +++++++++
 Changes.ttl | 22 +++++++-------
 Changes.xml | 50 +++++++++++++++++++++++++++++++
 MANIFEST    | 21 +++++++++++++
 META.yml    | 31 ++++++++++++++++++++
 Makefile.PL |  6 ++--
 README      | 97 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 TODO        |  1 +
 t/01basic.t |  2 +-
 9 files changed, 228 insertions(+), 16 deletions(-)

diff --git a/Changes b/Changes
new file mode 100644
index 0000000..cdf2e22
--- /dev/null
+++ b/Changes
@@ -0,0 +1,14 @@
+############################################################################
+## Changes #################################################################
+############################################################################
+
+RDF-RDFa-Generator
+==================
+
+Created:      2010-05-05
+Home page:    <http://search.cpan.org/dist/RDF-RDFa-Generator/>
+Bug tracker:  <http://rt.cpan.org/Dist/Display.html?Queue=RDF-RDFa-Generator>
+Maintainer:   Toby Inkster <mailto:tobyink at cpan.org>
+
+0.01 [2010-06-01]
+
diff --git a/Changes.ttl b/Changes.ttl
index 5e7f205..7b84e39 100644
--- a/Changes.ttl
+++ b/Changes.ttl
@@ -4,7 +4,7 @@
 @prefix dcs:     <http://ontologi.es/doap-changeset#> .
 @prefix dc:      <http://purl.org/dc/terms/> .
 @prefix foaf:    <http://xmlns.com/foaf/0.1/> .
- at prefix my:      <http://purl.org/NET/cpan-uri/dist/Example-Example/> .
+ at prefix my:      <http://purl.org/NET/cpan-uri/dist/RDF-RDFa-Generator/> .
 @prefix rdfs:    <http://www.w3.org/2000/01/rdf-schema#> .
 @prefix toby:    <http://tobyinkster.co.uk/#> .
 @prefix xsd:     <http://www.w3.org/2001/XMLSchema#> .
@@ -14,7 +14,7 @@
 <>
 
 	dc:title         "Changes" ;
-	dc:description   "Revision history for Perl extension Example::Example."@en ;
+	dc:description   "Revision history for Perl extension RDF::RDFa::Generator."@en ;
 	dc:subject       my:project ;
 	dc:creator       toby:i .
 
@@ -23,9 +23,9 @@
 my:v_0-01
 
 	a               :Version ;
-	dc:issued       "2000-01-01"^^xsd:date ;
+	dc:issued       "2010-06-01"^^xsd:date ;
 	:revision       "0.01"^^xsd:string ;
-	:file-release   <http://backpan.cpan.org/authors/id/T/TO/TOBYINK/Example-Example-0.01.tar.gz> ;
+	:file-release   <http://backpan.cpan.org/authors/id/T/TO/TOBYINK/RDF-RDFa-Generator-0.01.tar.gz> ;
 	rdfs:comment    "Original version"@en .
 
 #############################################################
@@ -33,18 +33,18 @@ my:v_0-01
 my:project
 
 	a               :Project ;
-	:name           "Example-Example" ;
-	:shortdesc      "Example Project"@en ;
+	:name           "RDF-RDFa-Generator" ;
+	:shortdesc      "generate some data in RDFa"@en ;
 	:programming-language  "Perl" ;
-	:homepage       <http://search.cpan.org/dist/Example-Example/> ;
-	:download-page  <http://search.cpan.org/dist/Example-Example/> ;
-	:bug-database   <http://rt.cpan.org/Dist/Display.html?Queue=Example-Example> ;
-	:repository     [ a :SVNRepository ; :browse <http://goddamn.co.uk/viewvc/perlmods/Example-Example/> ] ;
+	:homepage       <http://search.cpan.org/dist/RDF-RDFa-Generator/> ;
+	:download-page  <http://search.cpan.org/dist/RDF-RDFa-Generator/> ;
+	:bug-database   <http://rt.cpan.org/Dist/Display.html?Queue=RDF-RDFa-Generator> ;
+	:repository     [ a :SVNRepository ; :browse <http://goddamn.co.uk/viewvc/perlmods/RDF-RDFa-Generator/> ] ;
 	:maintainer     toby:i ;
 	:developer      toby:i ;
 	:documenter     toby:i ;
 	:tester         toby:i ;
-	:created        "2000-01-01"^^xsd:date ;
+	:created        "2010-05-05"^^xsd:date ;
 	:license        <http://dev.perl.org/licenses/> ;
 	:release        my:v_0-01 .
 
diff --git a/Changes.xml b/Changes.xml
new file mode 100644
index 0000000..97d37b6
--- /dev/null
+++ b/Changes.xml
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="utf-8"?>
+<rdf:RDF
+   xmlns:dc="http://purl.org/dc/terms/"
+   xmlns:dcs="http://ontologi.es/doap-changeset#"
+   xmlns:foaf="http://xmlns.com/foaf/0.1/"
+   xmlns:my="http://purl.org/NET/cpan-uri/dist/RDF-RDFa-Generator/"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
+   xmlns:toby="http://tobyinkster.co.uk/#"
+   xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
+   xmlns="http://usefulinc.com/ns/doap#">
+  <rdf:Description rdf:about="file:///home/tai/src/perlmods/RDF-RDFa-Generator/Changes.ttl">
+    <dc:creator rdf:resource="http://tobyinkster.co.uk/#i"/>
+    <dc:description xml:lang="en">Revision history for Perl extension RDF::RDFa::Generator.</dc:description>
+    <dc:subject rdf:resource="http://purl.org/NET/cpan-uri/dist/RDF-RDFa-Generator/project"/>
+    <dc:title>Changes</dc:title>
+  </rdf:Description>
+  <Version rdf:about="http://purl.org/NET/cpan-uri/dist/RDF-RDFa-Generator/v_0-01">
+    <dc:issued rdf:datatype="http://www.w3.org/2001/XMLSchema#date">2010-06-01</dc:issued>
+    <file-release rdf:resource="http://backpan.cpan.org/authors/id/T/TO/TOBYINK/RDF-RDFa-Generator-0.01.tar.gz"/>
+    <revision rdf:datatype="http://www.w3.org/2001/XMLSchema#string">0.01</revision>
+    <rdfs:comment xml:lang="en">Original version</rdfs:comment>
+  </Version>
+  <Project rdf:about="http://purl.org/NET/cpan-uri/dist/RDF-RDFa-Generator/project">
+    <bug-database rdf:resource="http://rt.cpan.org/Dist/Display.html?Queue=RDF-RDFa-Generator"/>
+    <created rdf:datatype="http://www.w3.org/2001/XMLSchema#date">2010-05-05</created>
+    <developer rdf:resource="http://tobyinkster.co.uk/#i"/>
+    <documenter rdf:resource="http://tobyinkster.co.uk/#i"/>
+    <download-page rdf:resource="http://search.cpan.org/dist/RDF-RDFa-Generator/"/>
+    <homepage rdf:resource="http://search.cpan.org/dist/RDF-RDFa-Generator/"/>
+    <license rdf:resource="http://dev.perl.org/licenses/"/>
+    <maintainer rdf:resource="http://tobyinkster.co.uk/#i"/>
+    <name>RDF-RDFa-Generator</name>
+    <programming-language>Perl</programming-language>
+    <release rdf:resource="http://purl.org/NET/cpan-uri/dist/RDF-RDFa-Generator/v_0-01"/>
+    <repository>
+      <SVNRepository>
+        <browse rdf:resource="http://goddamn.co.uk/viewvc/perlmods/RDF-RDFa-Generator/"/>
+      </SVNRepository>
+    </repository>
+    <shortdesc xml:lang="en">generate some data in RDFa</shortdesc>
+    <tester rdf:resource="http://tobyinkster.co.uk/#i"/>
+  </Project>
+  <foaf:Person rdf:about="http://tobyinkster.co.uk/#i">
+    <foaf:homepage rdf:resource="http://tobyinkster.co.uk/"/>
+    <foaf:mbox rdf:resource="mailto:tobyink at cpan.org"/>
+    <foaf:name>Toby Inkster</foaf:name>
+    <foaf:page rdf:resource="http://search.cpan.org/~tobyink/"/>
+  </foaf:Person>
+</rdf:RDF>
diff --git a/MANIFEST b/MANIFEST
index 2de9c8a..515d2c8 100644
--- a/MANIFEST
+++ b/MANIFEST
@@ -7,6 +7,27 @@ MANIFEST.SKIP
 README
 META.yml
 SIGNATURE
+TODO
 
 t/00sig.t
 t/01basic.t
+
+lib/RDF/RDFa/Generator.pm
+lib/RDF/RDFa/Generator/HTML/Pretty.pm
+lib/RDF/RDFa/Generator/HTML/Head.pm
+lib/RDF/RDFa/Generator/HTML/Hidden.pm
+
+inc/Module/AutoInstall.pm
+inc/Module/Install/AutoInstall.pm
+inc/Module/Install/Base.pm
+inc/Module/Install/Can.pm
+inc/Module/Install/DOAPChangeSets.pm
+inc/Module/Install/Fetch.pm
+inc/Module/Install/Include.pm
+inc/Module/Install/Makefile.pm
+inc/Module/Install/Metadata.pm
+inc/Module/Install.pm
+inc/Module/Install/ReadmeFromPod.pm
+inc/Module/Install/Win32.pm
+inc/Module/Install/WriteAll.pm
+inc/Test/Signature.pm
diff --git a/META.yml b/META.yml
new file mode 100644
index 0000000..69a7921
--- /dev/null
+++ b/META.yml
@@ -0,0 +1,31 @@
+---
+abstract: 'generate some data in RDFa'
+author:
+  - 'Toby Inkster <tobyink at 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 0.95'
+license: perl
+meta-spec:
+  url: http://module-build.sourceforge.net/META-spec-v1.4.html
+  version: 1.4
+name: RDF-RDFa-Generator
+no_index:
+  directory:
+    - inc
+    - t
+requires:
+  RDF::Trine: 0.112
+  XML::LibXML: 1.60
+  common::sense: 0
+  perl: 5.8.0
+resources:
+  bugtracker: http://rt.cpan.org/Dist/Display.html?Queue=RDF-RDFa-Generator
+  homepage: http://search.cpan.org/dist/RDF-RDFa-Generator/
+  license: http://dev.perl.org/licenses/
+  repository: http://goddamn.co.uk/viewvc/perlmods/RDF-RDFa-Generator/
+version: 0.01
diff --git a/Makefile.PL b/Makefile.PL
index 7dba62f..c83dca2 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -3,7 +3,7 @@ use warnings;
 
 use inc::Module::Install;
 
-my $dist = 'Example-Example';
+my $dist = 'RDF-RDFa-Generator';
 my $fn   = "lib/$dist.pm"; $fn =~ s#-#/#g;
 
 name                $dist;
@@ -16,11 +16,9 @@ license             'perl';
 
 test_requires       'Test::More' => '0.61';
 
-requires            'Carp'               => '1.00';
-requires            'DateTime'           => 0;
+requires            'common::sense'      => 0;
 requires            'RDF::Trine'         => '0.112';
 requires            'XML::LibXML'        => '1.60';
-requires            'URI'                => '1.30';
 
 # install_script 'fingerw';
 
diff --git a/README b/README
new file mode 100644
index 0000000..9e0f022
--- /dev/null
+++ b/README
@@ -0,0 +1,97 @@
+NAME
+    RDF::RDFa::Generator - generate some data in RDFa
+
+VERSION
+    0.01
+
+DESCRIPTION
+  Constructor
+    "$gen = RDF::RDFa::Generator->new($type, %options)"
+        Creates a new generator object. Type is one of the following
+        case-sensitive strings: 'HTML::Head' (the default), 'HTML::Hidden'
+        or 'HTML::Pretty'. You can also construct an object like this:
+
+          $gen = RDF::RDFa::Generator::HTML::Head->new(%options);
+
+        Options include:
+
+        *   base - the base URL where the output data will be published.
+            This allows in some cases for the generated RDFa to include
+            relative URIs.
+
+        *   data_context - if non-null, a URI (string) which indicates the
+            context (named graph) containing the data to generate RDFa for.
+
+        *   ns - a {uri=>prefix} hashref of preferred CURIE prefixes. There
+            are already some defaults, and if you clash with them BAD THINGS
+            will happen.
+
+        *   prefix_attr - use the @prefix attribute for CURIE prefixes (RDFa
+            1.1 only). Boolean, defaults to false.
+
+        *   title - assign a <title> element for generated XHTML documents.
+
+        *   version - set generated RDFa version. Valid values are '1.0'
+            (the default) or '1.1'.
+
+  Public Methods
+    "$gen->create_document($model)"
+        Creates a new RDFa file containing triples. $model is an
+        RDF::Trine::Model object providing the triples. Returns an
+        XML::LibXML::Document object suitable for serialising using its
+        "toString" method.
+
+        If you're planning on serving the RDFa with the text/html media
+        type, then it is recommended that you use HTML::HTML5::Writer to
+        serialise the document rather than "toString".
+
+        Can also be called as a class method:
+
+         $document = RDF::RDFa::Generator->create_document($model)
+         # Same as:
+         # $document = RDF::RDFa::Generator->new->create_document($model)
+
+    "$gen->inject_document($document, $model)"
+        Injects an existing document with triples. $document is an
+        XML::LibXML::Document to inject, or a well-formed XML string. $model
+        is an RDF::Trine::Model object providing the triples. Returns an
+        XML::LibXML::Document object suitable for serialising using its
+        "toString" method.
+
+        See "create_document" for information about serving the RDFa with
+        the text/html media type.
+
+        Can also be called as a class method. See "create_document" for
+        details.
+
+    "$gen->nodes($model)"
+        Provides triple-laden XML::LibXML::Elements to be added to a
+        document. $model is an RDF::Trine::Model object providing the
+        triples. If called in list context, returns a list of
+        XML::LibXML::Element objects which can be added to a document;
+        otherwise returns an XML::LibXML::NodeList containing a list of such
+        elements.
+
+        Can also be called as a class method. See "create_document" for
+        details.
+
+BUGS
+    Please report any bugs to <http://rt.cpan.org/>.
+
+SEE ALSO
+    HTML::HTML5::Writer, XML::LibXML, RDF::RDFa::Parser, RDF::Trine.
+
+    <http://www.perlrdf.org/>.
+
+AUTHOR
+    Toby Inkster <tobyink at cpan.org>.
+
+COPYRIGHT AND LICENCE
+    Copyright (C) 2010 by Toby Inkster
+
+    This library is free software; you can redistribute it and/or modify it
+    under the same terms as Perl itself, either Perl version 5.8 or, at your
+    option, any later version of Perl 5 you may have available.
+
+    TODO: check image licences are proper.
+
diff --git a/TODO b/TODO
new file mode 100644
index 0000000..a8c147c
--- /dev/null
+++ b/TODO
@@ -0,0 +1 @@
+Add an Atom (DataRSS) generator.
diff --git a/t/01basic.t b/t/01basic.t
index efd5560..40af80f 100644
--- a/t/01basic.t
+++ b/t/01basic.t
@@ -1,3 +1,3 @@
 use Test::More tests => 1;
-BEGIN { use_ok('Example::Example') };
+BEGIN { use_ok('RDF::RDFa::Generator') };
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/librdf-rdfa-generator-perl.git



More information about the Pkg-perl-cvs-commits mailing list