1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package com.ontotext.ordi.tripleset;
19
20 import com.ontotext.ordi.DataSource;
21 import com.ontotext.ordi.exception.ORDIException;
22
23 /**
24 * Factory for connections to tripleset data model.
25 *
26 * @author vassil
27 *
28 */
29 public interface TSource extends DataSource {
30
31 /**
32 * Create new connection with default values.
33 *
34 * @return connection to triplset model.
35 */
36 public TConnection getConnection();
37
38 /**
39 * Creates a new connection with specified user name and password.
40 *
41 * @param user
42 * name to be used.
43 * @param pass
44 * of the specified user.
45 * @return connection to tripleset data model.
46 * @throws ORDIException
47 */
48 public TConnection getConnection(String user, String pass);
49
50 /**
51 * Get factory object that can be used to construct URI, Literals and
52 * BNodes.
53 *
54 * @return factory object.
55 */
56 public abstract TFactory getTriplesetFactory();
57
58 }