Skip to content

Package: JenaOntoDriverProperties

JenaOntoDriverProperties

nameinstructionbranchcomplexitylinemethod
JenaOntoDriverProperties()
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /**
2: * Copyright (C) 2022 Czech Technical University in Prague
3: *
4: * This program is free software: you can redistribute it and/or modify it under
5: * the terms of the GNU General Public License as published by the Free Software
6: * Foundation, either version 3 of the License, or (at your option) any
7: * later version.
8: *
9: * This program is distributed in the hope that it will be useful, but WITHOUT
10: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11: * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
12: * details. You should have received a copy of the GNU General Public License
13: * along with this program. If not, see <http://www.gnu.org/licenses/>.
14: */
15: package cz.cvut.kbss.ontodriver.jena.config;
16:
17: public class JenaOntoDriverProperties {
18:
19: /**
20: * Represents parameter specify isolation strategy to be used.
21: * <p>
22: * Possible values:
23: * <ul>
24: * <li>{@link #READ_COMMITTED}</li>
25: * <li>{@link #SNAPSHOT}</li>
26: * </ul>
27: */
28: public static final String JENA_ISOLATION_STRATEGY = "cz.cvut.kbss.ontodriver.jena.isolation";
29:
30: /**
31: * Default storage access isolation strategy.
32: * <p>
33: * Represents situation where transactions keep a list of their changes, but the read from a shared connector,
34: * meaning when a transaction commits changes, other transactions immediately see them.
35: *
36: * @see #JENA_ISOLATION_STRATEGY
37: */
38: public static final String READ_COMMITTED = "read-committed";
39:
40: /**
41: * Storage access isolation strategy.
42: * <p>
43: * Represents situations where each transaction acquires a complete snapshot of the repository and works with it.
44: *
45: * @see #JENA_ISOLATION_STRATEGY
46: */
47: public static final String SNAPSHOT = "snapshot";
48:
49: /**
50: * Represents parameter specifying type of storage to be used by this driver.
51: * <p>
52: * Possible values are:
53: * <ul>
54: * <li>{@link #FILE}</li>
55: * <li>{@link #IN_MEMORY}</li>
56: * <li>{@link #TDB}</li>
57: * <li>{@link #SDB} - SDB storage is currently not supported (and probably won't be, since SDB development has stopped)</li>
58: * </ul>
59: */
60: public static final String JENA_STORAGE_TYPE = "cz.cvut.kbss.ontodriver.jena.storage";
61:
62: /**
63: * Plain file storage.
64: *
65: * @see #JENA_STORAGE_TYPE
66: */
67: public static final String FILE = "file";
68:
69: /**
70: * In-memory storage.
71: *
72: * @see #JENA_STORAGE_TYPE
73: */
74: public static final String IN_MEMORY = "in-memory";
75:
76: /**
77: * Jena TDB storage.
78: *
79: * @see #JENA_STORAGE_TYPE
80: */
81: public static final String TDB = "tdb";
82:
83: /**
84: * Jena SDB storage.
85: *
86: * @see #JENA_STORAGE_TYPE
87: */
88: @Deprecated
89: public static final String SDB = "sdb";
90:
91: /**
92: * Jena Fuseki server.
93: *
94: * @see #JENA_STORAGE_TYPE
95: */
96: public static final String FUSEKI = "fuseki";
97:
98: /**
99: * Parameter specifying whether the default graph should be treated as union of all the named graphs + the default graph.
100: * <p>
101: * Default graph being a union of all graphs is typical for storages like RDF4J, GraphDB, Virtuoso (querying without
102: * graph queries across all graphs).
103: * <p>
104: * This parameter influences only querying/reading, it has no effect on write operations, which work with the default graph
105: * as is in Jena.
106: */
107: public static final String JENA_TREAT_DEFAULT_GRAPH_AS_UNION = "cz.cvut.kbss.ontodriver.jena.default_graph_as_union";
108:
109: private JenaOntoDriverProperties() {
110: throw new AssertionError();
111: }
112: }