[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:40 UTC 2013
The following commit has been merged in the master branch:
commit d0a2d89428667b991720e1e2d8f1fa8fa5605cfd
Author: Jakob Voss <jakob at nichtich.de>
Date: Wed Nov 2 22:03:28 2011 +0100
updated 20111102 with CLI
diff --git a/Changes b/Changes
index 67a23bb..0728aef 100644
--- a/Changes
+++ b/Changes
@@ -1,3 +1,8 @@
-20111031 (701 prefixes) : first release at CPAN
+20111102 (702 prefixes)
+ new command line tool 'rdfns'
+ added: vsw
+20111031 (701 prefixes)
+ first release at CPAN
added: daiaserv,vvo
-20111028 : first full-featured version
+20111028
+ first full-featured version
diff --git a/README b/README
index a0ada59..c9c697c 100644
--- a/README
+++ b/README
@@ -16,7 +16,7 @@ for easy reuse without having to download them in every application.
In short, you can get a full prefix-to-namespace mapping as blessed hash with
- RDF::NS->new('20111031')
+ RDF::NS->new('20111102')
The only argument to the constructor is the version number, that is equivalent
to the date of a particular snapshot. The changelog in the file Changes lists
diff --git a/dist.ini b/dist.ini
index cb4032b..f417cb4 100644
--- a/dist.ini
+++ b/dist.ini
@@ -1,6 +1,6 @@
name = RDF-NS
license = Perl_5
-version = 20111031
+version = 20111102
copyright_year = 2011
author = Jakob Voss
copyright_holder = Jakob Voss
diff --git a/lib/RDF/NS.pm b/lib/RDF/NS.pm
index 433788b..92063af 100644
--- a/lib/RDF/NS.pm
+++ b/lib/RDF/NS.pm
@@ -75,7 +75,6 @@ sub TXT {
$self->MAP( sub { "$_\t".$self->{$_} } , @_ );
}
-
sub SELECT {
my $self = shift;
$self->MAP( sub { $_ => $self->{$_} } , @_ );
@@ -121,8 +120,8 @@ sub AUTOLOAD {
=head1 SYNOPSIS
- use RDF::NS '20111031'; # check at compile time
- my $ns = RDF::NS->new('20111031'); # check at runtime
+ use RDF::NS '20111102'; # check at compile time
+ my $ns = RDF::NS->new('20111102'); # check at runtime
$ns->foaf; # http://xmlns.com/foaf/0.1/
$ns->foaf_Person; # http://xmlns.com/foaf/0.1/Person
@@ -135,7 +134,7 @@ sub AUTOLOAD {
# To get RDF::Trine::Node::Resource instead of strings
use RDF::NS::Trine;
- $ns = RDF::NS::Trine->new('20111031');
+ $ns = RDF::NS::Trine->new('20111102');
$ns->foaf_Person; # iri('http://xmlns.com/foaf/0.1/Person')
# load your own mapping
@@ -159,11 +158,17 @@ defined at specific snapshots in time. These snapshots correspond to version
numbers of this module. By selecting particular versions, you make sure that
changes at prefix.cc won't affect your scripts.
-This module does not require L<RDF::Trine> which is recommended nevertheless.
+The command line client L<rdfns> is installed automatically with this module:
+
+ $ rdfns -ttl rdf,foaf
+ @prefix foaf: <http://xmlns.com/foaf/0.1/> .
+ @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+
+This module does not require L<RDF::Trine>, which is recommended nevertheless.
If you prefer RDF::NS to return instances of L<RDF::Trine::Node::Resource>
instead of plain strings, use L<RDF::NS::Trine>.
-The code repository of this module contains an
+The code repository of this module also contains an
L<update script|https://github.com/nichtich/RDF-NS/blob/master/update.pl>
to download the current prefix-namespace mappings from L<http://prefix.cc>.
@@ -203,6 +208,10 @@ Returns an XML namespace declaration or a list of such declarations in list
context. Prefixes can be passed as single arguments or separated by commas,
vertical bars, and spaces.
+=method TXT ( prefix[es] )
+
+Returns a list of tabular-separated prefix-namespace-mappings.
+
=method SELECT ( prefix[es] )
In list context, returns a sorted list of prefix-namespace pairs, which
diff --git a/lib/RDF/NS/Trine.pm b/lib/RDF/NS/Trine.pm
index 3ff0f59..44e0a3e 100644
--- a/lib/RDF/NS/Trine.pm
+++ b/lib/RDF/NS/Trine.pm
@@ -17,7 +17,7 @@ sub GET {
use RDF::NS::Trine;
- my $ns = RDF::NS::Trine->new('20111031');
+ my $ns = RDF::NS::Trine->new('20111102');
$ns->foaf_Person; # a RDF::Trine::Node::Resource
$ns->URI('foaf:Person); # same
diff --git a/share/20111031.txt b/share/20111102.txt
similarity index 99%
copy from share/20111031.txt
copy to share/20111102.txt
index 2015611..6875155 100644
--- a/share/20111031.txt
+++ b/share/20111102.txt
@@ -644,6 +644,7 @@ vote http://www.rdfabout.com/rdf/schema/vote/
vs http://www.w3.org/2003/06/sw-vocab-status/ns#
vso http://purl.org/vso/ns#
vsto http://escience.rpi.edu/ontology/vsto/2/0/vsto.owl#
+vsw http://verticalsearchworks.com/ontology/
vvo http://purl.org/vvo/ns#
w3con http://www.w3.org/2000/10/swap/pim/contact#
w3p http://prov4j.org/w3p/
--
librdf-ns-perl Debian packaging
More information about the Pkg-perl-cvs-commits
mailing list