VERSION

Version 0.22

SYNOPSIS

 my $helper = RDF::Helper::Properties->new($model);
 print $helper->title($node);

DESCRIPTION

Constructor

Moose-style constructor.

Attributes

The RDF::Trine::Model which data will be extracted from. The only attribute which the constructor requires. An arrayref of RDF::Trine::Node::Resource objects, each of which are taken to mean \*(L"something a bit like foaf:homepage\*(R". There is a sensible default. An arrayref of RDF::Trine::Node::Resource objects, each of which are taken to mean \*(L"something a bit like foaf:name\*(R". There is a sensible default. A hashref for caching data into, or a blessed object which supports \*(C`get\*(C' and \*(C`set\*(C' methods compatible with \s-1CHI\s0 and Cache::Cache. If you do not supply a cache, then a hashref will be used by default.

Methods

A suitable page to redirect to, based on foaf:page or foaf:homepage. A suitable title for the document will be returned, based on document contents. Called in list context, returns a ($value, $lang, $datatype) tuple. A suitable description for the document will be returned, based on document contents Formats the nodes for \s-1HTML\s0 output.

AUTHOR

Most of the code was written by Gregory Todd Williams \*(C`<[email protected]>\*(C' for RDF::LinkedData::Apache, but refactored into this class for use by other modules by Kjetil Kjernsmo, \*(C`<kjetilk at cpan.org>\*(C', then refactored again by Toby Inkster, \*(C`<tobyink at cpan.org>\*(C'.

COPYRIGHT & LICENSE

Copyright 2010 Gregory Todd Williams and \s-1ABC\s0 Startsiden \s-1AS\s0.

Copyright 2012 Toby Inkster.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.