[librdf-rdfa-generator-perl] 10/64: RDFa generator 0.02.
Jonas Smedegaard
dr at jones.dk
Sat Dec 23 12:22:50 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 d414bd96361987a7a7a05f63ffe8143ce105baaf
Author: Toby Inkster <mail at tobyinkster.co.uk>
Date: Wed May 19 10:16:12 2010 +0000
RDFa generator 0.02.
--HG--
branch : RDF-RDFa-Generator
extra : convert_revision : svn%3A3fe8e991-6959-4966-b76d-b07eca2b6e37/RDF-RDFa-Generator%40357
---
Changes | 5 ++
Changes.ttl | 14 ++++-
Changes.xml | 21 +++++++
MANIFEST | 3 +-
META.yml | 3 +-
RDF-RDFa-Generator-0.02.tar.gz | Bin 0 -> 35880 bytes
README | 14 ++++-
lib/RDF/RDFa/Generator.pm | 15 +++--
lib/RDF/RDFa/Generator/HTML/Pretty/Note.pm | 91 ++++++++++++++++++++++++++---
9 files changed, 149 insertions(+), 17 deletions(-)
diff --git a/Changes b/Changes
index a46951a..0e6f7d1 100644
--- a/Changes
+++ b/Changes
@@ -10,5 +10,10 @@ 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.02 [2010-05-18]
+ - Using FamFamFam Silk icons.
+ - (Addition) HTML::Pretty can now include additional textual notes in the
+ output. This functionality added for RDF::RDFa::Linter.
+
0.01 [2010-05-09]
diff --git a/Changes.ttl b/Changes.ttl
index a97fd87..c57f35b 100644
--- a/Changes.ttl
+++ b/Changes.ttl
@@ -28,6 +28,18 @@ my:v_0-01
:file-release <http://backpan.cpan.org/authors/id/T/TO/TOBYINK/RDF-RDFa-Generator-0.01.tar.gz> ;
rdfs:comment "Original version"@en .
+my:v_0-02
+
+ a :Version ;
+ dc:issued "2010-05-18"^^xsd:date ;
+ :revision "0.02"^^xsd:string ;
+ :file-release <http://backpan.cpan.org/authors/id/T/TO/TOBYINK/RDF-RDFa-Generator-0.02.tar.gz> ;
+ dcs:changeset [
+ dcs:versus my:v_0-01 ;
+ dcs:item [ rdfs:label "Using FamFamFam Silk icons."@en ] ;
+ dcs:item [ rdfs:label "HTML::Pretty can now include additional textual notes in the output. This functionality added for RDF::RDFa::Linter."@en ; a dcs:Addition ]
+ ] .
+
#############################################################
my:project
@@ -46,7 +58,7 @@ my:project
:tester toby:i ;
:created "2010-05-05"^^xsd:date ;
:license <http://dev.perl.org/licenses/> ;
- :release my:v_0-01 .
+ :release my:v_0-01 , my:v_0-02 .
#############################################################
diff --git a/Changes.xml b/Changes.xml
index 2489e44..5773277 100644
--- a/Changes.xml
+++ b/Changes.xml
@@ -21,6 +21,26 @@
<revision rdf:datatype="http://www.w3.org/2001/XMLSchema#string">0.01</revision>
<rdfs:comment xml:lang="en">Original version</rdfs:comment>
</Version>
+ <Version rdf:about="http://purl.org/NET/cpan-uri/dist/RDF-RDFa-Generator/v_0-02">
+ <dcs:changeset>
+ <rdf:Description>
+ <dcs:item>
+ <rdf:Description>
+ <rdfs:label xml:lang="en">Using FamFamFam Silk icons.</rdfs:label>
+ </rdf:Description>
+ </dcs:item>
+ <dcs:item>
+ <dcs:Addition>
+ <rdfs:label xml:lang="en">HTML::Pretty can now include additional textual notes in the output. This functionality added for RDF::RDFa::Linter.</rdfs:label>
+ </dcs:Addition>
+ </dcs:item>
+ <dcs:versus rdf:resource="http://purl.org/NET/cpan-uri/dist/RDF-RDFa-Generator/v_0-01"/>
+ </rdf:Description>
+ </dcs:changeset>
+ <dc:issued rdf:datatype="http://www.w3.org/2001/XMLSchema#date">2010-05-18</dc:issued>
+ <file-release rdf:resource="http://backpan.cpan.org/authors/id/T/TO/TOBYINK/RDF-RDFa-Generator-0.02.tar.gz"/>
+ <revision rdf:datatype="http://www.w3.org/2001/XMLSchema#string">0.02</revision>
+ </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>
@@ -33,6 +53,7 @@
<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"/>
+ <release rdf:resource="http://purl.org/NET/cpan-uri/dist/RDF-RDFa-Generator/v_0-02"/>
<repository>
<SVNRepository>
<browse rdf:resource="http://goddamn.co.uk/viewvc/perlmods/RDF-RDFa-Generator/"/>
diff --git a/MANIFEST b/MANIFEST
index 515d2c8..b77fb0c 100644
--- a/MANIFEST
+++ b/MANIFEST
@@ -13,9 +13,10 @@ 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
+lib/RDF/RDFa/Generator/HTML/Pretty.pm
+lib/RDF/RDFa/Generator/HTML/Pretty/Note.pm
inc/Module/AutoInstall.pm
inc/Module/Install/AutoInstall.pm
diff --git a/META.yml b/META.yml
index 69a7921..65b6c39 100644
--- a/META.yml
+++ b/META.yml
@@ -19,6 +19,7 @@ no_index:
- inc
- t
requires:
+ Icon::FamFamFam::Silk: 0
RDF::Trine: 0.112
XML::LibXML: 1.60
common::sense: 0
@@ -28,4 +29,4 @@ resources:
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
+version: 0.02
diff --git a/RDF-RDFa-Generator-0.02.tar.gz b/RDF-RDFa-Generator-0.02.tar.gz
new file mode 100644
index 0000000..521c032
Binary files /dev/null and b/RDF-RDFa-Generator-0.02.tar.gz differ
diff --git a/README b/README
index 8edd814..76bbc39 100644
--- a/README
+++ b/README
@@ -2,7 +2,7 @@ NAME
RDF::RDFa::Generator - generate some data in RDFa
VERSION
- 0.01
+ 0.02
DESCRIPTION
Constructor
@@ -75,6 +75,14 @@ DESCRIPTION
Can also be called as a class method. See "create_document" for
details.
+ The HTML::Pretty generator can be passed a couple of additional
+ options:
+
+ $gen->nodes($model, notes_heading=>'Additional Info', notes=>\@notes);
+
+ The notes are a list of RDF::RDFa::Generator::HTML::Pretty::Note
+ objects which are added as notes to the end of each subject's data.
+
Additionally the methods "serialize_model_to_file",
"serialize_model_to_string", "serialize_iterator_to_file" and
"serialize_iterator_to_string" are provided for compatibility with the
@@ -99,6 +107,6 @@ COPYRIGHT AND LICENCE
option, any later version of Perl 5 you may have available.
Icons
- The icons in RDF::RDFa::Generator::HTML::Pretty are taken from the Tango
- Project.
+ RDF::RDFa::Generator::HTML::Pretty uses the FamFamFam Silk icons; see
+ <http://famfamfam.com/lab/icons/silk/>.
diff --git a/lib/RDF/RDFa/Generator.pm b/lib/RDF/RDFa/Generator.pm
index 06e29b1..9ba3d97 100644
--- a/lib/RDF/RDFa/Generator.pm
+++ b/lib/RDF/RDFa/Generator.pm
@@ -4,7 +4,7 @@ RDF::RDFa::Generator - generate some data in RDFa
=head1 VERSION
-0.01
+0.02
=cut
@@ -13,7 +13,7 @@ package RDF::RDFa::Generator;
use 5.008;
use common::sense;
-our $VERSION = '0.01';
+our $VERSION = '0.02';
use RDF::RDFa::Generator::HTML::Head;
use RDF::RDFa::Generator::HTML::Hidden;
@@ -132,6 +132,13 @@ a list of such elements.
Can also be called as a class method. See C<create_document> for details.
+The HTML::Pretty generator can be passed a couple of additional options:
+
+ $gen->nodes($model, notes_heading=>'Additional Info', notes=>\@notes);
+
+The notes are a list of RDF::RDFa::Generator::HTML::Pretty::Note objects
+which are added as notes to the end of each subject's data.
+
=cut
sub nodes
@@ -211,8 +218,8 @@ at your option, any later version of Perl 5 you may have available.
=head2 Icons
-The icons in RDF::RDFa::Generator::HTML::Pretty are taken from the
-Tango Project.
+RDF::RDFa::Generator::HTML::Pretty uses the FamFamFam Silk icons;
+see L<http://famfamfam.com/lab/icons/silk/>.
=cut
diff --git a/lib/RDF/RDFa/Generator/HTML/Pretty/Note.pm b/lib/RDF/RDFa/Generator/HTML/Pretty/Note.pm
index 6cde4eb..0b2f7de 100644
--- a/lib/RDF/RDFa/Generator/HTML/Pretty/Note.pm
+++ b/lib/RDF/RDFa/Generator/HTML/Pretty/Note.pm
@@ -1,3 +1,9 @@
+=head1 NAME
+
+RDF::RDFa::Generator::HTML::Pretty::Note - a note about something
+
+=cut
+
package RDF::RDFa::Generator::HTML::Pretty::Note;
use 5.008;
@@ -5,6 +11,24 @@ use common::sense;
use constant XHTML_NS => 'http://www.w3.org/1999/xhtml';
use XML::LibXML qw':all';
+=head1 DESCRIPTION
+
+Often you'll want to create your own subclass of this as the basic notes are pretty
+limited (plain text only).
+
+=head2 Constructor
+
+=over 4
+
+=item C<< $note = RDF::RDFa::Generator::HTML::Pretty::Note->new($subject, $text) >>
+
+$subject is an RDF::Trine::Node (though probably not a Literal!) indicating the
+subject of the note. $text is the plain text content of the note.
+
+=back
+
+=cut
+
sub new
{
my ($class, $subject, $text) = @_;
@@ -15,6 +39,39 @@ sub new
}, $class;
}
+=head2 Public Methods
+
+=over 4
+
+=item C<< $note->is_relevent_to($node) >>
+
+$node is an RDF::Trine::Node. Checks if the subject of $note is $node.
+
+Alias: is_relelvant_to.
+
+=cut
+
+sub is_relevant_to
+{
+ my ($self, $something) = @_;
+ return $self->{'subject'}->equal($something);
+}
+
+*is_relevent_to = \&is_relevant_to;
+
+=item C<< $note->node($namespace, $tagname) >>
+
+Gets an XML::LibXML::Element representing the note. $namespace and $tagname
+are used to create the new element. If an unexpected namespace or tagname is
+supplied, may die.
+
+Expected namespace is 'http://www.w3.org/1999/xhtml'. Expected tagname is any XHTML
+tag that can contain text nodes.
+
+=back
+
+=cut
+
sub node
{
my ($self, $namespace, $element) = @_;
@@ -28,12 +85,32 @@ sub node
return $node;
}
-sub is_relevant_to
-{
- my ($self, $something) = @_;
- return $self->{'subject'}->equal($something);
-}
+1;
-*is_relevent_to = \&is_relevant_to;
+__END__
+
+=head1 BUGS
+
+Please report any bugs to L<http://rt.cpan.org/>.
+
+=head1 SEE ALSO
+
+L<RDF::RDFa::Generator>,
+L<RDF::RDFa::Linter>.
+
+L<http://www.perlrdf.org/>.
+
+=head1 AUTHOR
+
+Toby Inkster E<lt>tobyink at cpan.orgE<gt>.
+
+=head1 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.
+
+=cut
-1;
\ No newline at end of file
--
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