RDF::SIO::Utils::Trine - Things that make RDF::Trine work the way I think it should
use RDF::SIO::Utils::Trine; my $t = $RDF::SIO::Utils::Trine->new(); my $node = $t->iri("http://example.com/nodeid"); # or you can get the one auto-generated by RDF::SIO::Utils use RDF::SIO::Utils; my $SIO = RDF::SIO::Utils->new(); # auto created RDF::SIO::Utils::Trine is there my $m = $SIO->Trine->temporary_model(); my $node2 = $SIO->Trine->iri("http://example.com/nodeid");
Typing in $node = RDF::Trine::iri("http://blah.com/") every time was driving me insane. Wanted it to be a bit more... lazy...
Mark Wilkinson (markw at illuminae dot com)
Usage : my $trine = SIO::Utils::Trine->new; Function : Returns : Args :
Usage : my $Model = $trine->temporary_model(); Function : Returns : Args :
Usage : my $Node = $trine->iri($uri); Function : Returns : Args :
Usage : my $bNode = $trine->blank($id); Function : Returns : Args :
Usage : my $lit = $trine->literal("val", "en", "string"); Function : Returns : Args :
Usage : my $stm = $trine->statement($s, $p, $o); Function : Returns : Args : $s, $p, $o as Trine Nodes or literals
To install RDF::SIO::Utils, copy and paste the appropriate command in to your terminal.
cpanm
cpanm RDF::SIO::Utils
CPAN shell
perl -MCPAN -e shell install RDF::SIO::Utils
For more information on module installation, please visit the detailed CPAN module installation guide.