| RDF-Query documentation | view source | Contained in the RDF-Query distribution. |
RDF::Query::Node::Literal - RDF Node class for literals
This document describes RDF::Query::Node::Literal version 2.907.
Beyond the methods documented below, this class inherits methods from the RDF::Query::Node and RDF::Trine::Node::Literal classes.
datetimeReturns a DateTime object from the literal if the literal value is in W3CDTF format.
as_sparqlReturns the SPARQL string for this node.
as_hashReturns the query as a nested set of plain data structures (no objects).
is_simple_literalReturns true if the literal is "simple" -- is a literal without datatype or language.
is_numeric_typeReturns true if the literal is a known (xsd) numeric type.
numeric_valueReturns the numeric value of the literal (even if the literal isn't a known numeric type.
type_listReturns a two-item list suitable for use as the second and third arguments to RDF::Query::Node::Literal constructor. The two returned values correspond to literal language tag and literal datatype URI, respectively.
Gregory Todd Williams <gwilliams@cpan.org>
| RDF-Query documentation | view source | Contained in the RDF-Query distribution. |