[SCM] librdf-ns-perl Debian packaging branch, master, updated. debian/20130208-1-22-g47de138

Jakob Voss jakob at nichtich.de
Fri Apr 19 13:28:38 UTC 2013


The following commit has been merged in the master branch:
commit 5f7c4e160ef2f43f07dacbc2cdfe115c6d1d6c36
Author: Jakob Voss <jakob at nichtich.de>
Date:   Fri Oct 28 15:02:35 2011 +0200

    minor documentation fixes

diff --git a/lib/RDF/NS.pm b/lib/RDF/NS.pm
index de46246..1f229af 100644
--- a/lib/RDF/NS.pm
+++ b/lib/RDF/NS.pm
@@ -101,7 +101,7 @@ sub AUTOLOAD {
 
 =head1 SYNOPSIS
 
-  use RDF::NS '20111028';
+  use RDF::NS;
   my $ns = RDF::NS->new('20111028');
 
   $ns->foaf;               # http://xmlns.com/foaf/0.1/
@@ -114,7 +114,8 @@ sub AUTOLOAD {
   $ns->XMLNS('foaf');      # xmlns:foaf="http://xmlns.com/foaf/0.1/"
 
   # To get RDF::Trine::Node::Resource instead of strings
-  my $ns = RDF::NS->new( '20111028', as => 'trine' );
+  use RDF::NS::Trine;
+  $ns = RDF::NS::Trine->new('20111028');
   $ns->foaf_Person;        # iri('http://xmlns.com/foaf/0.1/Person')
 
   # load your own mapping
@@ -125,7 +126,7 @@ sub AUTOLOAD {
   $uri = $ns->SELECT('foo|bar|doz'); # returns first existing namespace
 
   # instances are just blessed hash references
-  $ns->{'foaf'}            # http://xmlns.com/foaf/0.1/
+  $ns->{'foaf'};           # http://xmlns.com/foaf/0.1/
   bless { foaf => 'http://xmlns.com/foaf/0.1/' }, 'RDF::NS';
   print (scalar %$ns) . "prefixes\n";
 
@@ -202,7 +203,7 @@ it just returns C<$uri> unmodified.
 =head1 SEE ALSO
 
 There are several CPAN modules to deal with IRI namespaces, for instance
-L<RDF::Trine::Namespace>, L<RDF::Trine::NamespaceMap<>, L<RDF::Prefixes>,
+L<RDF::Trine::Namespace>, L<RDF::Trine::NamespaceMap>, L<RDF::Prefixes>,
 L<RDF::Simple::NS>, L<RDF::RDFa::Parser::Profile::PrefixCC> etc.
 
 =cut

-- 
librdf-ns-perl Debian packaging



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