Skip to content

Commit 3324cfd

Browse files
committed
Merge branch 'development' into 'master'
Merge for v0.3.1 See merge request KNoWS/projects/onto-deside/architecture!42
2 parents af63fca + c12505b commit 3324cfd

73 files changed

Lines changed: 1413 additions & 1092 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
# files created from a template
1313
/actors/*/nginx/conf.d/default.conf
1414
/actors/viewer/setup/src/config.json
15-
/common/css-01.json
1615
/docker-compose*.yml
17-
/scripts/cert/main.sh
1816
/scripts/comunica/settings.json
1917
/scripts/comunica/queries/*.sparql
2018
/scripts/stuff-pods/extended-textile/mapping.yml

CHANGELOG.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,22 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
77

88
## [Unreleased]
99

10+
## [0.3.1] - 2024-10-16
11+
12+
### Added
13+
14+
- Queries with indirect sources make use of link traversal capabilities of the viewer (internal [issue#57](https://gitlab.ilabt.imec.be/KNoWS/projects/onto-deside/architecture/-/issues/57)).
15+
- Logged in users can save their custom queries in a pod now (internal [issue#58](https://gitlab.ilabt.imec.be/KNoWS/projects/onto-deside/architecture/-/issues/58)).
16+
- Changed URL composition from `https://<service>.onto-deside.ilabt.imec.be` to `https://onto-deside.ilabt.imec.be/<service>` (internal [issue#60](https://gitlab.ilabt.imec.be/KNoWS/projects/onto-deside/architecture/-/issues/60)).
17+
18+
### Fixed
19+
20+
- Parent container of pod roots is no longer writable by everyone (internal [issue#59](https://gitlab.ilabt.imec.be/KNoWS/projects/onto-deside/architecture/-/issues/59)).
21+
22+
### Changed
23+
24+
- Upgraded the viewer to [its v1.4.1](https://github.com/SolidLabResearch/generic-data-viewer-react-admin/tree/v1.4.1).
25+
1026
## [0.3.0] - 2024-08-08
1127

1228
### Added
@@ -128,4 +144,5 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
128144
[0.2.3]: https://github.com/KNowledgeOnWebScale/open-circularity-platform/releases/tag/v0.2.3
129145
[0.2.4]: https://github.com/KNowledgeOnWebScale/open-circularity-platform/releases/tag/v0.2.4
130146
[0.3.0]: https://github.com/KNowledgeOnWebScale/open-circularity-platform/releases/tag/v0.3.0
131-
[Unreleased]: https://github.com/KNowledgeOnWebScale/open-circularity-platform/compare/v0.3.0...HEAD
147+
[0.3.1]: https://github.com/KNowledgeOnWebScale/open-circularity-platform/releases/tag/v0.3.1
148+
[Unreleased]: https://github.com/KNowledgeOnWebScale/open-circularity-platform/compare/v0.3.1...HEAD

README.md

Lines changed: 24 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,6 @@
2323
* [Using the public Docker based setup case](#using-the-public-docker-based-setup-case)
2424
* [Bonus: local Generic Data Viewer for querying public pods](#bonus-local-generic-data-viewer-for-querying-public-pods)
2525
* [Stopping the public Docker based setup case](#stopping-the-public-docker-based-setup-case)
26-
* [The private Docker based setup case](#the-private-docker-based-setup-case)
27-
* [Prerequisites for the private Docker based setup case](#prerequisites-for-the-private-docker-based-setup-case)
28-
* [Environment variables for the private Docker based setup case](#environment-variables-for-the-private-docker-based-setup-case)
29-
* [Building the private Docker based setup case](#building-the-private-docker-based-setup-case)
30-
* [Running the private Docker based setup case](#running-the-private-docker-based-setup-case)
31-
* [Using the private Docker based setup case](#using-the-private-docker-based-setup-case)
32-
* [Stopping the private Docker based setup case](#stopping-the-private-docker-based-setup-case)
3326
* [Other documentation resources](#other-documentation-resources)
3427

3528
## Introduction
@@ -65,7 +58,7 @@ The final setup is available online and needs no further action prior to usage.
6558

6659
### Using the included Generic Data Viewer
6760

68-
To use this Generic Data Viewer, navigate to <https://viewer.onto-deside.ilabt.imec.be/>.
61+
To use this Generic Data Viewer, navigate to <https://onto-deside.ilabt.imec.be/viewer/>.
6962

7063
The list of predefined queries is shown in expandible groups at the left side.
7164

@@ -78,21 +71,21 @@ To login, click on the icon in the top right.
7871
To execute a query, click on it in the dashboard.
7972

8073
[This screenshot](doc/img/texon-components-materials.png) shows the result of a query about Texon's components and materials.
81-
The result shown was obtained when logged in to identity provider `https://css5.onto-deside.ilabt.imec.be` as `info@texon.com`.
74+
The result shown was obtained when logged in to identity provider `https://onto-deside.ilabt.imec.be/css5` as `info@texon.com`.
8275

8376
### Using the included Comunica Webclient
8477

8578
> This Comunica Webclient is intended for viewing low level details of the results of some predefined queries or for experimenting with new queries derived from these predefined queries.
8679
87-
To use this Comunica Webclient, navigate to <https://webclient.onto-deside.ilabt.imec.be/>.
80+
To use this Comunica Webclient, navigate to <https://onto-deside.ilabt.imec.be/webclient/>.
8881

8982
Some predefined queries are available in the *Type or pick a query:* field.
9083

9184
The above remark about queries vs. logging in applies here too.
9285

9386
The login dialogue is available after clicking the *Settings asterisk* (top right.)
9487

95-
[This screenshot](doc/img/query-lindner-group-products.png) demonstrates querying Lindner Group's products. The result shown was obtained when logged in to identity provider `https://css1.onto-deside.ilabt.imec.be` as `info@lindner-group.com`.
88+
[This screenshot](doc/img/query-lindner-group-products.png) demonstrates querying Lindner Group's products. The result shown was obtained when logged in to identity provider `https://onto-deside.ilabt.imec.be/css1` as `info@lindner-group.com`.
9689

9790
#### Adding a Solid pod to the list of datasources for a query
9891

@@ -157,11 +150,19 @@ yarn install
157150

158151
#### Running the localhost setup case
159152

153+
Run with new pod contents (mandatory for first run):
154+
160155
```bash
161156
./scripts/local-run/start-csss.sh
162157
```
163158

164-
The command above starts the pods on the localhost in the background and waits until they are all ready (listening).
159+
Re-run with existing pod contents (requires a previous run and stop):
160+
161+
```bash
162+
./scripts/local-run/start-csss.sh -r
163+
```
164+
165+
The commands above start the pods on the localhost in the background and wait until they are all ready (listening).
165166
This takes some time to complete.
166167

167168
The pods log files can be consulted at `./local-run/*.log`.
@@ -189,7 +190,7 @@ Using the localhost setup case is similar to [using the final setup](#using-the-
189190
* needs to be started as follows in a separate terminal window:
190191

191192
```bash
192-
cd ../applied-in-architecture-generic-data-viewer-react-admin
193+
cd ../applied-in-architecture-generic-data-viewer-react-admin/main
193194
npm run dev
194195
```
195196

@@ -236,14 +237,22 @@ yarn install
236237
237238
#### Running the public Docker based setup case
238239
240+
Run with new pod contents (mandatory for first run):
241+
239242
```bash
240243
docker compose --profile backend --profile frontend --profile extra-pod up --wait
241244
```
242245
243-
The command above starts all services in a Docker environment and and waits until they are all ready (listening).
246+
Re-run with existing pod contents (requires a previous run and stop):
247+
248+
```bash
249+
docker compose -f docker-compose-public-restart.yml --profile backend --profile frontend --profile extra-pod up --wait
250+
```
251+
252+
The commands above start all services in a Docker environment and and wait until they are all ready (listening).
244253
This takes some time to complete.
245254
246-
Optional: if you're interested in what's happening while the previous command executes, you may open a new terminal window and in it, execute:
255+
Optional: if you're interested in what's happening while these commands execute, you may open a new terminal window and in it, execute:
247256
248257
```bash
249258
docker compose --profile backend --profile frontend --profile extra-pod logs -f
@@ -277,57 +286,6 @@ For more info, see [The modified Generic Data Viewer](./doc/DEVELOPERS.md#the-mo
277286
docker compose --profile backend --profile frontend --profile extra-pod down -t 0
278287
```
279288
280-
### The private Docker based setup case
281-
282-
#### Prerequisites for the private Docker based setup case
283-
284-
* a bash shell
285-
* Node >= 18 with npm
286-
* [yarn classic](https://classic.yarnpkg.com/lang/en/)
287-
* Java version 17, e.g. 17.0.10-tem
288-
* [Docker Engine](https://docs.docker.com/engine/) and [Docker Compose](https://docs.docker.com/compose/)
289-
* Depending on your platform, different installation guides are available from the above links.
290-
* [OpenSSL](https://www.openssl.org/source/)
291-
* Installation depends on your platform. On Linux (especially on Ubuntu 20.04 LTS), if it is not yet installed, execute `sudo apt install openssl`.
292-
293-
#### Environment variables for the private Docker based setup case
294-
295-
Execute this command in any terminal window, before executing any other command in the remainder of this section:
296-
297-
```bash
298-
source env-docker-private
299-
```
300-
301-
#### Building the private Docker based setup case
302-
303-
Before continuing, make sure the result of a previous build isn't running. See [Stopping the private Docker based setup case](#stopping-the-private-docker-based-setup-case).
304-
305-
Next, execute:
306-
307-
```bash
308-
# install node dependencies
309-
yarn install
310-
# all further build actions
311-
./scripts/setup/finalize-setup.sh
312-
```
313-
314-
#### Running the private Docker based setup case
315-
316-
Same instructions as for [Running the public Docker based setup case](#running-the-public-docker-based-setup-case).
317-
318-
#### Using the private Docker based setup case
319-
320-
Using the private Docker based setup case is similar to [using the final setup](#using-the-final-setup), with the following differences:
321-
322-
* Navigate to <http://localhost:5800>, to reach the integrated Firefox container, which has access to the resources in the Docker network.
323-
* Let the integrated Firefox browser trust our self-made Certificate Authority: follow the instructions in the [Setup section of FIREFOX_CONTAINER.md](doc/FIREFOX_CONTAINER.md#setup).
324-
* All further navigation is to be done from the integrated Firefox browser, with URLs identical to the those in the final setup.
325-
* The queries for the additional use cases won't work here, because there is no solution to add pod contents for these use cases.
326-
327-
#### Stopping the private Docker based setup case
328-
329-
Same instructions as for [Stopping the public Docker based setup case](#stopping-the-public-docker-based-setup-case).
330-
331289
## Other documentation resources
332290
333291
* [Overview of actors' WebIDs, emails and passwords](doc/ACTORS_OVERVIEW.md)

actors/viewer/nginx/conf.d/default.conf.template

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
server {
2-
listen ${OD_VIEWER_CONTAINER_PORT} ${OD_VIEWER_SSL};
2+
listen ${OD_VIEWER_CONTAINER_PORT};
33

4-
server_name ${OD_VIEWER_SERVER_NAME};
5-
6-
${OD_VIEWER_SSL_CERT_LINE}
7-
${OD_VIEWER_SSL_CERT_KEY_LINE}
4+
server_name ${OD_VIEWER};
85

96
location / {
107
root /usr/share/nginx/html;

actors/viewer/setup/src/config.json.template

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@
329329
"name": "Overview",
330330
"description": "All products with the data points selected for this evaluation",
331331
"sourcesIndex": {
332-
"url": "${OD_CSS11_BASE_URL}/electronics_user9/ceon-electronics/index",
332+
"url": "${OD_CSS11_BASE_URL}/electronics_user9/ceon/index",
333333
"queryLocation": "sourceQueries/seeAlso.rq"
334334
}
335335
},
@@ -343,7 +343,7 @@
343343
"queryLocations": ["variableQueries/electronics_product_labels.rq"]
344344
},
345345
"sourcesIndex": {
346-
"url": "${OD_CSS11_BASE_URL}/electronics_user9/ceon-electronics/index",
346+
"url": "${OD_CSS11_BASE_URL}/electronics_user9/ceon/index",
347347
"queryLocation": "sourceQueries/seeAlso.rq"
348348
}
349349
},
@@ -357,7 +357,7 @@
357357
"queryLocations": ["variableQueries/electronics_product_labels.rq"]
358358
},
359359
"sourcesIndex": {
360-
"url": "${OD_CSS11_BASE_URL}/electronics_user9/ceon-electronics/index",
360+
"url": "${OD_CSS11_BASE_URL}/electronics_user9/ceon/index",
361361
"queryLocation": "sourceQueries/seeAlso.rq"
362362
}
363363
},
@@ -371,7 +371,7 @@
371371
"queryLocations": ["variableQueries/electronics_product_labels.rq"]
372372
},
373373
"sourcesIndex": {
374-
"url": "${OD_CSS11_BASE_URL}/electronics_user9/ceon-electronics/index",
374+
"url": "${OD_CSS11_BASE_URL}/electronics_user9/ceon/index",
375375
"queryLocation": "sourceQueries/seeAlso.rq"
376376
}
377377
},
@@ -385,7 +385,7 @@
385385
"queryLocations": ["variableQueries/electronics_product_labels.rq"]
386386
},
387387
"sourcesIndex": {
388-
"url": "${OD_CSS11_BASE_URL}/electronics_user9/ceon-electronics/index",
388+
"url": "${OD_CSS11_BASE_URL}/electronics_user9/ceon/index",
389389
"queryLocation": "sourceQueries/seeAlso.rq"
390390
}
391391
},
@@ -396,7 +396,7 @@
396396
"name": "All accessible data",
397397
"description": "All data accessible for the logged in user",
398398
"sourcesIndex": {
399-
"url": "${OD_CSS11_BASE_URL}/electronics_user9/ceon-electronics/index",
399+
"url": "${OD_CSS11_BASE_URL}/electronics_user9/ceon/index",
400400
"queryLocation": "sourceQueries/seeAlso.rq"
401401
}
402402
},
@@ -405,11 +405,9 @@
405405
"queryGroupId": "evaluation-electronics",
406406
"queryLocation": "sourceQueries/seeAlso.rq",
407407
"name": "Sources in electronics network",
408-
"comunicaContext": {
409-
"sources": [
410-
"${OD_CSS11_BASE_URL}/electronics_user9/ceon-electronics/index"
411-
],
412-
"lenient": true
408+
"sourcesIndex": {
409+
"url": "${OD_CSS11_BASE_URL}/electronics_user9/ceon/index",
410+
"queryLocation": "sourceQueries/seeAlso.rq"
413411
}
414412
},
415413
{
@@ -481,11 +479,9 @@
481479
"queryGroupId": "evaluation-textile",
482480
"queryLocation": "sourceQueries/seeAlso.rq",
483481
"name": "Sources in textile network",
484-
"comunicaContext": {
485-
"sources": [
486-
"${OD_CSS11_BASE_URL}/textile_user9/ceon/index"
487-
],
488-
"lenient": true
482+
"sourcesIndex": {
483+
"url": "${OD_CSS11_BASE_URL}/textile_user9/ceon/index",
484+
"queryLocation": "sourceQueries/seeAlso.rq"
489485
}
490486
},
491487
{
@@ -579,11 +575,9 @@
579575
"queryGroupId": "evaluation-construction",
580576
"queryLocation": "sourceQueries/seeAlso.rq",
581577
"name": "Sources in construction network",
582-
"comunicaContext": {
583-
"sources": [
584-
"${OD_CSS11_BASE_URL}/construction_user9/ceon/index"
585-
],
586-
"lenient": true
578+
"sourcesIndex": {
579+
"url": "${OD_CSS11_BASE_URL}/construction_user9/ceon/index",
580+
"queryLocation": "sourceQueries/seeAlso.rq"
587581
}
588582
},
589583
{

actors/webclient/nginx/conf.d/default.conf.template

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
server {
2-
listen ${OD_WEBCLIENT_CONTAINER_PORT} ${OD_WEBCLIENT_SSL};
2+
listen ${OD_WEBCLIENT_CONTAINER_PORT};
33

4-
server_name ${OD_WEBCLIENT_SERVER_NAME};
5-
6-
${OD_WEBCLIENT_SSL_CERT_LINE}
7-
${OD_WEBCLIENT_SSL_CERT_KEY_LINE}
4+
server_name ${OD_WEBCLIENT};
85

96
location / {
107
root /usr/share/nginx/html;
Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"@context": "https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^7.0.0/components/context.jsonld",
33
"import": [
4-
"css:config/app/init/initialize-root.json",
4+
"css:config/app/init/initialize-root-pod.json",
55
"css:config/app/main/default.json",
66
"css:config/app/variables/default.json",
77
"css:config/http/handler/default.json",
88
"css:config/http/middleware/default.json",
99
"css:config/http/notifications/all.json",
10-
"${OD_CSS_SERVER_FACTORY}",
10+
"css:config/http/server-factory/http.json",
1111
"css:config/http/static/default.json",
1212
"css:config/identity/access/public.json",
1313
"css:config/identity/email/default.json",
@@ -55,6 +55,21 @@
5555
"@type": "BasePodCreator",
5656
"relativeWebIdPath": "profile/card#me"
5757
}
58+
},
59+
{
60+
"comment": [
61+
"The login settings of the account of the root pod. ",
62+
"It is advised to immediately change this password after starting the server."
63+
],
64+
"@type": "Override",
65+
"overrideInstance": {
66+
"@id": "urn:solid-server:default:RootPodInitializer"
67+
},
68+
"overrideParameters": {
69+
"@type": "AccountInitializer",
70+
"email": "naive.developer@example.com",
71+
"password": "ToAllHackersInTheWorldThisIs_secret!"
72+
}
5873
}
5974
]
6075
}

0 commit comments

Comments
 (0)