Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store tripleStore data to initialize store with. #34

Merged
merged 1 commit into from
Aug 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added data/SysML2data.7z
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
initialPoolSize=64
defaultNamedGraph=urn:x-arq:DefaultGraph
sparqlQueryEndpoint=http://localhost:3030/sysml9/sparql
sparqlUpdateEndpoint=http://localhost:3030/sysml9/update
sparqlQueryEndpoint=http://localhost:3030/ds/sparql
sparqlUpdateEndpoint=http://localhost:3030/ds/update

#aide Server
#sparqlQueryEndpoint=http://sysml2-oslc-dev.intercax.com:8080/fuseki/sysml5/sparql
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@ List<ServiceProvider> serviceProviders = (List<ServiceProvider>) request.getAttr
<%
String[] split = serviceProvider.getIdentifier().split("/");
String projectId = split[0];
String projectCommitId = split[1];
String projectCommitId = "n/a";
if (split.length > 1) {
projectCommitId = split[1];
}
%>
<li>Project ID: <%=projectId%></li>
<li>Commit ID: <%=projectCommitId%></li>
Expand Down
9 changes: 7 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,13 @@ Alternatively, do a manual install:
1. this is necessary if changes are made to the classes in the sysml-domain, which the sysml-server depends on.
1. This is also necessary when running for the first time.
2. run `mvn jetty:run-war` on the project `org.oasis.oslcop.sysml.oslc-server-model`
3. If the first time you are running the server, populate the database by calling http://localhost:8085/sysml_oslc_server/oslc/populate
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).
3. If the first time you are running the server, you need to populate the database with some data. You have 2 alternatives:
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`)
1. Call http://localhost:8085/sysml_oslc_server/oslc/populate
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).
1. Populate the data from a triplestore backup file `data\SysML2data.nq`
1. Unzip the file `data\SysML2data.nq`
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.
4. Browse the data starting with the catalog http://localhost:8085/sysml_oslc_server/oslc/catalog/singleton

## Query
Expand Down