
Rdf::trineshortcuts is a perl library exporting three functions which simplify frequently performed tasks using rdf::trine and rdf::query. (a number of other functions are also available but not exported by default.)
* rdf_parse($data)
* rdf_string($model, $format)
* rdf_query($sparql, $endpoint_or_model)
in addition, because it calls "use rdf::trine", "use rdf::query", and "use rdf::query::client", your code doesn't need to.