---
name: "RDF::Trine::Model::Union"
section: "3pm"
platform: "linux"
package: "librdf-trine-perl"
version: "1.019-4"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/RDF::Trine::Model::Union"
---

# RDF::Trine::Model::Union(3pm)

Union models for joining multiple stores together

## NAME

RDF::Trine::Model::Union - Union models for joining multiple stores together

## VERSION

This document describes RDF::Trine::Model::Union version 1.019

## METHODS

Beyond the methods documented below, this class inherits methods from the RDF::Trine::Model class.

- "new ( @stores )"

  Returns a new union-model over the list of supplied rdf stores.

- "add\_statement ( $statement \[, $context\] )"

  Adds the specified `$statement` to the first rdf store.

- "remove\_statement ( $statement \[, $context\])"

  Removes the specified `$statement` from all of the rdf stores.

- "remove\_statements ( $subject, $predicate, $object \[, $context\])"

  Removes all statements matching the supplied `$statement` pattern from all of the rdf stores.

- "count\_statements ($subject, $predicate, $object)"

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

- "get\_statements ($subject, $predicate, $object \[, $context\] )"

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

## BUGS

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

## AUTHOR

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

## COPYRIGHT

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