Gregory Williams > RDF-Query > RDF::Query::Model

Download:
RDF-Query-2.200.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

Open  0
Report a bug
Module Version: 2.200   Source  

NAME ^

RDF::Query::Model - Model base class

VERSION ^

This document describes RDF::Query::Model version 2.200, released 6 August 2009.

METHODS ^

parsed

Returns the query parse tree.

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.

new_variable ( $name )

Returns a new variable object.

as_native ( $node, $base, \%namespaces )

Returns bridge-native RDF node objects for the given node.

as_string ( $node )

Returns a string version of the node 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.

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.

equals ( $node_a, $node_b )

Returns true if $node_a and $node_b are equal

subject ( $statement )

Returns the subject of the statement.

predicate ( $statement )

Returns the predicate of the statement.

object ( $statement )

Returns the object of the 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.

get_basic_graph_pattern ( $execution_context, @triples )

Returns a stream object of all variable bindings matching the specified RDF::Trine::Statement objects.

get_computed_statements ( $subject, $predicate, $object, $query, \%bound )

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

get_named_statements ( $subject, $predicate, $object, $context )

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

count_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.

node_count ( $subj, $pred, $obj )

Returns a number representing the frequency of statements in the model matching the given triple. This number is used in cost analysis for query optimization, and has a range of [0, 1] where zero represents no matching triples in the model and one represents matching all triples in the model.

fixup ( $pattern, $query, $base, \%namespaces )

Called prior to query execution, if the underlying model can optimize the execution of $pattern, this method returns a optimized RDF::Query::Algebra object to replace $pattern. Otherwise, returns undef and the fixup method of $pattern will be used instead.

debug

Prints debugging information about the model (including all statements in the model) to STDERR.

AUTHOR ^

 Gregory Williams <gwilliams@cpan.org>