NAME

AtteanX::Endpoint::GraphStoreProtocol - SPARQL 1.1 Graph Store Protocol

VERSION

This document describes AtteanX::Endpoint::GraphStoreProtocol version 0.003

SYNOPSIS

plackup -p 9091 scripts/endpoint.psgi

DESCRIPTION

The AtteanX::Endpoint::GraphStoreProtocol class implements the logic for the SPARQL Graph Store Protocol.

ATTRIBUTES

graph

The Attean::API::IRI of the graph in the model that represents the default graph.

model
conf
planner

METHODS

run( $request, $response )

Extract the SPARQL Graph Store Protocol request from $request, run the corresponding query/update, and populate $response with results or error information.

update_for_io( $request, $graph, $content_type, $io )

Parses RDF content of type $content_type from $io, and inserts it into the specified $graph, clearing that graph first if $request->method is 'PUT'.

get_gsp_graph( $request )

Return a list ( $g, $new ) of the graph identified by the GSP request (either directly- or indirectly-identified, or $self->graph for the default graph), and a boolean flag indicating if the graph should be newly created (in the case of a POST to the GSP endpoint without identifying a graph).

log_gsp_request( $request )

Log the request.

log_error ( $message )

BUGS

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

AUTHOR

Gregory Todd Williams <gwilliams@cpan.org>

COPYRIGHT

Copyright (c) Gregory Todd Williams. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.