The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Attean - A Semantic Web Framework

VERSION

This document describes Attean version 0.001

SYNOPSIS

  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;
  }

DESCRIPTION

Attean provides APIs for parsing, storing, querying, and serializing Semantic Web (RDF and SPARQL) data.

METHODS

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.

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.

Returns the full class name if a matching implementation is found, otherwise returns undef.

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.

Returns the full class name if a matching implementation is found, otherwise returns undef.

BUGS

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

SEE ALSO

http://www.perlrdf.org/

AUTHOR

Gregory Todd Williams <gwilliams@cpan.org>

COPYRIGHT

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.