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