Toby Inkster > RDF-Closure-0.001 > RDF::Closure::DatatypeHandling

Download:
RDF-Closure-0.001.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.001   Source  

NAME ^

RDF::Closure::DatatypeHandling - validate and canonicalise typed literals

ANALOGOUS PYTHON ^

RDFClosure/DatatypeHandling.py

DESCRIPTION ^

Provides datatype handling functions for OWL 2 RL and RDFS datatypes.

Functional Interface

This module can export four functions:

Variables $RDF, $RDFS, $OWL and $XSD may also be exported as a convenience. These are RDF::Trine::Namespace objects. Don't modify them.

Object-Oriented Interface

  use RDF::Trine;
  use RDF::Closure::DatatypeHandling qw[$XSD];
  
  my $lit     = RDF::Trine::Node::Literal->new(
    "2010-01-01T11:00:00-01:00", undef, $XSD->dateTime);
  my $handler = RDF::Closure::DatatypeHandling->new(force_utc => 1);
  print $handler->literal_canonical($lit)->as_ntriples;

SEE ALSO ^

RDF::Closure.

http://www.perlrdf.org/.

AUTHOR ^

Toby Inkster <tobyink@cpan.org>.

COPYRIGHT ^

Copyright 2008-2011 Ivan Herman

Copyright 2011-2012 Toby Inkster

This library is free software; you can redistribute it and/or modify it under any of the following licences:

DISCLAIMER OF WARRANTIES ^

THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.

syntax highlighting: