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-USmy $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.