Skip to content

Latest commit

 

History

History
1027 lines (970 loc) · 38.3 KB

spec_ES.md

File metadata and controls

1027 lines (970 loc) · 38.3 KB

Smart Data Models

Entidad: Distribución

Licencia abierta

documento generado automáticamente

Descripción global: Se trata de una distribución perteneciente a un conjunto de datos conforme a la norma DCAT-AP 2.1.1.

versión: 1.0.1

Lista de propiedades

[*] Si no hay un tipo en un atributo es porque puede tener varios tipos o diferentes formatos/patrones.

  • accessService[array]: Esta propiedad se refiere a un servicio de datos que da acceso a la distribución del conjunto de datos . Model: http://www.w3.org/ns/dcat#DataService
  • accessUrl[array]: Esta propiedad contiene una URL que da acceso a una distribución del conjunto de datos. El recurso en la URL de acceso puede contener información sobre cómo obtener el Conjunto de Datos . Model: http://www.w3.org/2000/01/rdf-schema#Resource
  • address[object]: La dirección postal . Model: https://schema.org/address
  • areaServed[string]: La zona geográfica en la que se presta un servicio o se ofrece un artículo . Model: https://schema.org/Text
  • availability[string]: Esta propiedad indica durante cuánto tiempo se prevé mantener disponible el Distributio del Conjunto de Datos . Model: http://www.w3.org/2004/02/skos/core#Concept
  • belongsToDataset[*]: Vincula la Distribución a su Dataset padre. Nota: este atributo no pertenece a la versión actual de DCAT-AP, 2.1.1 . Model: https://www.w3.org/ns/dcat#Dataset
  • byteSize[number]: Esta propiedad contiene el tamaño de una Distribución en bytes . Model: http://www.w3.org/2000/01/rdf-schema#Literal
  • checksum[string]: Esta propiedad proporciona un mecanismo que puede utilizarse para verificar que el contenido de una distribución no ha cambiado. La suma de comprobación está relacionada con la URL de descarga . Model: http://spdx.org/rdf/terms#Checksum
  • compressFormat[string]: Esta propiedad se refiere al formato del archivo en el que los datos están contenidos de forma comprimida, por ejemplo, para reducir el tamaño del archivo descargable. DEBERÍA expresarse utilizando un tipo de medio tal y como se define en el registro oficial de tipos de medios gestionado por IANA . Model: http://purl.org/dc/terms/MediaType
  • conformsTo[array]: Esta propiedad hace referencia a un esquema establecido al que se ajusta la Distribución descrita . Model: http://purl.org/dc/terms/Standard
  • description[array]: Esta propiedad contiene una descripción en texto libre de la Distribución. Esta propiedad puede repetirse para versiones en idiomas paralelos de la descripción . Model: http://www.w3.org/2000/01/rdf-schema#Literal
  • downloadURL[array]: Esta propiedad contiene una URL que es un enlace directo a un archivo descargable en un formato determinado . Model: http://www.w3.org/2000/01/rdf-schema#Resource
  • format[string]: Esta propiedad se refiere al formato de archivo de la Distribución . Model: https://schema.org/Text
  • hasPolicy[string]: Esta propiedad se refiere a la política que expresa los derechos asociados a la distribución si se utiliza el vocabulario ODRL . Model: http://www.w3.org/ns/odrl/2/hasPolicy
  • issued[date-time]: Esta propiedad contiene la fecha de emisión formal (por ejemplo, publicación) de la Distribución . Model: http://www.w3.org/2000/01/rdf-schema#Literal
  • language[array]: Esta propiedad se refiere a un idioma utilizado en la Distribución. Esta propiedad puede repetirse si los metadatos se proporcionan en varios idiomas . Model: http://purl.org/dc/terms/LinguisticSystem
  • license[string]: Esta propiedad se refiere a un servicio de datos que da acceso a la distribución del conjunto de datos . Model: http://purl.org/dc/terms/LicenseDocument
  • location[*]: Referencia Geojson al elemento. Puede ser Point, LineString, Polygon, MultiPoint, MultiLineString o MultiPolygon.
  • mediaType[string]: Esta propiedad se refiere al tipo de medio de la Distribución tal y como se define en el registro oficial de tipos de medios gestionado por IANA . Model: http://purl.org/dc/terms/MediaType
  • modified[date-time]: Esta propiedad contiene la fecha más reciente en la que se cambió o modificó la Distribución . Model: http://www.w3.org/2000/01/rdf-schema#Literal
  • packageFormat[string]: Esta propiedad se refiere al formato del archivo en el que se agrupan uno o más archivos de datos, por ejemplo, para permitir la descarga conjunta de un conjunto de archivos relacionados. DEBERÍA expresarse utilizando un tipo de soporte tal y como se define en el registro oficial de tipos de soporte gestionado por la IANA. . Model: http://purl.org/dc/terms/MediaType
  • page[array]: Esta propiedad hace referencia a una página o documento sobre esta Distribución . Model: http://xmlns.com/foaf/0.1/#term_Document
  • rights[string]: Esta propiedad se refiere a una declaración que especifica los derechos asociados a la Distribución . Model: http://purl.org/dc/terms/RightsStatement
  • spatialResolutionInMeters[array]: Esta propiedad se refiere a la separación espacial mínima resoluble en una distribución, medida en metros . Model: http://www.w3.org/2000/01/rdf-schema#Literal
  • status[string]: Esta propiedad se refiere al vencimiento de la Distribución. DEBE tomar uno de los valores Completada, Obsoleta, En desarrollo, Retirada. . Model: http://www.w3.org/2004/02/skos/core#Concept
  • temporalResolution[duration]: Esta propiedad se refiere al periodo de tiempo mínimo resoluble en el conjunto de datos. . Model: http://www.w3.org/2001/XMLSchema#duration
  • title[array]: Esta propiedad contiene un nombre dado a la Distribución. Esta propiedad puede repetirse para versiones en idiomas paralelos de la descripción . Model: http://www.w3.org/2000/01/rdf-schema#Literal
  • type[string]: Tipo de entidad NGSI. Tiene que ser Distribución

Propiedades requeridas

  • accessURL
  • id
  • type

Adaptado de DCAT-AP versión 2.1.1.

Descripción de las propiedades del modelo de datos

Ordenados alfabéticamente (pulse para más detalles)

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      

Ejemplo de carga útil

Ejemplo de distribución de valores clave NGSI-v2

He aquí un ejemplo de una Distribución en formato JSON-LD como valores-clave. Esto es compatible con NGSI-v2 cuando se utiliza options=keyValues y devuelve los datos de contexto de una entidad individual.

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"  
  ]  
}  

Distribución NGSI-v2 normalizada Ejemplo

He aquí un ejemplo de una Distribución en formato JSON-LD normalizado. Esto es compatible con NGSI-v2 cuando no se utilizan opciones y devuelve los datos de contexto de una entidad individual.

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"  
  }  
}  

Ejemplo de distribución de valores clave NGSI-LD

He aquí un ejemplo de una Distribución en formato JSON-LD como valores-clave. Esto es compatible con NGSI-LD cuando se utiliza options=keyValues y devuelve los datos de contexto de una entidad individual.

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"  
  ]  
}  

Distribución NGSI-LD normalizada Ejemplo

He aquí un ejemplo de una Distribución en formato JSON-LD normalizado. Esto es compatible con NGSI-LD cuando no se utilizan opciones y devuelve los datos de contexto de una entidad individual.

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"  
  ]  
}  

Consulte FAQ 10 para obtener una respuesta sobre cómo tratar las unidades de magnitud.


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