1 | package jp.ac.osaka_u.sanken.sparql;
|
---|
2 |
|
---|
3 | import java.util.List;
|
---|
4 |
|
---|
5 | public class SparqlAccessorFactory {
|
---|
6 |
|
---|
7 | public static SparqlAccessor createSparqlAccessor(EndpointSettings setting){
|
---|
8 |
|
---|
9 | if (setting.isEditable()){
|
---|
10 | // 迴セ迥カ縲∫キィ髮�庄閭ス縺ェ繧牙クク縺ォAllegroGraph縺ィ縺吶k
|
---|
11 | return new AllegroAccessor(setting);
|
---|
12 | } else {
|
---|
13 | return new PlainSparqlAccessor(setting);
|
---|
14 | }
|
---|
15 | }
|
---|
16 |
|
---|
17 | public static SparqlAccessor createSparqlAccessor(List<EndpointSettings> settings){
|
---|
18 | return new CrossSparqlAccessor(settings);
|
---|
19 | }
|
---|
20 |
|
---|
21 | public static ThreadedSparqlAccessor createSparqlAccessor(EndpointSettings setting, SparqlQueryListener listener){
|
---|
22 |
|
---|
23 | if (setting.isEditable()){
|
---|
24 | // 迴セ迥カ縲∫キィ髮�庄閭ス縺ェ繧牙クク縺ォAllegroGraph縺ィ縺吶k
|
---|
25 | return new AllegroAccessor(setting, listener);
|
---|
26 | } else {
|
---|
27 | return new PlainSparqlAccessor(setting, listener);
|
---|
28 | }
|
---|
29 | }
|
---|
30 |
|
---|
31 | public static ThreadedSparqlAccessor createSparqlAccessor(List<EndpointSettings> settings, SparqlQueryListener listener){
|
---|
32 | return new CrossSparqlAccessor(settings, listener);
|
---|
33 | }
|
---|
34 |
|
---|
35 |
|
---|
36 | }
|
---|