Skip to content

Latest commit

 

History

History
1027 lines (970 loc) · 38.3 KB

spec_IT.md

File metadata and controls

1027 lines (970 loc) · 38.3 KB

Smart Data Models

Entità: Distribuzione

Licenza aperta

documento generato automaticamente

Descrizione globale: Questa è una distribuzione appartenente a un set di dati secondo lo standard DCAT-AP 2.1.1.

versione: 1.0.1

Elenco delle proprietà

[*] Se non c'è un tipo in un attributo è perché potrebbe avere diversi tipi o diversi formati/modelli.

  • accessService[array]: Questa proprietà si riferisce a un servizio dati che dà accesso alla distribuzione del set di dati. . Model: http://www.w3.org/ns/dcat#DataService
  • accessUrl[array]: Questa proprietà contiene un URL che dà accesso a una distribuzione del dataset. La risorsa dell'URL di accesso può contenere informazioni su come ottenere il set di dati. . Model: http://www.w3.org/2000/01/rdf-schema#Resource
  • address[object]: L'indirizzo postale . Model: https://schema.org/address
  • areaServed[string]: L'area geografica in cui viene fornito il servizio o l'articolo offerto. . Model: https://schema.org/Text
  • availability[string]: Questa proprietà indica per quanto tempo si prevede di mantenere disponibile la distribuzione del dataset. . Model: http://www.w3.org/2004/02/skos/core#Concept
  • belongsToDataset[*]: Collega la Distribuzione al suo Dataset padre. Nota: questo attributo non appartiene alla versione corrente di DCAT-AP, 2.1.1. . Model: https://www.w3.org/ns/dcat#Dataset
  • byteSize[number]: Questa proprietà contiene la dimensione di una distribuzione in byte. . Model: http://www.w3.org/2000/01/rdf-schema#Literal
  • checksum[string]: Questa proprietà fornisce un meccanismo che può essere utilizzato per verificare che il contenuto di una distribuzione non sia stato modificato. Il checksum è correlato al downloadURL . Model: http://spdx.org/rdf/terms#Checksum
  • compressFormat[string]: Questa proprietà si riferisce al formato del file in cui i dati sono contenuti in forma compressa, ad esempio per ridurre le dimensioni del file scaricabile. DOVREBBE essere espressa utilizzando un tipo di supporto definito nel registro ufficiale dei tipi di supporto gestito da IANA. . Model: http://purl.org/dc/terms/MediaType
  • conformsTo[array]: Questa proprietà si riferisce a uno schema stabilito a cui la Distribuzione descritta è conforme. . Model: http://purl.org/dc/terms/Standard
  • description[array]: Questa proprietà contiene un resoconto in testo libero della Distribuzione. Questa proprietà può essere ripetuta per le versioni in lingue parallele della descrizione. . Model: http://www.w3.org/2000/01/rdf-schema#Literal
  • downloadURL[array]: Questa proprietà contiene un URL che è un collegamento diretto a un file scaricabile in un determinato formato. . Model: http://www.w3.org/2000/01/rdf-schema#Resource
  • format[string]: Questa proprietà si riferisce al formato del file della distribuzione. . Model: https://schema.org/Text
  • hasPolicy[string]: Questa proprietà si riferisce alla politica che esprime i diritti associati alla distribuzione, se si utilizza il vocabolario ODRL. . Model: http://www.w3.org/ns/odrl/2/hasPolicy
  • issued[date-time]: Questa proprietà contiene la data di emissione formale (ad esempio, di pubblicazione) della distribuzione. . Model: http://www.w3.org/2000/01/rdf-schema#Literal
  • language[array]: Questa proprietà si riferisce a una lingua utilizzata nella Distribuzione. Questa proprietà può essere ripetuta se i metadati sono forniti in più lingue. . Model: http://purl.org/dc/terms/LinguisticSystem
  • license[string]: Questa proprietà si riferisce a un servizio dati che dà accesso alla distribuzione del set di dati. . Model: http://purl.org/dc/terms/LicenseDocument
  • location[*]: Riferimento geojson all'elemento. Può essere un punto, una stringa di linea, un poligono, un multi-punto, una stringa di linea o un poligono multiplo.
  • mediaType[string]: Questa proprietà si riferisce al tipo di supporto della distribuzione, come definito nel registro ufficiale dei tipi di supporto gestito da IANA. . Model: http://purl.org/dc/terms/MediaType
  • modified[date-time]: Questa proprietà contiene la data più recente in cui la Distribuzione è stata cambiata o modificata. . Model: http://www.w3.org/2000/01/rdf-schema#Literal
  • packageFormat[string]: Questa proprietà si riferisce al formato del file in cui sono raggruppati uno o più file di dati, ad esempio per consentire di scaricare insieme un insieme di file correlati. DOVREBBE essere espressa utilizzando un tipo di supporto come definito nel registro ufficiale dei tipi di supporto gestito da IANA. . Model: http://purl.org/dc/terms/MediaType
  • page[array]: Questa proprietà si riferisce a una pagina o a un documento relativo a questa Distribuzione. . Model: http://xmlns.com/foaf/0.1/#term_Document
  • rights[string]: Questa proprietà si riferisce a una dichiarazione che specifica i diritti associati alla Distribuzione . Model: http://purl.org/dc/terms/RightsStatement
  • spatialResolutionInMeters[array]: Questa proprietà si riferisce alla minima separazione spaziale risolvibile in una distribuzione, misurata in metri. . Model: http://www.w3.org/2000/01/rdf-schema#Literal
  • status[string]: Questa proprietà si riferisce alla scadenza della Distribuzione. DEVE assumere uno dei valori Completato, Deprecato, In fase di sviluppo, Ritirato. . Model: http://www.w3.org/2004/02/skos/core#Concept
  • temporalResolution[duration]: Questa proprietà si riferisce al periodo di tempo minimo risolvibile nel dataset. . Model: http://www.w3.org/2001/XMLSchema#duration
  • title[array]: Questa proprietà contiene un nome dato alla Distribuzione. Questa proprietà può essere ripetuta per le versioni in lingue parallele della descrizione. . Model: http://www.w3.org/2000/01/rdf-schema#Literal
  • type[string]: Tipo di entità NGSI. Deve essere Distribuzione

Proprietà richieste

  • accessURL
  • id
  • type

Adattato da DCAT-AP versione 2.1.1.

Modello di dati descrizione delle proprietà

Ordinati in ordine alfabetico (clicca per i dettagli)

full yaml details
Distribution:      
  description: This is a distribution belonging ot a dataset according to the DCAT-AP standard 2.1.1      
  properties:      
    accessService:      
      description: This property refers to a data service that gives access to the distribution of the dataset      
      items:      
        description: Every Data service providing access to the distribution      
        type: string      
        x-ngsi:      
          type: Property      
      type: array      
      x-ngsi:      
        model: "http://www.w3.org/ns/dcat#DataService"      
        type: Property      
    accessUrl:      
      description: This property contains a URL that gives access to a Distribution of the Dataset. The resource at the access URL may contain information about how to get the Dataset      
      items:      
        minItems: 1      
        type: string      
      type: array      
      x-ngsi:      
        model: "http://www.w3.org/2000/01/rdf-schema#Resource"      
        type: Property      
    address:      
      description: The mailing address      
      properties:      
        addressCountry:      
          description: 'The country. For example, Spain'      
          type: string      
          x-ngsi:      
            model: https://schema.org/addressCountry      
            type: Property      
        addressLocality:      
          description: 'The locality in which the street address is, and which is in the region'      
          type: string      
          x-ngsi:      
            model: https://schema.org/addressLocality      
            type: Property      
        addressRegion:      
          description: 'The region in which the locality is, and which is in the country'      
          type: string      
          x-ngsi:      
            model: https://schema.org/addressRegion      
            type: Property      
        district:      
          description: 'A district is a type of administrative division that, in some countries, is managed by the local government'      
          type: string      
          x-ngsi:      
            type: Property      
        postOfficeBoxNumber:      
          description: 'The post office box number for PO box addresses. For example, 03578'      
          type: string      
          x-ngsi:      
            model: https://schema.org/postOfficeBoxNumber      
            type: Property      
        postalCode:      
          description: 'The postal code. For example, 24004'      
          type: string      
          x-ngsi:      
            model: https://schema.org/https://schema.org/postalCode      
            type: Property      
        streetAddress:      
          description: The street address      
          type: string      
          x-ngsi:      
            model: https://schema.org/streetAddress      
            type: Property      
        streetNr:      
          description: Number identifying a specific property on a public street      
          type: string      
          x-ngsi:      
            type: Property      
      type: object      
      x-ngsi:      
        model: https://schema.org/address      
        type: Property      
    areaServed:      
      description: The geographic area where a service or offered item is provided      
      type: string      
      x-ngsi:      
        model: https://schema.org/Text      
        type: Property      
    availability:      
      description: This property indicates how long it is planned to keep the Distributio of the Dataset available      
      type: string      
      x-ngsi:      
        model: "http://www.w3.org/2004/02/skos/core#Concept"      
        type: Property      
    belongsToDataset:      
      anyOf:      
        - description: Link to the dataset      
          maxLength: 256      
          minLength: 1      
          pattern: ^[\w\-\.\{\}\$\+\*\[\]`|~^@!,:\\]+$      
          type: string      
          x-ngsi:      
            type: Property      
        - description: Link to the dataset      
          format: uri      
          type: string      
          x-ngsi:      
            type: Property      
      description: 'It links the Distribution to its parent Dataset. Note: this attribute does not belong to the current version of DCAT-AP, 2.1.1'      
      x-ngsi:      
        model: "https://www.w3.org/ns/dcat#Dataset"      
        type: Relationship      
    byteSize:      
      description: This property contains the size of a Distribution in bytes      
      type: number      
      x-ngsi:      
        model: "http://www.w3.org/2000/01/rdf-schema#Literal"      
        type: Property      
    checksum:      
      description: This property provides a mechanism that can be used to verify that the contents of a distribution have not changed. The checksum is related to the downloadURL      
      type: string      
      x-ngsi:      
        model: "http://spdx.org/rdf/terms#Checksum"      
        type: Property      
    compressFormat:      
      description: 'This property refers to the format of the file in which the data is contained in a compressed form, e.g. to reduce the size of the downloadable file. It SHOULD be expressed using a media type as defined in the official register of media types managed by IANA'      
      type: string      
      x-ngsi:      
        model: http://purl.org/dc/terms/MediaType      
        type: Property      
    conformsTo:      
      description: This property refers to an established schema to which the described Distribution conforms      
      items:      
        description: Every rule o standard the distribution complies with      
        type: string      
        x-ngsi:      
          type: Property      
      type: array      
      x-ngsi:      
        model: http://purl.org/dc/terms/Standard      
        type: Property      
    description:      
      description: This property contains a free-text account of the Distribution. This property can be repeated for parallel language versions of the description      
      items:      
        description: Every description of the distribution in a language      
        type: string      
        x-ngsi:      
          type: Property      
      type: array      
      x-ngsi:      
        model: "http://www.w3.org/2000/01/rdf-schema#Literal"      
        type: Property      
    downloadURL:      
      description: This property contains a URL that is a direct link to a downloadable file in a given format      
      items:      
        description: Every URL available for downloading      
        format: uri      
        type: string      
        x-ngsi:      
          type: Property      
      type: array      
      x-ngsi:      
        model: "http://www.w3.org/2000/01/rdf-schema#Resource"      
        type: Property      
    format:      
      description: This property refers to the file format of the Distribution      
      type: string      
      x-ngsi:      
        model: https://schema.org/Text      
        type: Property      
    hasPolicy:      
      description: This property refers to the policy expressing the rights associated with the distribution if using the ODRL vocabulary      
      type: string      
      x-ngsi:      
        model: http://www.w3.org/ns/odrl/2/hasPolicy      
        type: Property      
    issued:      
      description: 'This property contains the date of formal issuance (e.g., publication) of the Distribution'      
      format: date-time      
      type: string      
      x-ngsi:      
        model: "http://www.w3.org/2000/01/rdf-schema#Literal"      
        type: Property      
    language:      
      description: This property refers to a language used in the Distribution. This property can be repeated if the metadata is provided in multiple languages      
      items:      
        description: Every language included      
        type: string      
        x-ngsi:      
          type: Property      
      type: array      
      x-ngsi:      
        model: http://purl.org/dc/terms/LinguisticSystem      
        type: Property      
    license:      
      description: This property refers to a data service that gives access to the distribution of the dataset      
      type: string      
      x-ngsi:      
        model: http://purl.org/dc/terms/LicenseDocument      
        type: Property      
    location:      
      description: 'Geojson reference to the item. It can be Point, LineString, Polygon, MultiPoint, MultiLineString or MultiPolygon'      
      oneOf:      
        - description: Geojson reference to the item. Point      
          properties:      
            bbox:      
              items:      
                type: number      
              minItems: 4      
              type: array      
            coordinates:      
              items:      
                type: number      
              minItems: 2      
              type: array      
            type:      
              enum:      
                - Point      
              type: string      
          required:      
            - type      
            - coordinates      
          title: GeoJSON Point      
          type: object      
          x-ngsi:      
            type: GeoProperty      
        - description: Geojson reference to the item. LineString      
          properties:      
            bbox:      
              items:      
                type: number      
              minItems: 4      
              type: array      
            coordinates:      
              items:      
                items:      
                  type: number      
                minItems: 2      
                type: array      
              minItems: 2      
              type: array      
            type:      
              enum:      
                - LineString      
              type: string      
          required:      
            - type      
            - coordinates      
          title: GeoJSON LineString      
          type: object      
          x-ngsi:      
            type: GeoProperty      
        - description: Geojson reference to the item. Polygon      
          properties:      
            bbox:      
              items:      
                type: number      
              minItems: 4      
              type: array      
            coordinates:      
              items:      
                items:      
                  items:      
                    type: number      
                  minItems: 2      
                  type: array      
                minItems: 4      
                type: array      
              type: array      
            type:      
              enum:      
                - Polygon      
              type: string      
          required:      
            - type      
            - coordinates      
          title: GeoJSON Polygon      
          type: object      
          x-ngsi:      
            type: GeoProperty      
        - description: Geojson reference to the item. MultiPoint      
          properties:      
            bbox:      
              items:      
                type: number      
              minItems: 4      
              type: array      
            coordinates:      
              items:      
                items:      
                  type: number      
                minItems: 2      
                type: array      
              type: array      
            type:      
              enum:      
                - MultiPoint      
              type: string      
          required:      
            - type      
            - coordinates      
          title: GeoJSON MultiPoint      
          type: object      
          x-ngsi:      
            type: GeoProperty      
        - description: Geojson reference to the item. MultiLineString      
          properties:      
            bbox:      
              items:      
                type: number      
              minItems: 4      
              type: array      
            coordinates:      
              items:      
                items:      
                  items:      
                    type: number      
                  minItems: 2      
                  type: array      
                minItems: 2      
                type: array      
              type: array      
            type:      
              enum:      
                - MultiLineString      
              type: string      
          required:      
            - type      
            - coordinates      
          title: GeoJSON MultiLineString      
          type: object      
          x-ngsi:      
            type: GeoProperty      
        - description: Geojson reference to the item. MultiLineString      
          properties:      
            bbox:      
              items:      
                type: number      
              minItems: 4      
              type: array      
            coordinates:      
              items:      
                items:      
                  items:      
                    items:      
                      type: number      
                    minItems: 2      
                    type: array      
                  minItems: 4      
                  type: array      
                type: array      
              type: array      
            type:      
              enum:      
                - MultiPolygon      
              type: string      
          required:      
            - type      
            - coordinates      
          title: GeoJSON MultiPolygon      
          type: object      
          x-ngsi:      
            type: GeoProperty      
      x-ngsi:      
        type: GeoProperty      
    mediaType:      
      description: This property refers to the media type of the Distribution as defined in the official register of media types managed by IANA      
      type: string      
      x-ngsi:      
        model: http://purl.org/dc/terms/MediaType      
        type: Property      
    modified:      
      description: This property contains the most recent date on which the Distribution was changed or modified      
      format: date-time      
      type: string      
      x-ngsi:      
        model: "http://www.w3.org/2000/01/rdf-schema#Literal"      
        type: Property      
    packageFormat:      
      description: 'This property refers to the format of the file in which one or more data files are grouped together, e.g. to enable a set of related files to be downloaded together. It SHOULD be expressed using a media type as defined in the official register of media types managed by IANA'      
      type: string      
      x-ngsi:      
        model: http://purl.org/dc/terms/MediaType      
        type: Property      
    page:      
      description: This property refers to a page or document about this Distribution      
      items:      
        description: Every page providing information about the distribution      
        type: string      
        x-ngsi:      
          type: Property      
      type: array      
      x-ngsi:      
        model: "http://xmlns.com/foaf/0.1/#term_Document"      
        type: Property      
    rights:      
      description: This property refers to a statement that specifies rights associated with the Distribution      
      type: string      
      x-ngsi:      
        model: http://purl.org/dc/terms/RightsStatement      
        type: Property      
    spatialResolutionInMeters:      
      description: 'This property refers to the minimum spatial separation resolvable in a distribution, measured in meters'      
      type: array      
      x-ngsi:      
        model: "http://www.w3.org/2000/01/rdf-schema#Literal"      
        type: Property      
    status:      
      description: 'This property refers to the maturity of the Distribution. It MUST take one of the values Completed, Deprecated, Under Development, Withdrawn'      
      enum:      
        - Completed      
        - Deprecated      
        - Under Development      
        - Withdrawn      
      type: string      
      x-ngsi:      
        model: "http://www.w3.org/2004/02/skos/core#Concept"      
        type: Property      
    temporalResolution:      
      description: 'This property refers to the minimum time period resolvable in the dataset. '      
      format: duration      
      type: string      
      x-ngsi:      
        model: "http://www.w3.org/2001/XMLSchema#duration"      
        type: Property      
    title:      
      description: This property contains a name given to the Distribution. This property can be repeated for parallel language versions of the description      
      items:      
        description: Every language description of the distribution title      
        type: string      
        x-ngsi:      
          type: Property      
      type: array      
      x-ngsi:      
        model: "http://www.w3.org/2000/01/rdf-schema#Literal"      
        type: Property      
    type:      
      description: NGSI entity type. It has to be Distribution      
      enum:      
        - Distribution      
      type: string      
      x-ngsi:      
        type: Property      
  required:      
    - accessURL      
    - id      
    - type      
  type: object      
  x-derived-from: ""      
  x-disclaimer: 'Redistribution and use in source and binary forms, with or without modification, are permitted  provided that the license conditions are met. Copyleft (c) 2022 Contributors to Smart Data Models Program'      
  x-license-url: https://github.com/smart-data-models/dataModel.DCAT-AP/blob/master/Distribution/LICENSE.md      
  x-model-schema: https://smart-data-models.github.io/dataModel.DCAT-AP/Distribution/schema.json      
  x-model-tags: ""      
  x-version: 1.0.1      

Esempi di payload

Distribuzione valori-chiave NGSI-v2 Esempio

Ecco un esempio di Distribuzione in formato JSON-LD come valori-chiave. Questo è compatibile con NGSI-v2 quando si usa options=keyValues e restituisce i dati di contesto di una singola entità.

show/hide example
{  
  "id": "urn:ngsi-ld:Distribution:id:NUZE:76215118",  
  "type": "Distribution",  
  "accessService": [  
    ""  
  ],  
  "accessURL": [  
    "https://datos.comunidad.madrid/catalogo/dataset/134210b4-3fbc-457d-8064-18d6d8cc785e/resource/fca9a0ef-60b3-44bc-8a69-c17d607b122d/download/alojamientos_turisticos.csv"  
  ],  
  "address": {  
    "addressCountry": "Luxembourg",  
    "addressLocality": "Luxembourg",  
    "addressRegion": "Luxembourg",  
    "postOfficeBoxNumber": "",  
    "postalCode": "24004",  
    "streetAddress": "Luxembourg platz 2"  
  },  
  "availability": "yes",  
  "byteSize": 43503,  
  "checksum": "H3FR.",  
  "compressionFormat": "",  
  "belongsToDataset": "urn:ngsi-ld:Dataset:items:CHIF:23645981",  
  "description": [  
    "Distribution of open data portals in csv"  
  ],  
  "page": [],  
  "downloadURL": [  
    "urn:ngsi-ld:DistributionDCAT-AP:items:HVWX:12201868",  
    "urn:ngsi-ld:DistributionDCAT-AP:items:ICPI:96947751"  
  ],  
  "format": " text/csv",  
  "hasPolicy": "Open data policy.",  
  "language": [  
    "EN",  
    "ES"  
  ],  
  "license": "CC-BY",  
  "conformsTo": [],  
  "location": {  
    "coordinates": [  
      -67.057831,  
      67.968509  
    ],  
    "type": "Point"  
  },  
  "mediaType": "",  
  "modified": "1986-03-28T19:56:43Z",  
  "packagingFormat": "zip",  
  "issued": "1997-05-06T05:04:10Z",  
  "rights": "copyleft",  
  "spatialResolutionInMeters": [  
    0.5,  
    0.5  
  ],  
  "status": "Withdrawn",  
  "temporalResolution": "PT15M",  
  "title": [  
    "Dataset base"  
  ]  
}  

Distribuzione NGSI-v2 normalizzata Esempio

Ecco un esempio di Distribuzione in formato JSON-LD normalizzato. Questo è compatibile con NGSI-v2 quando non si utilizzano le opzioni e restituisce i dati di contesto di una singola entità.

show/hide example
{  
  "id": "urn:ngsi-ld:Distribution:id:NUZE:76215118",  
  "type": "Distribution",  
  "description": {  
    "type": "StructuredValue",  
    "value": [  
      "Distribution of open data portals in csv"  
    ]  
  },  
  "location": {  
    "type": "geo:json",  
    "value": {  
      "type": "Point",  
      "coordinates": [  
        -67.057831,  
        67.968509  
      ]  
    }  
  },  
  "address": {  
    "type": "StructuredValue",  
    "value": {  
      "streetAddress": "Luxembourg platz 2",  
      "addressLocality": "Luxembourg",  
      "addressRegion": "Luxembourg",  
      "addressCountry": "Luxembourg",  
      "postalCode": "24004",  
      "postOfficeBoxNumber": ""  
    }  
  },  
  "accessURL": {  
    "type": "StructuredValue",  
    "value": [  
      "https://datos.comunidad.madrid/catalogo/dataset/134210b4-3fbc-457d-8064-18d6d8cc785e/resource/fca9a0ef-60b3-44bc-8a69-c17d607b122d/download/alojamientos_turisticos.csv"  
    ]  
  },  
  "availability": {  
    "type": "Text",  
    "value": "yes"  
  },  
  "format": {  
    "type": "Text",  
    "value": " text/csv"  
  },  
  "license": {  
    "type": "Text",  
    "value": "CC-BY"  
  },  
  "accessService": {  
    "type": "StructuredValue",  
    "value": [  
      ""  
    ]  
  },  
  "byteSize": {  
    "type": "Number",  
    "value": 43503  
  },  
  "checksum": {  
    "type": "Text",  
    "value": "H3FR."  
  },  
  "compressionFormat": {  
    "type": "Text",  
    "value": ""  
  },  
  "belongsToDataset": {  
    "type": "Text",  
    "value": "urn:ngsi-ld:Dataset:items:CHIF:23645981"  
  },  
  "page": {  
    "type": "StructuredValue",  
    "value": []  
  },  
  "downloadURL": {  
    "type": "StructuredValue",  
    "value": [  
      "urn:ngsi-ld:DistributionDCAT-AP:items:HVWX:12201868",  
      "urn:ngsi-ld:DistributionDCAT-AP:items:ICPI:96947751"  
    ]  
  },  
  "hasPolicy": {  
    "type": "Text",  
    "value": "Open data policy."  
  },  
  "language": {  
    "type": "StructuredValue",  
    "value": [  
      "EN",  
      "ES"  
    ]  
  },  
  "conformsTo": {  
    "type": "StructuredValue",  
    "value": []  
  },  
  "mediaType": {  
    "type": "Text",  
    "value": ""  
  },  
  "packagingFormat": {  
    "type": "Text",  
    "value": "zip"  
  },  
  "issued": {  
    "type": "DateTime",  
    "value": "1997-05-06T05:04:10Z"  
  },  
  "rights": {  
    "type": "Text",  
    "value": "copyleft"  
  },  
  "spatialResolutionInMeters": {  
    "type": "StructuredValue",  
    "value": [  
      0.5,  
      0.5  
    ]  
  },  
  "status": {  
    "type": "Text",  
    "value": "Withdrawn"  
  },  
  "temporalResolution": {  
    "type": "Text",  
    "value": "PT17S"  
  },  
  "title": {  
    "type": "StructuredValue",  
    "value": [  
      "Dataset base"  
    ]  
  },  
  "modified": {  
    "type": "DateTime",  
    "value": "1986-03-28T19:56:43Z"  
  }  
}  

Distribuzione dei valori-chiave NGSI-LD Esempio

Ecco un esempio di Distribuzione in formato JSON-LD come valori-chiave. Questo è compatibile con NGSI-LD quando si usa options=keyValues e restituisce i dati di contesto di una singola entità.

show/hide example
{  
  "id": "urn:ngsi-ld:Distribution:id:NUZE:76215118",  
  "type": "Distribution",  
  "accessService": [  
    ""  
  ],  
  "accessURL": [  
    "https://datos.comunidad.madrid/catalogo/dataset/134210b4-3fbc-457d-8064-18d6d8cc785e/resource/fca9a0ef-60b3-44bc-8a69-c17d607b122d/download/alojamientos_turisticos.csv"  
  ],  
  "address": {  
    "addressCountry": "Luxembourg",  
    "addressLocality": "Luxembourg",  
    "addressRegion": "Luxembourg",  
    "postOfficeBoxNumber": "",  
    "postalCode": "24004",  
    "streetAddress": "Luxembourg platz 2"  
  },  
  "availability": "yes",  
  "byteSize": 43503,  
  "checksum": "H3FR.",  
  "compressionFormat": "",  
  "belongsToDataset": "urn:ngsi-ld:Dataset:items:CHIF:23645981",  
  "description": [  
    "Distribution of open data portals in csv"  
  ],  
  "page": [],  
  "downloadURL": [  
    "urn:ngsi-ld:DistributionDCAT-AP:items:HVWX:12201868",  
    "urn:ngsi-ld:DistributionDCAT-AP:items:ICPI:96947751"  
  ],  
  "format": " text/csv",  
  "hasPolicy": "Open data policy.",  
  "language": [  
    "EN",  
    "ES"  
  ],  
  "license": "CC-BY",  
  "conformsTo": [],  
  "location": {  
    "coordinates": [  
      -67.057831,  
      67.968509  
    ],  
    "type": "Point"  
  },  
  "mediaType": "",  
  "modified": "1986-03-28T19:56:43Z",  
  "packagingFormat": "zip",  
  "issued": "1997-05-06T05:04:10Z",  
  "rights": "copyleft",  
  "spatialResolutionInMeters": [  
    0.5,  
    0.5  
  ],  
  "status": "Withdrawn",  
  "temporalResolution": "PT15S",  
  "title": [  
    "Dataset base"  
  ],  
  "@context": [  
    "https://raw.githubusercontent.com/smart-data-models/dataModel.DCAT-AP/master/context.jsonld"  
  ]  
}  

Distribuzione NGSI-LD normalizzata Esempio

Ecco un esempio di Distribuzione in formato JSON-LD normalizzato. Questo è compatibile con NGSI-LD quando non si usano opzioni e restituisce i dati di contesto di una singola entità.

show/hide example
{  
  "id": "urn:ngsi-ld:Distribution:id:NUZE:76215118",  
  "type": "Distribution",  
  "accessService": {  
    "type": "Property",  
    "value": [  
      ""  
    ]  
  },  
  "accessURL": {  
    "type": "Property",  
    "value": [  
      "https://datos.comunidad.madrid/catalogo/dataset/134210b4-3fbc-457d-8064-18d6d8cc785e/resource/fca9a0ef-60b3-44bc-8a69-c17d607b122d/download/alojamientos_turisticos.csv"  
    ]  
  },  
  "address": {  
    "type": "Property",  
    "value": {  
      "streetAddress": "Luxembourg platz 2",  
      "addressLocality": "Luxembourg",  
      "addressRegion": "Luxembourg",  
      "addressCountry": "Luxembourg",  
      "postalCode": "24004",  
      "postOfficeBoxNumber": ""  
    }  
  },  
  "availability": {  
    "type": "Property",  
    "value": "yes"  
  },  
  "byteSize": {  
    "type": "Property",  
    "value": 43503  
  },  
  "checksum": {  
    "type": "Property",  
    "value": "H3FR."  
  },  
  "compressFormat": {  
    "type": "Property",  
    "value": ""  
  },  
  "belongsToDataset": {  
    "type": "Relationship",  
    "object": "urn:ngsi-ld:Dataset:items:CHIF:23645981"  
  },  
  "dataProvider": {  
    "type": "Property",  
    "value": "Meloda.org"  
  },  
  "modified": {  
    "type": "Property",  
    "value": {  
      "@type": "DateTime",  
      "@value": "1970-07-14T10:48:19Z"  
    }  
  },  
  "description": {  
    "type": "Property",  
    "value": [  
      "Distribution of open data portals in csv"  
    ]  
  },  
  "documentation": {  
    "type": "Property",  
    "value": []  
  },  
  "downloadURL": {  
    "type": "Property",  
    "value": [  
      "urn:ngsi-ld:DistributionDCAT-AP:items:HVWX:12201868",  
      "urn:ngsi-ld:DistributionDCAT-AP:items:ICPI:96947751"  
    ]  
  },  
  "format": {  
    "type": "Property",  
    "value": " text/csv"  
  },  
  "hasPolicy": {  
    "type": "Property",  
    "value": "Open data policy."  
  },  
  "language": {  
    "type": "Property",  
    "value": [  
      "EN",  
      "ES"  
    ]  
  },  
  "license": {  
    "type": "Property",  
    "value": "CC-BY"  
  },  
  "conformsTo": {  
    "type": "Property",  
    "value": []  
  },  
  "location": {  
    "type": "Property",  
    "value": {  
      "type": "Point",  
      "coordinates": [  
        -67.057831,  
        67.968509  
      ]  
    }  
  },  
  "mediaType": {  
    "type": "Property",  
    "value": ""  
  },  
  "packagingFormat": {  
    "type": "Property",  
    "value": "zip"  
  },  
  "issued": {  
    "type": "Property",  
    "value": {  
      "@type": "DateTime",  
      "@value": "1997-05-06T05:04:10Z"  
    }  
  },  
  "rights": {  
    "type": "Property",  
    "value": "copyleft"  
  },  
  "spatialResolutionInMeters": {  
    "type": "Property",  
    "value": [  
      0.5,  
      0.5  
    ]  
  },  
  "status": {  
    "type": "Property",  
    "value": "Withdrawn"  
  },  
  "temporalResolution": {  
    "type": "Property",  
    "value": [  
      2,  
      10  
    ]  
  },  
  "title": {  
    "type": "Property",  
    "value": [  
      "Dataset base"  
    ]  
  },  
  "@context": [  
    "https://raw.githubusercontent.com/smart-data-models/dataModel.DCAT-AP/master/context.jsonld"  
  ]  
}  

Vedere FAQ 10 per ottenere una risposta su come gestire le unità di grandezza.


Smart Data Models +++ Contribution Manual +++ About