|
| 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 | + |
0 commit comments