line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
1
|
|
|
1
|
|
380
|
use 5.010001; |
|
1
|
|
|
|
|
2
|
|
2
|
1
|
|
|
1
|
|
3
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
14
|
|
3
|
1
|
|
|
1
|
|
2
|
use warnings; |
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
43
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package AtteanX::Query::Cache; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:KJETILK'; |
8
|
|
|
|
|
|
|
our $VERSION = '0.002'; |
9
|
1
|
|
|
1
|
|
482
|
use Moo; |
|
1
|
|
|
|
|
8938
|
|
|
1
|
|
|
|
|
3
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
extends 'AtteanX::Endpoint'; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
after 'log_query' => sub { |
14
|
|
|
|
|
|
|
my $self = shift; |
15
|
|
|
|
|
|
|
my $req = shift; |
16
|
|
|
|
|
|
|
my $message = shift; |
17
|
|
|
|
|
|
|
$self->model->publisher->publish('analyze.fullquery', $message); |
18
|
|
|
|
|
|
|
}; |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
1; |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
__END__ |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=pod |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=encoding utf-8 |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=head1 NAME |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
AtteanX::Query::Cache - Experimental prefetching SPARQL query cacher |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head1 SYNOPSIS |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head1 DESCRIPTION |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
This is an alpha release of a system that is able to intercept SPARQL |
37
|
|
|
|
|
|
|
queries if deployed in a proxy, and analyze the queries so that the |
38
|
|
|
|
|
|
|
query can be evaluated on the proxy. It can look up in a cache on the |
39
|
|
|
|
|
|
|
proxy, send parts of the query on to the remote endpoint, use Linked |
40
|
|
|
|
|
|
|
Data Fragments when appropriate and so on. The analyzer may also |
41
|
|
|
|
|
|
|
decide to prefetch certain data asynchronously. |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
It is known at present to have insufficient performance for any |
44
|
|
|
|
|
|
|
practical use, but is released anyway as an alpha. |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head1 BUGS |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
Please report any bugs to |
50
|
|
|
|
|
|
|
L<https://github.com/kjetilk/p5-atteanx-query-cache/issues>. |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head1 SEE ALSO |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head1 AUTHOR |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
Kjetil Kjernsmo E<lt>kjetilk@cpan.orgE<gt>. |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENCE |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
This software is copyright (c) 2015, 2016 by Kjetil Kjernsmo. |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
63
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=head1 DISCLAIMER OF WARRANTIES |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED |
69
|
|
|
|
|
|
|
WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF |
70
|
|
|
|
|
|
|
MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
71
|
|
|
|
|
|
|
|