RDF::Trine::Store::AllegroGraph - Triple store implementation based on AGv4
use RDF::Trine::Store::AllegroGraph; my $trine = RDF::Trine::Store->new_with_string( "AllegroGraph;http://ag_server:10035/scratch/catlitter" ); # use the RDF::Trine::Store API
This package implements the RDF::Trine::Store API on the basis of the AllegroGraph v4 Perl client.
You will almost never invoke any of the functions/methods here directly, but will peruse the Trine invocation stack. The only exception for that are those things which an AGv4 repository offers, but are not covered by the Trine API. These are, among other things:
Prolog rule based querying
sessions and transactions
geo-spatial support
social network analysis
For these I suggest that you pull out the AGv4 repository from the trine store like this:
my $repo = $store->{model}; my $result = $repo->prolog ("....");
NOTE: This will probably change as RDF::Trine evolves.
Are essentially those from RDF::Trine::Store with the following flavor:
_new_with_object
That will be wrapped into the store and used from then on.
_new_with_string
AllegroGraph;<HTTP-address-of-server>/<catalog-name>/<repository-name>
such as
AllegroGraph;http://super:super@127.0.0.1:10035/test/experiment
NOTE: If the repository does not exist, it will be generated (that usually takes a bit of time with AG).
_new_with_config
storetype
must be AllegroGraph
AllegroGraph
server
must be an HTTP URL of the server (excluding trailing slash), defaults to http://127.0.0.1:10035
http://127.0.0.1:10035
catalog
must be an identifier of the form /something
repository
must be an identifier of the form /somethingelse
username
is used for authentication
password
ditto
This is not implemented as we need serious information to actually create a repository (and to get rid of it eventually).
TODO: As additional parameters could provide this information, one could use that.
Currently this store supports the following features:
I.e. SPARQL 1.0 queries can be directly funneled into here.
If you pass in a string holding a SPARQL query, then you will get back an RDF::Trine::Iterator::Bindings iterator.
As the mother class commands.
As the mother class, but:
We do not check for duplicates here. I.e. you can add any number of identical triples. They will not show up in your SPARQL results, but with get_statements they will.
get_statements
Quads are not (yet) supported.
Same as mother class.
NOTE: No quads yet. And this does not work within bulk mode (yet).
See remove_statement
remove_statement
As the mother class.
For now, this always will return an empty list.
TODO: When Perl AG supports more context features this will change.
As for the mother class, but remember that AG allows you to hold duplicates.
Not implemented. Will die.
Currently bulk operation is only supporting adding statements. Not deleting them.
Robert Barta, <drrho at cpan.org>
<drrho at cpan.org>
Please report any bugs or feature requests to bug-rdf-trine-allegrograph at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=RDF-Trine-AllegroGraph. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-rdf-trine-allegrograph at rt.cpan.org
RDF::Trine::AllegroGraph
The development of this package was supported by Franz Inc.
Copyright 2011 Robert Barta, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install RDF::Trine::AllegroGraph, copy and paste the appropriate command in to your terminal.
cpanm
cpanm RDF::Trine::AllegroGraph
CPAN shell
perl -MCPAN -e shell install RDF::Trine::AllegroGraph
For more information on module installation, please visit the detailed CPAN module installation guide.