logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Attean::Literal - RDF Literals

Attributes

       The following attributes exist:

       "value"
       "language"
       "datatype"

Author

       Gregory Todd Williams  "<gwilliams@cpan.org>"

Bugs

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

Description

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

Methods

       "has_language"
           Returns true if the literal has a language tag, false otherwise.

       "true"
           The xsd:true term.

       "false"
           The xsd:false term.

Name

       Attean::Literal - RDF Literals

See Also

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>

Version

       This document describes Attean::Literal version 0.035

See Also