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