Skip to content

Commit 17080a3

Browse files
committed
chore: add DataService to context, harmonize formatting
1 parent 2a8f642 commit 17080a3

File tree

2 files changed

+22
-16
lines changed

2 files changed

+22
-16
lines changed

artifacts/src/main/resources/context/dspace.jsonld

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,17 @@
438438
}
439439
}
440440
},
441+
"DataService": {
442+
"@id":"dspace:CatalogService",
443+
"@context": {
444+
"id": "@id",
445+
"type": "@type",
446+
"serviceEndpoint": {
447+
"@id": "https://www.w3.org/ns/did#serviceEndpoint",
448+
"@type": "@id"
449+
}
450+
}
451+
},
441452
"ACCEPTED": "dspace:ACCEPTED",
442453
"FINALIZED": "dspace:FINALIZED",
443454
"REQUESTED": "dspace:REQUESTED",

specifications/common/common.protocol.md

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,8 @@ similar contexts that facilitate this approach to interoperability.
1919

2020
[=Connectors=] implementing the [=Dataspace Protocol=] may operate on different versions and bindings. Therefore, it is
2121
necessary that they can discover such information reliably and unambiguously. Each [=Connector=]
22-
must provide a version metadata endpoint `<host>/.well-known/dspace-version`. The location of this endpoint should adhere to the [[rfc8615]].
23-
24-
Example A _(recommended)_: `<host>/.well-known/dspace-version`
25-
Example B: `<host>/<path-to-root>/.well-known/dspace-version`
22+
must provide a version metadata endpoint `<host>/.well-known/dspace-version`. The location of this endpoint should
23+
adhere to the [[rfc8615]].
2624

2725
A [=Connector=] must respond to a respective HTTPS request by returning a [`VersionResponse`](#VersionResponse-table)
2826
with at least one item. The item connects the version tag (`version` attribute) with a path to the endpoint.
@@ -38,27 +36,24 @@ When using the DSP HTTPS binding, the `path` property is an absolute URL path se
3836
all endpoints of this version.
3937

4038
The following example demonstrates that a [=Connector=] offers the HTTPS binding from version `2024-1` at
41-
`<host>/some/path/2024-1`, the `2025-1` endpoints at`<host>/some/path/2025-1` and another [=Connector=] on the same host
42-
under `<host>/<path-to-root>/different/path/2025-1` - some of which signal the relevant authentication protocol overlay, determined by
43-
`protocol`, `version` and the `profile` array.
44-
45-
<aside class="example" title="Well-known Version Endpoint (HTTPS)">
46-
<pre class="http">GET https://provider.com/.well-known/dspace-version
47-
</pre>
48-
<pre class="json" data-include="message/example/protocol-version.json">
49-
</pre>
50-
</aside>
39+
`<host>/some/path/2024-1`, the `2025-1` endpoints at `<host>/some/path/2025-1` and another [=Connector=] on the same host
40+
under `<host>/<path-to-root>/different/path/2025-1` - some of which signal the relevant authentication protocol overlay,
41+
determined by `protocol`, `version` and the `profile` array.
5142

5243
<aside class="example" title="Well-known Version Endpoint (HTTPS) at different root path">
53-
<pre class="http">GET https://provider.com/path-to-root/.well-known/dspace-version
44+
<pre class="http">GET https://provider.com/.well-known/dspace-version
5445
</pre>
46+
OR
47+
<pre class="http">GET https://provider.com/path-to-root/.well-known/dspace-version</pre>
5548
<pre class="json" data-include="message/example/protocol-version.json">
5649
</pre>
5750
</aside>
5851

5952
## Discovery of Service Endpoints
6053

61-
A Participant may publicize their [=Data Services=], i.e., [=Connectors=], or [=Catalog Services=] via a DID document, see [[?did-core]]. In that case, the Participant MUST add an entry to the DID document's `service` array adhering to the corresponding [JSON schema](message/schema/did-service-schema.json).
54+
A Participant may publicize their [=Data Services=], i.e., [=Connectors=], or [=Catalog Services=] via a DID document,
55+
see [[?did-core]]. In that case, the Participant MUST add at least one entry to the DID document's `service` array
56+
adhering to the corresponding [JSON schema](message/schema/did-service-schema.json).
6257

6358
<aside class="example" title="Catalog Service Did Service Example">
6459
<pre class="json" data-include="message/example/catalogservice-did-service.json">

0 commit comments

Comments
 (0)