Attean - A Semantic Web Framework
This document describes Attean version 0.001
use v5.14; use Attean; my $parser = Attean->get_parser('NQuads')->new(); my $iter = $parser->parse_iter_from_io(\*STDIN); my $store = Attean->get_store('Memory')->new(); $store->add_iter($iter->as_quads); my $model = Attean::QuadModel->new( store => $store ); my $iter = $model->get_quads(); while (my $quad = $iter->next) { say $quad->object->ntriples_string; }
Attean provides APIs for parsing, storing, querying, and serializing Semantic Web (RDF and SPARQL) data.
get_store( $NAME )
Attempts to find a store (Attean::API::Store) implementation with the given $NAME. This is done using Module::Pluggable and will generally be searching for class names AtteanX::Store::$NAME.
$NAME
AtteanX::Store::$NAME
Returns the full class name if a matching implementation is found, otherwise returns undef.
get_serializer( $NAME )
Attempts to find a store (Attean::API::Serializer) implementation with the given $NAME. This is done using Module::Pluggable and will generally be searching for class names AtteanX::Serializer::$NAME.
AtteanX::Serializer::$NAME
get_parser( $NAME )
get_parser( filename => $FILENAME )
get_parser( media_type => $MEDIA_TYPE )
Attempts to find a Attean::API::Parser parser class with the given $NAME, or that can parse files with the same extension as $FILENAME, or that can parse files with the $MEDIA_TYPE media type.
$FILENAME
$MEDIA_TYPE
Please report any bugs or feature requests to through the GitHub web interface at https://github.com/kasei/attean/issues.
http://www.perlrdf.org/
Gregory Todd Williams <gwilliams@cpan.org>
<gwilliams@cpan.org>
Copyright (c) 2014 Gregory Todd Williams. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Attean, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Attean
CPAN shell
perl -MCPAN -e shell install Attean
For more information on module installation, please visit the detailed CPAN module installation guide.