RDF::SKOS::Concept - SKOS - Concept Class
use RDF::SKOS; my $skos = new RDF::SKOS; my $c = $skos->concept ('aaa'); @labels = $c->prefLabels; # see RDF::SKOS for other concept related methods
This class is simply a container for SKOS concepts. Usually, these concepts have various labels, descriptions, etc. And they can be related, generally, or more specifically with a narrower, broader relationship.
This class simply gives access to this information. At the moment this is all read only, except the constructor maybe.
The constructor expects as first parameter the SKOS object itself, then the ID of the concept. What follows then is a hash reference containing the concept information, such as prefLabels, altLabels etc. This information is added in the same way as described in RDF::SKOS, namely as list (reference) to tuples. The tuples containing the label itself, then the language tag.
All these methods are effectively passing on onto the underlying RDF::SKOS object. Labels are always lists of tuples.
@ls = $c->prefLabels
@ls = $c->altLabels
@ls = $c->hiddenLabels
@ls = $c->scopeNotes
@ls = $c->notes
@ls = $c->definitions
@ls = $c->examples
@ls = $c->historyNotes
@ls = $c->editorialNotes
@ls = $c->changeNotes
@cs = $c->narrower
@cs = $c->narrowerTransitive
@cs = $c->broader
@cs = $c->broaderTransitive
@cs = $c->related
@cs = $c->relatedTransitive
Robert Barta, <drrho at cpan.org>
<drrho at cpan.org>
Please report any bugs or feature requests to bug-rdf-skos at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=RDF-SKOS. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-rdf-skos at rt.cpan.org
Copyright 2009 Robert Barta, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install RDF::SKOS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm RDF::SKOS
CPAN shell
perl -MCPAN -e shell install RDF::SKOS
For more information on module installation, please visit the detailed CPAN module installation guide.