Skip to content

Commit eb356b4

Browse files
authored
Store tripleStore data to initialize store with. (#34)
1 parent fc735ae commit eb356b4

File tree

4 files changed

+13
-5
lines changed

4 files changed

+13
-5
lines changed

data/SysML2data.7z

1.64 MB
Binary file not shown.

org.oasis.oslcop.sysml.oslc-server/src/main/resources/store.properties

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
initialPoolSize=64
22
defaultNamedGraph=urn:x-arq:DefaultGraph
3-
sparqlQueryEndpoint=http://localhost:3030/sysml9/sparql
4-
sparqlUpdateEndpoint=http://localhost:3030/sysml9/update
3+
sparqlQueryEndpoint=http://localhost:3030/ds/sparql
4+
sparqlUpdateEndpoint=http://localhost:3030/ds/update
55

66
#aide Server
77
#sparqlQueryEndpoint=http://sysml2-oslc-dev.intercax.com:8080/fuseki/sysml5/sparql

org.oasis.oslcop.sysml.oslc-server/src/main/webapp/org/oasis/oslcop/projectCommits.jsp

+4-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,10 @@ List<ServiceProvider> serviceProviders = (List<ServiceProvider>) request.getAttr
7474
<%
7575
String[] split = serviceProvider.getIdentifier().split("/");
7676
String projectId = split[0];
77-
String projectCommitId = split[1];
77+
String projectCommitId = "n/a";
78+
if (split.length > 1) {
79+
projectCommitId = split[1];
80+
}
7881
%>
7982
<li>Project ID: <%=projectId%></li>
8083
<li>Commit ID: <%=projectCommitId%></li>

readme.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,13 @@ Alternatively, do a manual install:
2525
1. this is necessary if changes are made to the classes in the sysml-domain, which the sysml-server depends on.
2626
1. This is also necessary when running for the first time.
2727
2. run `mvn jetty:run-war` on the project `org.oasis.oslcop.sysml.oslc-server-model`
28-
3. If the first time you are running the server, populate the database by calling http://localhost:8085/sysml_oslc_server/oslc/populate
29-
1. If you already have the data in the triplestore, **make sure to select active version via http://localhost:8085/sysml_oslc_server/oslc/store/projectCommits** (WARN: the page will take quite a long time to load).
28+
3. If the first time you are running the server, you need to populate the database with some data. You have 2 alternatives:
29+
1. Populate the data from a Json server (as defined in the properties-file `org.oasis.oslcop.sysml.oslc-server\src\main\resources\jsonServer.properties`)
30+
1. Call http://localhost:8085/sysml_oslc_server/oslc/populate
31+
1. If you already have the data in the triplestore, **make sure to select active version via http://localhost:8085/sysml_oslc_server/oslc/store/projectCommits** (WARN: the page will take quite a long time to load).
32+
1. Populate the data from a triplestore backup file `data\SysML2data.nq`
33+
1. Unzip the file `data\SysML2data.nq`
34+
1. Use Postman to make a POST request to http://localhost:3030/ds/data. Set the request body to be "binary", and select the file `data\SysML2data.nq` as the body.
3035
4. Browse the data starting with the catalog http://localhost:8085/sysml_oslc_server/oslc/catalog/singleton
3136

3237
## Query

0 commit comments

Comments
 (0)