1
# RDF::Trine::Parser::Turtle::Constants
2
# -----------------------------------------------------------------------------
6
RDF::Trine::Parser::Turtle::Constants - Constant definitions for use in parsing Turtle, TriG, and N-Triples
10
This document describes RDF::Trine::Parser::Turtle::Constants version 1.002
14
use RDF::Trine::Parser::Constants;
22
package RDF::Trine::Parser::Turtle::Constants;
67
foreach my $name (grep { $_ ne 'decrypt_constant' } @EXPORT) {
69
$reverse{ $value } = $name;
70
$mapping{ $name } = $value;
73
use constant +{ %mapping };
75
=item C<< decrypt_constant ( $type ) >>
77
Returns the token name for the given toke type.
81
sub decrypt_constant { my $num = +shift; $reverse{$num} }
92
Please report any bugs or feature requests to through the GitHub web interface
93
at L<https://github.com/kasei/perlrdf/issues>.
97
Toby Inkster C<< <tobyink@cpan.org> >>
101
Copyright (c) 2012 Toby Inkster. This
102
program is free software; you can redistribute it and/or modify it under
103
the same terms as Perl itself.