# RDF::QUERY::ALGEBRA::OPTIONAL - reference manual online

Algebra class for Optional patterns.

Chapter

2015-10-16

RDF::Query::Algebra::Optional(3User Contributed Perl DocumentatRDF::Query::Algebra::Optional(3pm)NAMERDF::Query::Algebra::Optional - Algebra class for Optional patternsVERSIONThis document describes RDF::Query::Algebra::Optional version 2.916.METHODSBeyond the methods documented below, this class inherits methods from the RDF::Query::Algebra class. "new ( $pattern, $opt_pattern )" Returns a new Optional structure. "construct_args" Returns a list of arguments that, passed to this class' constructor, will produce a clone of this algebra pattern. "pattern" Returns the base pattern (LHS) onto which the optional pattern joins. "optional" Returns the optional pattern (RHS). "sse" Returns the SSE string for this algebra expression. "as_sparql" Returns the SPARQL string for this algebra expression. "as_spin ( $model )" Adds statements to the given model to represent this algebra object in the SPARQL Inferencing Notation (<http://www.spinrdf.org/>). "as_hash" Returns the query as a nested set of plain data structures (no objects). "type" Returns the type of this algebra expression. "referenced_variables" Returns a list of the variable names used in this algebra expression. "potentially_bound" Returns a list of the variable names used in this algebra expression that will bind values during execution. "definite_variables" Returns a list of the variable names that will be bound after evaluating this algebra expression.perl v5.20.2 2015-10-16 RDF::Query::Algebra::Optional(3pm)