-
Notifications
You must be signed in to change notification settings - Fork 14
/
OntoDriverProperties.java
80 lines (70 loc) · 3.26 KB
/
OntoDriverProperties.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/**
* Copyright (C) 2019 Czech Technical University in Prague
* <p>
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
* License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later
* version.
* <p>
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
* details. You should have received a copy of the GNU General Public License along with this program. If not, see
* <http://www.gnu.org/licenses/>.
*/
package cz.cvut.kbss.ontodriver.config;
public final class OntoDriverProperties {
/**
* Property for setting default auto-commit strategy for connections.
*/
public static final String CONNECTION_AUTO_COMMIT = "cz.cvut.kbss.ontodriver.connection-auto-commit";
/**
* Username to be used when accessing data source.
*/
public static final String DATA_SOURCE_USERNAME = "cz.cvut.jopa.dataSource.username";
/**
* Password to be used when accessing data source.
*/
public static final String DATA_SOURCE_PASSWORD = "cz.cvut.jopa.dataSource.password";
/**
* Reasoner factory class property.
* <p>
* Applies to OntoDriver implementations which support selection of reasoner factory class, which are currently OWL
* API and Jena.
*/
public static final String REASONER_FACTORY_CLASS = "cz.cvut.jopa.reasonerFactoryClass";
/**
* Ontology language property.
*
* @deprecated Ontology language should be set at persistence unit level. The driver uses language specified per
* {@link cz.cvut.kbss.ontodriver.model.Assertion}.
*/
@Deprecated
public static final String ONTOLOGY_LANGUAGE = "cz.cvut.jopa.lang";
/**
* This setting tells the driver whether to use the transactional ontology for retrieving entities and answering
* queries.
* <p>
* If so, uncommitted changes made during transaction will be included in query evaluation, entity retrieval etc.
* Otherwise the driver will use the ontology as it was when the transaction was started and uncommitted changes
* will not be visible until commit.
*/
public static final String USE_TRANSACTIONAL_ONTOLOGY = "cz.cvut.kbss.ontodriver.use-transactional-onto";
/**
* Property for specifying extra URIs which should be added to the module extraction signature.
* <p>
* The module extraction signature is generated from metamodel, but
* <i>types</i> and <i>properties</i> cannot be determined from the
* metamodel. Therefore it is possible to specify them using this property so that the module is complete.
*/
public static final String MODULE_EXTRACTION_SIGNATURE = "cz.cvut.kbss.ontodriver.module-signature";
/**
* Property representing module extraction signature delimiter.
* <p>
* I. e. URIs in module extraction signature are delimited by this string.
*
* @see #MODULE_EXTRACTION_SIGNATURE
*/
public static final String SIGNATURE_DELIMITER = "|";
private OntoDriverProperties() {
throw new AssertionError();
}
}