Attean::Literal(3pm)

Attean::Literal3pm

Rdf literals

Usage

  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>

Version

This document describes Attean::Literal version 0.035

Overview

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.

Releases

6 releases since Debian 8 (Jessie); the text changed 5 times.

  1. 8
  2. 9
  3. 10
  4. 11
  5. 12
  6. 13

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]>"

From libattean-perl 0.035-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.