1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
|
package OWL::DirectSemantics::Element::ClassAssertion;
BEGIN {
$OWL::DirectSemantics::Element::ClassAssertion::AUTHORITY = 'cpan:TOBYINK';
$OWL::DirectSemantics::Element::ClassAssertion::VERSION = '0.001';
};
use 5.008;
use Moose;
extends 'OWL::DirectSemantics::Element';
with 'OWL::DirectSemantics::Writer::Dump';
with 'OWL::DirectSemantics::Writer::FunctionalSyntax';
has 'node' => (is => 'rw', isa => 'RDF::Trine::Node', required=>1);
has 'class' => (is => 'rw', isa => 'RDF::Trine::Node', required=>1);
sub fs_arguments { return ($_[0]->class, $_[0]->node); }
1;
__END__
=head1 NAME
OWL::DirectSemantics::Element::ClassAssertion - represents an OWL ClassAssertion
=head1 DESCRIPTION
This class represents the ClassAssertion element in OWL Direct Semantics.
This class inherits from OWL::DirectSemantics::Element.
It does the OWL::DirectSemantics::Writer::FunctionalSyntax and
OWL::DirectSemantics::Writer::Dump roles.
=head2 Attributes
=over
=item C<< annotations >>
A list of annotations associated with this object.
The value is a ArrayRef.
=item C<< class >>
The class or datatype.
The value is a RDF::Trine::Node.
This is a required attribute.
=item C<< node >>
The RDF::Trine::Node associated.
The value is a RDF::Trine::Node.
This is a required attribute.
=back
=head1 SEE ALSO
L<OWL::DirectSemantics>,
L<OWL::DirectSemantics::Element>.
=head1 AUTHOR
Toby Inkster E<lt>tobyink@cpan.orgE<gt>.
=head1 COPYRIGHT
Copyright 2011-2012 Toby Inkster
This library is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
=head1 DISCLAIMER OF WARRANTIES
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|