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) 2016 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: private OntoDriverProperties() {
20: throw new AssertionError();
21: }
22:
23: /**
24: * Property for setting default auto-commit strategy for connections.
25: */
26: public static final String CONNECTION_AUTO_COMMIT = "cz.cvut.kbss.ontodriver.connection-auto-commit";
27:
28: /**
29: * Username to be used when accessing data source.
30: */
31: public static final String DATA_SOURCE_USERNAME = "cz.cvut.jopa.dataSource.username";
32:
33: /**
34: * Password to be used when accessing data source.
35: */
36: public static final String DATA_SOURCE_PASSWORD = "cz.cvut.jopa.dataSource.password";
37:
38: /**
39: * Reasoner factory class property.
40: */
41: public static final String OWLAPI_REASONER_FACTORY_CLASS = "cz.cvut.jopa.reasonerFactoryClass";
42:
43: /**
44: * Ontology language property.
45: */
46: public static final String ONTOLOGY_LANGUAGE = "cz.cvut.jopa.lang";
47:
48: /**
49: * This setting tells the driver whether to use the transactional ontology
50: * for retrieving entities and answering queries.
51: * <p>
52: * If so, uncommitted changes made during transaction will be included in
53: * query evaluation, entity retrieval etc. Otherwise the driver will use the
54: * ontology as it was when the transaction was started and uncommitted
55: * changes will not be visible until commit.
56: */
57: public static final String USE_TRANSACTIONAL_ONTOLOGY = "cz.cvut.kbss.ontodriver.use-transactional-onto";
58:
59: /**
60: * Property for specifying extra URIs which should be added to the module
61: * extraction signature.
62: * <p>
63: * The module extraction signature is generated from metamodel, but
64: * <i>types</i> and <i>properties</i> cannot be determined from the
65: * metamodel. Therefore it is possible to specify them using this property
66: * 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: }