The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

RDF::Query::Model::SQL - A bridge class for interacting with a RDBMS triplestore using the Redland schema.

METHODS

new ( $model )

Returns a new bridge object for the database accessibly with the $dbh handle, using the specified $model name.

model

Returns an ARRAY reference meant for use as an opaque structure representing the underlying RDBMS triplestore.

new_resource ( $uri )

Returns a new resource object.

new_literal ( $string, $language, $datatype )

Returns a new literal object.

new_blank ( $identifier )

Returns a new blank node object.

new_statement ( $s, $p, $o )

Returns a new statement object.

is_node ( $node )
isa_node ( $node )

Returns true if $node is a node object for the current model.

is_resource ( $node )
isa_resource ( $node )

Returns true if $node is a resource object for the current model.

is_literal ( $node )
isa_literal ( $node )

Returns true if $node is a literal object for the current model.

is_blank ( $node )
isa_blank ( $node )

Returns true if $node is a blank node object for the current model.

equals ( $node_a, $node_b )

Returns true if $node_a and $node_b are equal

as_string ( $node )

Returns a string version of the node object.

literal_value ( $node )

Returns the string value of the literal object.

literal_datatype ( $node )

Returns the datatype of the literal object.

literal_value_language ( $node )

Returns the language of the literal object.

uri_value ( $node )

Returns the URI string of the resource object.

blank_identifier ( $node )

Returns the identifier for the blank node object.

add_uri ( $uri, $named )

Addsd the contents of the specified $uri to the model. If $named is true, the data is added to the model using $uri as the named context.

statement_method_map ()

Returns an ordered list of method names that when called against a statement object will return the subject, predicate, and object objects, respectively.

subject ( $statement )

Returns the subject node of the specified $statement.

predicate ( $statement )

Returns the predicate node of the specified $statement.

object ( $statement )

Returns the object node of the specified $statement.

get_statements ($subject, $predicate, $object)

Returns a stream object of all statements matching the specified subject, predicate and objects. Any of the arguments may be undef to match any value.

as_xml ($stream)

Returns an RDF/XML serialization of the results graph.

supports ($feature)

Returns true if the underlying model supports the named $feature. Possible features include:

        * named_graph
        * node_counts
        * temp_model
        * xml

1 POD Error

The following errors were encountered while parsing the POD:

Around line 36:

=over without closing =back