1RDF::Trine::Node(3)   User Contributed Perl Documentation  RDF::Trine::Node(3)
2
3
4

NAME

6       RDF::Trine::Node - Base class for RDF Nodes
7

VERSION

9       This document describes RDF::Trine::Node version 1.019
10

FUNCTIONS

12       "ntriples_escape ( $value )"
13           Returns the passed string value with special characters (control
14           characters, Unicode, etc.) escaped, suitable for printing inside an
15           N-Triples or Turtle encoded literal.
16

METHODS

18       "is_node"
19           Returns true if this object is a RDF node, false otherwise.
20
21       "is_nil"
22           Returns true if this object is the nil-valued node.
23
24       "is_blank"
25           Returns true if this RDF node is a blank node, false otherwise.
26
27       "is_resource"
28           Returns true if this RDF node is a resource, false otherwise.
29
30       "is_literal"
31           Returns true if this RDF node is a literal, false otherwise.
32
33       "is_variable"
34           Returns true if this RDF node is a variable, false otherwise.
35
36       "as_string"
37           Returns the node in a string form.
38
39       "as_ntriples"
40           Returns the node in a string form suitable for NTriples
41           serialization.
42
43       "sse"
44           Returns the SSE serialization of the node.
45
46       "equal ( $node )"
47           Returns true if the two nodes are equal, false otherwise.
48
49       "compare ( $node_a, $node_b )"
50           Returns -1, 0, or 1 if $node_a sorts less than, equal to, or
51           greater than $node_b in the defined SPARQL ordering, respectively.
52           This function may be used as the function argument to "<sort">.
53
54       "as_hashref"
55           Returns a hashref representing the node in an RDF/JSON-like manner.
56
57           See "as_hashref" at RDF::Trine::Model for full documentation of the
58           hashref format.
59
60       "from_sse ( $string, $context )"
61           Parses the supplied SSE-encoded string and returns a
62           RDF::Trine::Node object.
63

BUGS

65       Please report any bugs or feature requests to through the GitHub web
66       interface at <https://github.com/kasei/perlrdf/issues>.
67

AUTHOR

69       Gregory Todd Williams  "<gwilliams@cpan.org>"
70
72       Copyright (c) 2006-2012 Gregory Todd Williams. This program is free
73       software; you can redistribute it and/or modify it under the same terms
74       as Perl itself.
75
76
77
78perl v5.38.0                      2023-07-21               RDF::Trine::Node(3)
Impressum