Skip to content

Instantly share code, notes, and snippets.

@ioggstream
Created October 3, 2024 09:24
Show Gist options
  • Save ioggstream/865c550a68e686b2854324efc0ae7dd5 to your computer and use it in GitHub Desktop.
Save ioggstream/865c550a68e686b2854324efc0ae7dd5 to your computer and use it in GitHub Desktop.
components:
schemas:
PuntoDiContattoOnline:
title: Punto di Contatto Online
description: |
Questa classe rappresenta un punto di contatto online. Essa raggruppa un insieme di tipi di canali di contatto online come account di social network, email, siti web, ecc.
type: object
x-jsonld-type: "https://w3id.org/italia/onto/SM/OnlineContactPoint"
x-jsonld-context:
"@vocab": "https://w3id.org/italia/onto/SM/"
haEmail:
"@id": hasEmail
properties:
haEmail:
$ref: '#/components/schemas/Email'
hasTelephone:
type: string
format: uri
hasUserAccount:
type: string
format: uri
example:
haEmail:
email: [email protected]
tipo: PEC
hasTelephone: tel:+391234
hasUserAccount: https://github.com/ioggstream
Email:
description: |
Questa classe rappresenta l'indirizzo email del punto di contatto di un'organizzazione. La classe è collegata al tipo di email. Nell'ambito itailano si identificano due tipi principali di email, la PEC e l'email tradizionale.
type: object
x-jsonld-type: "Email"
x-jsonld-context:
"@vocab": "https://w3id.org/italia/onto/SM/"
"@base": "mailto:"
email: "@id"
tipo: hasEmailType
properties:
tipo:
type: string
maxLength: 12
email:
title: indirizzo email
description: |
Questa proprietà rappresenta l'indirizzo email che deve essere espresso nella forma mailto:[email protected]
type: string
format: email
example:
email: "[email protected]"
tipo: "personale"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment