~ubuntu-branches/ubuntu/trusty/librdf-trine-perl/trusty

« back to all changes in this revision

Viewing changes to lib/RDF/Trine/Iterator/Graph.pm

  • Committer: Package Import Robot
  • Author(s): Jonas Smedegaard, Jonas Smedegaard
  • Date: 2012-12-11 04:17:02 UTC
  • mfrom: (1.2.2)
  • Revision ID: package-import@ubuntu.com-20121211041702-tfqq2grzobwynjpm
Tags: 1.002-1
* New upstream release.
  Highlights:
  + Replaced old Turtle and TriG parsers with new streaming
    implementations.
  + Added RDF::Trine::Node::Literal->canonicalize method.
  + Updated RDF::Trine::Parser::Redland to construct a new parser
    object on each parse (avoiding a bug in redland).
  + Applied partial patch to 'fix interaction with
    HTML::Data::Parser'.
  + Added POD to RDF::Trine and RDF::Trine::Store::DBI.
  + Silenced undefined warnings in RDF::Trine::Parser::Turtle::Lexer.
  + Silenced warning of cartesian joins in
    RDF::Trine::Store::Hexastore.

[ Jonas Smedegaard ]
* Bump debhelper compatibility level to 8.
* Update package relations:
  + (Build-)depend on libmoose-perl and libmoosex-arrayref-perl.
  + Relax to build-depend unversioned on cdbs: Needed version
    satisfied in stable, and oldstable no longer supported.
* Update copyright file:
  + Expand Files section authored by Toby Inkster, and extend
    coverage.
  + Fix use comment and license pseudo-sections to obey silly
    restrictions of copyright format 1.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 
8
8
=head1 VERSION
9
9
 
10
 
This document describes RDF::Trine::Iterator::Graph version 1.000
 
10
This document describes RDF::Trine::Iterator::Graph version 1.002
11
11
 
12
12
=head1 SYNOPSIS
13
13
 
47
47
 
48
48
our ($VERSION);
49
49
BEGIN {
50
 
        $VERSION        = '1.000';
 
50
        $VERSION        = '1.002';
51
51
}
52
52
 
53
53
######################################################################
110
110
        
111
111
        my $sub = sub {
112
112
                my $statement   = $self->next;
113
 
                return undef unless ($statement);
 
113
                return unless ($statement);
114
114
                my %values              = map {
115
115
                        my $method = $bindings{ $_ };
116
116
                        $_ => $statement->$method()
253
253
        my $fh                          = shift;
254
254
        my $max_result_size     = shift || 0;
255
255
        my $graph                       = $self->unique();
256
 
        binmode($fh, ':utf8');
257
256
        
258
257
        my $count       = 0;
259
 
        no strict 'refs';
260
258
        print {$fh} <<"END";
261
259
<?xml version="1.0" encoding="utf-8"?>
262
260
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">