Skip to content

Commit 1a81be0

Browse files
Added Doc for Service Offering
1 parent 8984109 commit 1a81be0

File tree

4 files changed

+88
-13
lines changed

4 files changed

+88
-13
lines changed

docs/catalog/auth.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,3 @@ You then use it in the HTTP header of your API requests:
3131
```bash
3232
Authorization: Bearer <token>
3333
```
34-
35-
36-
37-
## Production Auth
38-
39-
Work in progress...

docs/catalog/service-offerings.md

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
# Service Offerings
2+
3+
The catalog supports the management of Gaia-X compliant Service Offerings.
4+
5+
## About the Date Model
6+
7+
There is ambiguity about the valid data models to be used in Gaia-X. The catalog is build on top and acknowledges only the output of the [Gaia-X Service Characteristics Working Group](https://gaia-x.gitlab.io/technical-committee/service-characteristics-working-group/service-characteristics/){:target="_blank"}. The last version was retrieved on 2024-08-15 and can be accessed [here](../public/gaiax-registry-shape-2024-08-15.ttl){:target="_blank"}. All Service Offerings used and presented here are compliant with that version.
8+
9+
10+
## A Minimal Example
11+
This is a minimal example of a Service Offering.
12+
13+
!!! info
14+
This is raw Service Offering. It is not wrapped as a Verifiable Credential or Presentation. The catalog separates credential subjects and credential.
15+
16+
17+
!!! example "Minimal Service Offering"
18+
19+
```turtle
20+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
21+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
22+
@prefix gx: <https://w3id.org/gaia-x/development#> .
23+
@prefix pv: <https://piveau.eu/ns/voc#> .
24+
@prefix schema: <https://schema.org/> .
25+
@prefix vcard: <http://www.w3.org/2006/vcard/ns#> .
26+
27+
pv:ExampleServiceOffering
28+
a gx:ServiceOffering ;
29+
gx:dataAccountExport [
30+
a gx:DataAccountExport ;
31+
gx:accessType "digital" ;
32+
gx:formatType "pdf" ;
33+
gx:requestType "email" ;
34+
] ;
35+
gx:dataProtectionRegime "GDPR2016" ;
36+
gx:endpoint [
37+
a gx:Endpoint ;
38+
gx:endpointURL "http://endpoint.com"^^xsd:anyURI ;
39+
gx:formalDescription "OpenAPI" ;
40+
gx:standardConformity [
41+
a gx:StandardConformity ;
42+
gx:standardReference "https://standard.com"^^xsd:anyURI ;
43+
gx:title "A Standard" ;
44+
] ;
45+
] ;
46+
gx:keyword "data" ;
47+
gx:keyword "example" ;
48+
gx:provisionType "public" ;
49+
gx:providedBy <https://ids.fokus.fraunhofer.de/app/legal-participant.json> ;
50+
gx:serviceOfferingTermsAndConditions [
51+
a gx:TermsAndConditions ;
52+
gx:hash "21324rf34c34f3543f" ;
53+
gx:url "https://termsandconditions.com/"^^xsd:anyURI ;
54+
] ;
55+
gx:servicePolicy "default:allow intent" ;
56+
schema:description "This is an example service offering." ;
57+
schema:name "Example Service Offering" .
58+
```
59+
60+
61+
## Storing a Service Offering
62+
63+
``` sh
64+
$ curl --location --request PUT 'https://possible.fokus.fraunhofer.de/api/hub/repo/resources/service-offering?id=example' --header 'Content-Type: text/turtle' --header 'Authorization: Bearer <token>'
65+
```
66+
You need to add the RDF as payload! A more complete example can be found here as [Turtle](https://possible.fokus.fraunhofer.de/api/hub/repo/resources/service-offering/data-product-designer.ttl) or [JSON-LD](https://possible.fokus.fraunhofer.de/api/hub/repo/resources/service-offering/data-product-designer)
67+
68+
## Retrieving a Service Offering
69+
70+
``` sh
71+
$ curl --location --request PUT 'https://possible.fokus.fraunhofer.de/api/hub/repo/resources/service-offering/example'
72+
```
73+
74+
## Searching in all Service Offerings
75+
76+
``` sh
77+
$ curl --location --request GET 'https://possible.fokus.fraunhofer.de/api/hub/search/search?filter=resource_service-offering'
78+
```
79+
80+

mkdocs.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ theme:
1212
icon:
1313
logo: fontawesome/solid/x
1414

15-
copyright: Copyright &copy; 2023 POSSIBLE Project
15+
copyright: Copyright &copy; 2024 POSSIBLE Project
1616

1717
extra:
1818
social:
@@ -33,20 +33,21 @@ markdown_extensions:
3333
- pymdownx.inlinehilite
3434
- pymdownx.snippets
3535
- pymdownx.superfences
36-
36+
- attr_list
3737
nav:
3838
- Overview:
3939
- index.md
4040
- Demo: demo.md
41-
- Architecture:
42-
- architecture/index.md
43-
- Access Control:
44-
- access-control/index.md
4541
- Catalog:
4642
- catalog/index.md
4743
- Background: catalog/background.md
4844
- Access Control: catalog/auth.md
4945
- API Guide: catalog/api.md
5046
- Self Descriptions: catalog/self-descriptions.md
47+
- Service Offerings: catalog/service-offerings.md
48+
- Architecture:
49+
- architecture/index.md
50+
- Access Control:
51+
- access-control/index.md
5152
- Connector:
5253
- connector/index.md

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
mkdocs-material
1+
mkdocs-material==9.5.31

0 commit comments

Comments
 (0)