1RDF::Query::Node::LiterUasle(r3)Contributed Perl DocumenRtDaFt:i:oQnuery::Node::Literal(3)
2
3
4
6 RDF::Query::Node::Literal - RDF Node class for literals
7
9 This document describes RDF::Query::Node::Literal version 2.918.
10
12 Beyond the methods documented below, this class inherits methods from
13 the RDF::Query::Node and RDF::Trine::Node::Literal classes.
14
15 "datetime"
16 Returns a DateTime object from the literal if the literal value is
17 in W3CDTF format.
18
19 "as_sparql"
20 Returns the SPARQL string for this node.
21
22 "as_hash"
23 Returns the query as a nested set of plain data structures (no
24 objects).
25
26 "is_simple_literal"
27 Returns true if the literal is "simple" -- is a literal without
28 datatype or language.
29
30 "is_numeric_type"
31 Returns true if the literal is a known (xsd) numeric type.
32
33 "numeric_value"
34 Returns the numeric value of the literal (even if the literal isn't
35 a known numeric type.
36
37 "type_list"
38 Returns a two-item list suitable for use as the second and third
39 arguments to RDF::Query::Node::Literal constructor. The two
40 returned values correspond to literal language tag and literal
41 datatype URI, respectively.
42
44 Gregory Todd Williams <gwilliams@cpan.org>
45
46
47
48perl v5.30.0 2019-07-26 RDF::Query::Node::Literal(3)