---
name: "Attean::API::TriplePattern"
section: "3pm"
platform: "linux"
package: "libattean-perl"
version: "0.035-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Attean::API::TriplePattern"
---

# Attean::API::TriplePattern(3pm)

Role representing triple patterns

## NAME

Attean::API::TriplePattern - Role representing triple patterns

## VERSION

This document describes Attean::API::TriplePattern version 0.035

## SYNOPSIS

```
  use v5.14;
  use Attean;
```

## DESCRIPTION

This is a Moo role representing triple patterns.

## ROLES

This role consumes Attean::API::TripleOrQuadPattern and Attean::API::Binding, which provide the following methods:

- "mapping"

  - "values"

  - "tuples\_string"

  - "as\_string"

  ## METHODS

- "variables"

  Returns the list of variable names: `"qw(subject predicate object)"`.

- value( $key )

  Returns the Attean::API::Term value bound to the variable named `$key` (which must be present in the `"variables"` list), undef otherwise.

- as\_quad\_pattern( $graph )

  Returns a new Attean::QuadPattern object with the referent's subject, predicate, and object, and the supplied `$graph`.

## BUGS

Please report any bugs or feature requests to through the GitHub web interface at \<https://github.com/kasei/attean/issues\>.

## SEE ALSO

## AUTHOR

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

## COPYRIGHT

Copyright (c) 2014--2022 Gregory Todd Williams. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
