---
name: "RDF::Query::Algebra::BasicGraphPattern"
section: "3pm"
platform: "linux"
package: "librdf-query-perl"
version: "2.919-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/RDF::Query::Algebra::BasicGraphPattern"
---

# RDF::Query::Algebra::BasicGraphPattern(3pm)

Algebra class for BasicGraphPattern patterns

## NAME

RDF::Query::Algebra::BasicGraphPattern - Algebra class for BasicGraphPattern patterns

## VERSION

This document describes RDF::Query::Algebra::BasicGraphPattern version 2.919.

## METHODS

Beyond the methods documented below, this class inherits methods from the RDF::Query::Algebra class.

- "new ( @triples )"

  Returns a new BasicGraphPattern structure.

- "construct\_args"

  Returns a list of arguments that, passed to this class' constructor, will produce a clone of this algebra pattern.

- "triples"

  Returns a list of triples belonging to this BGP.

- "quads"

  Returns a list of the (implicit) quads belonging to this BGP.

- "sse"

  Returns the SSE string for this algebra expression.

- "explain"

  Returns a string serialization of the algebra appropriate for display on the command line.

- "as\_sparql"

  Returns the SPARQL string for this algebra expression.

- "as\_hash"

  Returns the query as a nested set of plain data structures (no objects).

- "as\_spin ( $model )"

  Adds statements to the given model to represent this algebra object in the SPARQL Inferencing Notation (\<http://www.spinrdf.org/\>).

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

- "connected"

  Returns true if the pattern is connected through shared variables, false otherwise.

- "subsumes ( $pattern )"

  Returns true if the bgp subsumes the pattern, false otherwise.

- "bf ()"

  Returns a string representing the state of the nodes of the triple (bound or free).

- "clone"

  - "bind\_variables ( \\%bound )"

  Returns a new algebra pattern with variables named in `%bound` replaced by their corresponding bound values.

## AUTHOR

```
 Gregory Todd Williams <gwilliams@cpan.org>
```
