Skip to content
This repository was archived by the owner on Apr 22, 2022. It is now read-only.

Commit 98a4301

Browse files
committed
fixed graphs refresh and store of xml jobs in the triple store
1 parent 3f19055 commit 98a4301

File tree

16 files changed

+464
-419
lines changed

16 files changed

+464
-419
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package ApplicationExceptions;
2+
3+
public class ResourceNotFoundException extends Exception {
4+
/**
5+
*
6+
*/
7+
private static final long serialVersionUID = 1L;
8+
9+
public ResourceNotFoundException(String message) {
10+
super(message);
11+
}
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package ApplicationExceptions;
2+
3+
public class UnknownException extends Exception {
4+
/**
5+
*
6+
*/
7+
private static final long serialVersionUID = 1L;
8+
9+
public UnknownException(String message) {
10+
super(message);
11+
}
12+
}

src/main/java/com/ontos/ldiw/vocabulary/LDIWO.java

Lines changed: 44 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
import com.hp.hpl.jena.rdf.model.Resource;
88

99
/**
10-
* Vocabulary definitions from framework-ontology.ttl
10+
* Vocabulary definitions from framework-ontology-0.1.1.ttl
1111
*
12-
* @author Auto-generated by schemagen on 02 Sep 2014 10:31
12+
* @author Auto-generated by schemagen on 02 Dec 2014 11:39
1313
*/
1414
public class LDIWO {
1515
/**
@@ -34,7 +34,7 @@ public class LDIWO {
3434
* @see #NS
3535
*/
3636
public static String getURI() {
37-
return NS;
37+
return NS;
3838
}
3939

4040
/**
@@ -49,27 +49,27 @@ public static String getURI() {
4949
* The ontology's owl:versionInfo as a string
5050
* </p>
5151
*/
52-
public static final String VERSION_INFO = "0.1.0";
52+
public static final String VERSION_INFO = "0.1.1";
5353

5454
public static final Property dbHost = m_model
55-
.createProperty("http://ldiw.ontos.com/ontology/dbHost");
55+
.createProperty("http://ldiw.ontos.com/ontology/dbHost");
5656

5757
/**
5858
* <p>
5959
* Name of the database to connect
6060
* </p>
6161
*/
6262
public static final Property dbName = m_model
63-
.createProperty("http://ldiw.ontos.com/ontology/dbName");
63+
.createProperty("http://ldiw.ontos.com/ontology/dbName");
6464

6565
public static final Property dbPassword = m_model
66-
.createProperty("http://ldiw.ontos.com/ontology/dbPassword");
66+
.createProperty("http://ldiw.ontos.com/ontology/dbPassword");
6767

6868
public static final Property dbPort = m_model
69-
.createProperty("http://ldiw.ontos.com/ontology/dbPort");
69+
.createProperty("http://ldiw.ontos.com/ontology/dbPort");
7070

7171
public static final Property dbType = m_model
72-
.createProperty("http://ldiw.ontos.com/ontology/dbType");
72+
.createProperty("http://ldiw.ontos.com/ontology/dbType");
7373

7474
/**
7575
* <p>
@@ -78,94 +78,99 @@ public static String getURI() {
7878
* </p>
7979
*/
8080
public static final Property dbUser = m_model
81-
.createProperty("http://ldiw.ontos.com/ontology/dbUser");
81+
.createProperty("http://ldiw.ontos.com/ontology/dbUser");
8282

8383
public static final Property endpoint = m_model
84-
.createProperty("http://ldiw.ontos.com/ontology/endpoint");
84+
.createProperty("http://ldiw.ontos.com/ontology/endpoint");
8585

8686
public static final Property isAllowedToUseService = m_model
87-
.createProperty("http://ldiw.ontos.com/ontology/isAllowedToUseService");
87+
.createProperty("http://ldiw.ontos.com/ontology/isAllowedToUseService");
8888

8989
/**
9090
* <p>
9191
* Role is used as default for newly registered user
9292
* </p>
9393
*/
9494
public static final Property isDefault = m_model
95-
.createProperty("http://ldiw.ontos.com/ontology/isDefault");
95+
.createProperty("http://ldiw.ontos.com/ontology/isDefault");
9696

9797
/**
9898
* <p>
9999
* Role is used as default for not logged in user
100100
* </p>
101101
*/
102102
public static final Property isNotLoggedIn = m_model
103-
.createProperty("http://ldiw.ontos.com/ontology/isNotLoggedIn");
103+
.createProperty("http://ldiw.ontos.com/ontology/isNotLoggedIn");
104104

105105
/**
106106
* <p>
107107
* JDBC data source name.
108108
* </p>
109109
*/
110110
public static final Property jdbcDSN = m_model
111-
.createProperty("http://ldiw.ontos.com/ontology/jdbcDSN");
111+
.createProperty("http://ldiw.ontos.com/ontology/jdbcDSN");
112112

113113
public static final Property jdbcDriver = m_model
114-
.createProperty("http://ldiw.ontos.com/ontology/jdbcDriver");
114+
.createProperty("http://ldiw.ontos.com/ontology/jdbcDriver");
115115

116116
/**
117117
* <p>
118118
* ODBC DSN
119119
* </p>
120120
*/
121121
public static final Property odbcDSN = m_model
122-
.createProperty("http://ldiw.ontos.com/ontology/odbcDSN");
122+
.createProperty("http://ldiw.ontos.com/ontology/odbcDSN");
123123

124124
public static final Property partialUrl = m_model
125-
.createProperty("http://ldiw.ontos.com/ontology/partialUrl");
125+
.createProperty("http://ldiw.ontos.com/ontology/partialUrl");
126126

127127
/**
128128
* <p>
129129
* Workbench account password hash
130130
* </p>
131131
*/
132132
public static final Property passwordSha1Hash = m_model
133-
.createProperty("http://ldiw.ontos.com/ontology/passwordSha1Hash");
133+
.createProperty("http://ldiw.ontos.com/ontology/passwordSha1Hash");
134134

135135
public static final Property rdfStorePassword = m_model
136-
.createProperty("http://ldiw.ontos.com/ontology/rdfStorePassword");
136+
.createProperty("http://ldiw.ontos.com/ontology/rdfStorePassword");
137137

138138
public static final Property rdfStoreUsername = m_model
139-
.createProperty("http://ldiw.ontos.com/ontology/rdfStoreUsername");
139+
.createProperty("http://ldiw.ontos.com/ontology/rdfStoreUsername");
140140

141141
public static final Property requiredService = m_model
142-
.createProperty("http://ldiw.ontos.com/ontology/requiredService");
142+
.createProperty("http://ldiw.ontos.com/ontology/requiredService");
143143

144144
public static final Property role = m_model
145-
.createProperty("http://ldiw.ontos.com/ontology/role");
145+
.createProperty("http://ldiw.ontos.com/ontology/role");
146146

147147
public static final Property sessionToken = m_model
148-
.createProperty("http://ldiw.ontos.com/ontology/sessionToken");
148+
.createProperty("http://ldiw.ontos.com/ontology/sessionToken");
149149

150150
public static final Property settingsGraph = m_model
151-
.createProperty("http://ldiw.ontos.com/ontology/settingsGraph");
151+
.createProperty("http://ldiw.ontos.com/ontology/settingsGraph");
152+
153+
public static final Property xmlDefinition = m_model
154+
.createProperty("http://ldiw.ontos.com/ontology/xmlDefinition");
152155

153156
/**
154157
* <p>
155158
* Account for the workbench
156159
* </p>
157160
*/
158161
public static final Resource Account = m_model
159-
.createResource("http://ldiw.ontos.com/ontology/Account");
162+
.createResource("http://ldiw.ontos.com/ontology/Account");
160163

161164
public static final Resource DataSource = m_model
162-
.createResource("http://ldiw.ontos.com/ontology/DataSource");
165+
.createResource("http://ldiw.ontos.com/ontology/DataSource");
163166

164167
public static final Resource Database = m_model
165-
.createResource("http://ldiw.ontos.com/ontology/Database");
168+
.createResource("http://ldiw.ontos.com/ontology/Database");
166169

167170
public static final Resource DatabaseType = m_model
168-
.createResource("http://ldiw.ontos.com/ontology/DatabaseType");
171+
.createResource("http://ldiw.ontos.com/ontology/DatabaseType");
172+
173+
public static final Resource Job = m_model.createResource("http://ldiw.ontos.com/ontology/Job");
169174

170175
/**
171176
* <p>
@@ -174,33 +179,33 @@ public static String getURI() {
174179
* </p>
175180
*/
176181
public static final Resource Role = m_model
177-
.createResource("http://ldiw.ontos.com/ontology/Role");
182+
.createResource("http://ldiw.ontos.com/ontology/Role");
178183

179184
public static final Resource RouteRestriction = m_model
180-
.createResource("http://ldiw.ontos.com/ontology/RouteRestriction");
185+
.createResource("http://ldiw.ontos.com/ontology/RouteRestriction");
181186

182187
public static final Resource SPARQLEndpoint = m_model
183-
.createResource("http://ldiw.ontos.com/ontology/SPARQLEndpoint");
188+
.createResource("http://ldiw.ontos.com/ontology/SPARQLEndpoint");
184189

185190
public static final Resource Administrator = m_model
186-
.createResource("http://ldiw.ontos.com/ontology/Administrator");
191+
.createResource("http://ldiw.ontos.com/ontology/Administrator");
187192

188193
public static final Resource BasicUser = m_model
189-
.createResource("http://ldiw.ontos.com/ontology/BasicUser");
194+
.createResource("http://ldiw.ontos.com/ontology/BasicUser");
190195

191196
public static final Resource IBM_DB2 = m_model
192-
.createResource("http://ldiw.ontos.com/ontology/IBM_DB2");
197+
.createResource("http://ldiw.ontos.com/ontology/IBM_DB2");
193198

194199
public static final Resource MicrosoftSQLServer = m_model
195-
.createResource("http://ldiw.ontos.com/ontology/MicrosoftSQLServer");
200+
.createResource("http://ldiw.ontos.com/ontology/MicrosoftSQLServer");
196201

197202
public static final Resource MySQL = m_model
198-
.createResource("http://ldiw.ontos.com/ontology/MySQL");
203+
.createResource("http://ldiw.ontos.com/ontology/MySQL");
199204

200205
public static final Resource OracleSpatial = m_model
201-
.createResource("http://ldiw.ontos.com/ontology/OracleSpatial");
206+
.createResource("http://ldiw.ontos.com/ontology/OracleSpatial");
202207

203208
public static final Resource PostGIS = m_model
204-
.createResource("http://ldiw.ontos.com/ontology/PostGIS");
209+
.createResource("http://ldiw.ontos.com/ontology/PostGIS");
205210

206211
}

0 commit comments

Comments
 (0)