Attean::Literal(3) RDF Literals

VERSION

This document describes Attean::Literal version 0.017

SYNOPSIS


use v5.14;
use Attean;
my $langterm = Attean::Literal->new(value => 'foo', language => 'en-US');
$langterm->ntriples_string; # "foo"@en-US
my $typeterm = Attean::Literal->new(value => '123', datatype => 'http://www.w3.org/2001/XMLSchema#integer');
$langterm->ntriples_string; # "123"^^<http://www.w3.org/2001/XMLSchema#integer>

DESCRIPTION

The Attean::Literal class represents RDF literals. It conforms to the Attean::API::Literal role.

ATTRIBUTES

The following attributes exist:
"value"
"language"
"datatype"

METHODS

"has_language"
Returns true if the literal has a language tag, false otherwise.
"true"
The xsd:true term.
"false"
The xsd:false term.

BUGS

Please report any bugs or feature requests to through the GitHub web interface at <https://github.com/kasei/attean/issues>.

AUTHOR

Gregory Todd Williams "<[email protected]>"

COPYRIGHT

Copyright (c) 2014--2016 Gregory Todd Williams. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.