NAME RDF::aREF - Another RDF Encoding Form SYNOPSIS use RDF::aREF; my $rdf = { _id => 'http://example.com/people#alice', foaf_name => 'Alice Smith', foaf_age => '42^xsd:integer', foaf_homepage => [ { _id => 'http://personal.example.org/', dct_modified => '2010-05-29^xsd:date', }, 'http://work.example.com/asmith/', ], foaf_knows => { dct_description => 'a nice guy@en', }, }; decode_aref( $rdf, callback => sub { my ($subject, $predicate, $object, $language, $datatype) = @_; ... } ); my $model = RDF::Trine::Model->new; decode_aref( $rdf, callback => $model ); print RDF::Trine::Serializer->new('Turtle')->serialize_model_to_string($model); DESCRIPTION aREF (another RDF Encoding Form ) is an encoding of RDF graphs in form of arrays, hashes, and Unicode strings. This module implements methods for decoding from aREF data to RDF triples (RDF::aREF::Decoder) and for encoding RDF data in aREF (RDF::aREF::Encoder). EXPORTED FUNCTIONS decode_aref( $aref, [ %options ] ) Decodes an aREF document given as hash reference with RDF::aREF::Decoder. Shortcut for "RDF::aREF::Decoder->new(%options)->decode($aref)". aref_query( $aref, [ $subject ], $query ) Experimental query function to access parts of an aREF data structure. SEE ALSO * aREF is being specified at . * This module was first packaged together with Catmandu::RDF. * RDF::Trine contains much more for handling RDF data in Perl. * See RDF::YAML for a similar (outdated) RDF encoding in YAML. COPYRIGHT AND LICENSE Copyright Jakob Voss, 2014- This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.