Skip to content

Package: OntoDriverProperties

OntoDriverProperties

nameinstructionbranchcomplexitylinemethod
OntoDriverProperties()
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) 2020 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.config;
16:
17: public final class OntoDriverProperties {
18:
19: /**
20: * Property for setting default auto-commit strategy for connections.
21: */
22: public static final String CONNECTION_AUTO_COMMIT = "cz.cvut.kbss.ontodriver.connection-auto-commit";
23:
24: /**
25: * Username to be used when accessing data source.
26: */
27: public static final String DATA_SOURCE_USERNAME = "cz.cvut.jopa.dataSource.username";
28:
29: /**
30: * Password to be used when accessing data source.
31: */
32: public static final String DATA_SOURCE_PASSWORD = "cz.cvut.jopa.dataSource.password";
33:
34: /**
35: * Reasoner factory class property.
36: * <p>
37: * Applies to OntoDriver implementations which support selection of reasoner factory class, which are currently OWL
38: * API and Jena.
39: */
40: public static final String REASONER_FACTORY_CLASS = "cz.cvut.jopa.reasonerFactoryClass";
41:
42: /**
43: * Ontology language property.
44: *
45: * @deprecated Ontology language should be set at persistence unit level. The driver uses language specified per
46: * {@link cz.cvut.kbss.ontodriver.model.Assertion}.
47: */
48: @Deprecated
49: public static final String ONTOLOGY_LANGUAGE = "cz.cvut.jopa.lang";
50:
51: /**
52: * This setting tells the driver whether to use the transactional ontology for retrieving entities and answering
53: * queries.
54: * <p>
55: * If so, uncommitted changes made during transaction will be included in query evaluation, entity retrieval etc.
56: * Otherwise the driver will use the ontology as it was when the transaction was started and uncommitted changes
57: * will not be visible until commit.
58: */
59: public static final String USE_TRANSACTIONAL_ONTOLOGY = "cz.cvut.kbss.ontodriver.use-transactional-onto";
60:
61: /**
62: * Property for specifying extra URIs which should be added to the module extraction signature.
63: * <p>
64: * The module extraction signature is generated from metamodel, but
65: * <i>types</i> and <i>properties</i> cannot be determined from the
66: * metamodel. Therefore it is possible to specify them using this property so that the module is complete.
67: */
68: public static final String MODULE_EXTRACTION_SIGNATURE = "cz.cvut.kbss.ontodriver.module-signature";
69:
70: /**
71: * Property representing module extraction signature delimiter.
72: * <p>
73: * I. e. URIs in module extraction signature are delimited by this string.
74: *
75: * @see #MODULE_EXTRACTION_SIGNATURE
76: */
77: public static final String SIGNATURE_DELIMITER = "|";
78:
79: private OntoDriverProperties() {
80: throw new AssertionError();
81: }
82: }