NAME

RDF::SKOS::Concept - SKOS - Concept Class

SYNOPSIS

use RDF::SKOS;
my $skos = new RDF::SKOS;
my $c = $skos->concept ('aaa');

@labels = $c->prefLabels;
# see RDF::SKOS for other concept related methods

DESCRIPTION

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.

INTERFACE

Constructor

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.

Methods

All these methods are effectively passing on onto the underlying RDF::SKOS object. Labels are always lists of tuples.

prefLabels

@ls = $c->prefLabels

altLabels

@ls = $c->altLabels

hiddenLabels

@ls = $c->hiddenLabels

scopeNotes

@ls = $c->scopeNotes

notes

@ls = $c->notes

definitions

@ls = $c->definitions

examples

@ls = $c->examples

historyNotes

@ls = $c->historyNotes

editorialNotes

@ls = $c->editorialNotes

changeNotes

@ls = $c->changeNotes

narrower

@cs = $c->narrower

narrowerTransitive

@cs = $c->narrowerTransitive

broader

@cs = $c->broader

broaderTransitive

@cs = $c->broaderTransitive

@cs = $c->related

relatedTransitive

@cs = $c->relatedTransitive

AUTHOR

Robert Barta, <drrho at cpan.org>

BUGS

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.

COPYRIGHT & LICENSE

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.