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::RDF - Utility package for exporting shorthand functions for constructing RDF objects

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

       This is a utility package for exporting shorthand functions for constructing RDF objects such as IRIs,
       Literals, Blanks, Triples, etc.

Functions

       All of the functions defined in this package may be exported (and are exported by default).

       variable( $value )
           "Attean::Variable->new($value)"

       iri( $value )
           "Attean::IRI->new($value)"

       blank( $value )
           "Attean::Blank->new($value)"

       literal( $value )
           "Attean::Literal->new($value)"

       "dtliteral( $value, $dt )"
           "Attean::Literal->new( value => $value, datatype => $dt )"

       "langliteral( $value, $lang )"
           "Attean::Literal->new( value => $value, language => $lang )"

       triple( @terms )
           "Attean::Triple->new( @terms )"

       triplepattern( @terms )
           "Attean::TriplePattern->new( @terms )"

       quad( @terms )
           "Attean::Quad->new( @terms )"

       quadpattern( @terms )
           "Attean::QuadPattern->new( @terms )"

       bgp( @triplepatterns )
           "Attean::Algebra::BGP->new( triples => \@triplepatterns )"

Name

       Attean::RDF - Utility package for exporting shorthand functions for constructing RDF objects

See Also

Synopsis

         use v5.14;
         use Attean::RDF;

         my $s = blank('b');
         my $p = iri('http://xmlns.com/foaf/0.1/name');
         my $o = langliteral("Eve", "en");
         my $triple = triple($s, $p, $o);
         say $triple->as_string; # _:b <http://xmlns.com/foaf/0.1/name> "Eve"@en .

Version

       This document describes Attean::RDF version 0.035

See Also