1 package com.ontotext.ordi.wsmo4rdf.remote.server;
2
3 import java.util.List;
4
5 import org.openrdf.query.MalformedQueryException;
6 import org.wsmo.common.exception.SynchronisationException;
7
8 import com.ontotext.ordi.exception.ORDIException;
9 import com.ontotext.ordi.wsmo4rdf.remote.exception.NonExistingEntryException;
10 import com.ontotext.ordi.wsmo4rdf.remote.exception.OrdiConfigurationException;
11 import com.ontotext.ordi.wsmo4rdf.remote.exception.UnmarshalException;
12
13 /**
14 * Provides functionality of a
15 * {@link com.ontotext.ordi.wsmo4rdf.WsmoSource WsmoConnection} remotely. An integer
16 * identifier specifies which <code>WsmoConnection</code> instance is used.
17 *
18 * @author mihail.konstantinov@ontotext.com
19 *
20 * @see com.ontotext.ordi.wsmo4rdf.WsmoSource
21 */
22 @javax.jws.WebService
23 public interface WsmoConnectionService {
24
25
26
27
28 public String evaluate(int connectionId, String query)
29 throws MalformedQueryException, NonExistingEntryException, OrdiConfigurationException;
30
31
32
33
34 public String getDescription(int connectionId) throws NonExistingEntryException;
35
36 public void setDescription(int connectionId, String desc) throws NonExistingEntryException;
37
38 public String getVersion(int connectionId) throws SynchronisationException, NonExistingEntryException;
39
40
41 public void addOntology(int connectionId, String ont) throws SynchronisationException, NonExistingEntryException, UnmarshalException;
42
43 public String getOntology(int connectionId, String id) throws SynchronisationException, NonExistingEntryException;
44
45 public void deleteOntology(int connectionId, String id) throws SynchronisationException, NonExistingEntryException;
46
47 public List<String> listOntologies(int connectionId) throws SynchronisationException, NonExistingEntryException;
48
49 public void saveOntology(int connectionId, String ont) throws SynchronisationException, NonExistingEntryException, UnmarshalException;
50
51
52 public void addGoal(int connectionId, String goal)
53 throws SynchronisationException, UnmarshalException, NonExistingEntryException;
54
55 public String getGoal(int connectionId, String iri)
56 throws SynchronisationException, NonExistingEntryException;
57
58 public void deleteGoal(int connectionId, String iri)
59 throws SynchronisationException, NonExistingEntryException;
60
61 public List<String> listGoals(int connectionId)
62 throws SynchronisationException, NonExistingEntryException;
63
64 public void saveGoal(int connectionId, String goal)
65 throws SynchronisationException, UnmarshalException, NonExistingEntryException;
66
67 public void addWebService(int connectionId, String webServiceAsString)
68 throws SynchronisationException, NonExistingEntryException, UnmarshalException;
69
70 public void saveWebService(int connectionId, String webServiceAsString)
71 throws SynchronisationException, NonExistingEntryException, UnmarshalException;
72
73 public String getWebService(int connectionId, String iriAsString)
74 throws SynchronisationException, NonExistingEntryException;
75
76 public void deleteWebService(int connectionId, String iriAsString)
77 throws SynchronisationException, NonExistingEntryException;
78
79 public List<String> listWebServices(int connectionId)
80 throws SynchronisationException, NonExistingEntryException;
81
82 public void addMediator(int connectionId, String mediatorAsString)
83 throws SynchronisationException, NonExistingEntryException, UnmarshalException;
84
85 public void saveMediator(int connectionId, String mediatorAsString)
86 throws SynchronisationException, NonExistingEntryException, UnmarshalException;
87
88 public String getMediator(int connectionId, String iriAsString)
89 throws SynchronisationException, NonExistingEntryException;
90
91 public void deleteMediator(int connectionId, String iriAsString)
92 throws SynchronisationException, NonExistingEntryException;
93
94 public List<String> listMediators(int connectionId)
95 throws SynchronisationException, NonExistingEntryException;
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117 public boolean isAutoCommit(int connectionId)
118 throws NonExistingEntryException;
119
120 public void setAutoCommit(int connectionId, boolean mode)
121 throws ORDIException, NonExistingEntryException;
122
123 public void rollback(int connectionId) throws ORDIException,
124 NonExistingEntryException;
125
126 public void commit(int connectionId) throws ORDIException,
127 NonExistingEntryException;
128
129
130
131
132
133
134
135
136
137
138
139
140 public boolean isReadOnly(int connectionId)
141 throws NonExistingEntryException;
142
143 public boolean isOpen(int connectionId) throws NonExistingEntryException;
144
145 public void close(int connectionId) throws ORDIException,
146 NonExistingEntryException;
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168 public void clearWarnings(int connectionId)
169 throws NonExistingEntryException;
170
171
172
173
174
175
176 }