---
name: "RDF::Query::Algebra::Triple"
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::Triple"
---

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

Algebra class for Triple patterns

## NAME

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

## VERSION

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

## METHODS

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

- "new ( $s, $p, $o )"

  Returns a new Triple structure.

- "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/\>).

- "referenced\_blanks"

  Returns a list of the blank node names used in this algebra expression.

- "subsumes ( $pattern )"

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

- "bf ()"

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

- "distinguish\_bnode\_variables"

  Returns a new Quad object with blank nodes replaced by distinguished variables.

- "label ( $label =\> $value )"

  Sets the named `$label` to `$value` for this triple object. If no `$value` is given, returns the current label value, or undef if none exists.

## AUTHOR

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