AllegroGraph.pm

filter: Statementstmt 100% 8 / 8 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 10 / 10 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Store/AllegroGraph.pm ↑ Summary AllegroGraph/FAQ.pm »
1 package RDF::Trine::AllegroGraph;
2  
3 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 =head1 NAME
7  
8 RDF::Trine::AllegroGraph - Compatibility layer between RDF::Trine and AllegroGraph
9  
10 =cut
11  
12 2 our $VERSION = '0.01';
13  
14 =head1 SYNOPSIS
15  
16 use RDF::Trine::Store;
17 my $store = RDF::Trine::Store->new_with_string( "AllegroGraph;$AG4_SERVER/cat23/repo34" );
18 use RDF::Trine::Model;
19 my $model = RDF::Trine::Model->new ($store);
20  
21 # start to use the model according to RDF::Trine::Model
22  
23 my $query = RDF::Query->new( 'SELECT * WHERE ...' );
24 my $iterator = $query->execute( $model );
25 while (my $row = $iterator->next) {
26 # $row is a HASHref containing variable name -> RDF Term bindings
27 print $row->{ 'var' }->as_string;
28 }
29  
30 =head1 DESCRIPTION
31  
32 @@@@
33  
34 =head1 AUTHOR
35  
36 Robert Barta, C<< <drrho at cpan.org> >>
37  
38 =head1 BUGS
39  
40 Please report any bugs or feature requests to C<bug-rdf-trine-allegrograph at rt.cpan.org>, or through
41 the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=RDF-Trine-AllegroGraph>. I will be notified, and then you'll
42 automatically be notified of progress on your bug as I make changes.
43  
44 =head1 SEE ALSO
45  
46 L<RDF::Trine::Store::AllegroGraph>
47  
48 =head1 ACKNOWLEDGEMENTS
49  
50 The development of this package was supported by Franz Inc.
51  
52 =head1 COPYRIGHT & LICENSE
53  
54 Copyright 2011 Robert Barta, all rights reserved.
55  
56 This program is free software; you can redistribute it and/or modify it
57 under the same terms as Perl itself.
58  
59 =cut
60  
61 2 1;
« Store/AllegroGraph.pm ↑ Summary AllegroGraph/FAQ.pm »