Source

p5-rdf-rdfa-api / lib / RDF / RDFa / API / BlankNode.pm

Full commit
package RDF::RDFa::API::BlankNode;

use 5.010;
use Moose;
use namespace::clean -except => 'meta';
use common::sense;

extends 'RDF::RDFa::API::RDFResource';

has trineNode => (is => 'ro', required => 1, isa => 'RDF::Trine::Node::Blank');

sub construct
{
	my ($class, $ident, %args) = @_;
	
	$ident =~ s/^_://g;
	
	return $class->new(
		%args,
		trineNode => RDF::Trine::Node::Blank->new("$ident"),
		);
}

1;

__END__

=head1 NAME

RDF::RDFa::API::BlankNode- An RDF resource that does not have a corresponding IRI reference, as defined in [RDF-CONCEPTS].

=head1 WEBIDL

	[NoInterfaceObject]
	interface BlankNode : RDFResource {
		 readonly attribute stringifier DOMString value;
	};

=head1 SEE ALSO

L<RDF::RDFa::API>.

RDF-CONCEPTS: L<http://www.w3.org/TR/2004/REC-rdf-concepts-20040210>.

=head1 BUGS

Please report any bugs to L<http://rt.cpan.org/>.

=head1 AUTHOR

Toby Inkster E<lt>tobyink@cpan.orgE<gt>.

=head1 COPYRIGHT

Copyright 2010 Toby Inkster

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