Swirrl / datahost-prototypes

Eclipse Public License 1.0
0 stars 0 forks source link

Include dcat:downloadURL on release and revision #382

Closed andrewmcveigh closed 6 months ago

andrewmcveigh commented 7 months ago

Fix: #344

kjoshi commented 7 months ago

I guess if #380 gets merged then the :dcat:distribution parts added to the context in json_ld.clj can be moved into jsonld-context.json?

xdrcft8000 commented 7 months ago

JSON response for revision:

{
  "dh:hasChange": [
    "https://example.org/data/English-Indices-of-Deprivation/release/2019/revision/1/commit/1"
  ],
  "dh:appliesToRelease": "https://example.org/data/English-Indices-of-Deprivation/release/2019",
  "dh:revisionSnapshotCSV": "82ba0da2e6564f40261ac2a27ecb657a4ec9b6c9f73899da6c3276ff09ecc041",
  "dcterms:description": "Initial upload",
  "dcterms:license": "http://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/",
  "dh:publicationDate": "September 30, 2019 08:23",
  "@id": "English-Indices-of-Deprivation/release/2019/revision/1",
  "@type": "dh:Revision",
  "dcat:distribution": {
    "text/csv": {
      "@id": "English-Indices-of-Deprivation/release/2019/revision/1.csv",
      "dcat:mediaType": "text/csv",
      "dcat:downloadURL": "https://example.org/data/English-Indices-of-Deprivation/release/2019/revision/1.csv"
    },
    "application/json": {
      "@id": "English-Indices-of-Deprivation/release/2019/revision/1.json",
      "dcat:mediaType": "application/json",
      "dcat:downloadURL": "https://example.org/data/English-Indices-of-Deprivation/release/2019/revision/1.json"
    },
    "application/csvm+json": {
      "@id": "English-Indices-of-Deprivation/release/2019/revision/1-metadata.json",
      "dcat:mediaType": "application/csvm+json",
      "dcat:downloadURL": "https://example.org/data/English-Indices-of-Deprivation/release/2019/revision/1-metadata.json"
    }
  },
  "dcterms:title": "English Indices of Deprivation 2019 - LSOA Level",
  "@context": [
    "https://cdn.jsdelivr.net/gh/Swirrl/datahost-prototypes@1282114/datahost-ld-openapi/resources/jsonld-context.json",
    {
      "@base": "https://example.org/data/"
    }
  ]
}
xdrcft8000 commented 7 months ago

JSON response for release:


{
  "dcterms:modified": "2024-02-13T09:25:43.096036Z",
  "dcterms:description": "The Indices of Deprivation 2019 provide a set of relative measures of deprivation for small areas (Lower-layer Super Output Areas*) across England, based on seven domains of deprivation. The domains were combined using the following weights to produce the overall Index of Multiple Deprivation (IMD): • Income Deprivation (22.5%) • Employment Deprivation (22.5%) • Education, Skills and Training Deprivation (13.5%) • Health Deprivation and Disability (13.5%) • Crime (9.3%) • Barriers to Housing and Services (9.3%) • Living Environment Deprivation (9.3%) In addition to the Index of Multiple Deprivation and the seven domain indices, there are two supplementary indices: the Income Deprivation Affecting Children Index (IDACI) and the Income Deprivation Affecting Older People Index (IDAOPI). *LSOAs (Lower-layer Super Output Areas) are small areas designed to be of a similar population size, with an average of approximately 1,500 residents or 650 households. There are 32,844 Lower-layer Super Output Areas (LSOAs) in England. They were produced by the Office for National Statistics for the reporting of small area statistics. Following the 2011 Census, the geography of Lower-layer Super Output Areas was revised and the number of areas has increased from 32,482 (as used for the Indices of Deprivation 2010, 2007 and 2004) to 32,844 (used for the Indices of Deprivation 2019). The boundaries of the vast majority (96 per cent) of these 32,844 areas are unchanged since the 2010, 2007 and 2004 Indices. A range of summary measures are available for higher-level geographies including local authority districts and upper-tier local authorities, local enterprise partnerships, and clinical commissioning groups. The Index of Multiple Deprivation, domain indices and the supplementary indices, together with the higher-level geography summaries, are collectively referred to as the Indices of Deprivation. Chapter 3 of the Research Report gives advice on using and interpreting the data. Most of the data used in the Indices of Deprivation 2015 relates to the tax year 2012/13 - see Chapter 4 of the Technical Report for more details. All of the data files and supporting documents for the English Indices of Deprivation 2015 are available at http://www.gov.uk/government/statistics/english-indices-of-deprivation-2019 . For statistical enquiries, please contact: mailto:indices.deprivation@communities.gsi.gov.uk",
  "dcterms:issued": "2024-02-13T09:25:43.096036Z",
  "dcat:inSeries": "https://example.org/data/English-Indices-of-Deprivation",
  "dcterms:license": "http://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/",
  "dh:hasSchema": "https://example.org/data/English-Indices-of-Deprivation/release/2019/schema",
  "@id": "English-Indices-of-Deprivation/release/2019",
  "dh:hasRevision": [
    "https://example.org/data/English-Indices-of-Deprivation/release/2019/revision/1"
  ],
  "dh:reasonForChange": "Changes between Indices may mean that care should be taken when comparing iterations over time.",
  "@type": "dh:Release",
  "dcat:distribution": {
    "text/csv": {
      "@id": "English-Indices-of-Deprivation/release/2019.csv",
      "dcat:mediaType": "text/csv",
      "dcat:downloadURL": "https://example.org/data/English-Indices-of-Deprivation/release/2019.csv"
    },
    "application/json": {
      "@id": "English-Indices-of-Deprivation/release/2019.json",
      "dcat:mediaType": "application/json",
      "dcat:downloadURL": "https://example.org/data/English-Indices-of-Deprivation/release/2019.json"
    },
    "application/csvm+json": {
      "@id": "English-Indices-of-Deprivation/release/2019-metadata.json",
      "dcat:mediaType": "application/csvm+json",
      "dcat:downloadURL": "https://example.org/data/English-Indices-of-Deprivation/release/2019-metadata.json"
    }
  },
  "dcterms:title": "2019",
  "@context": [
    "https://cdn.jsdelivr.net/gh/Swirrl/datahost-prototypes@1282114/datahost-ld-openapi/resources/jsonld-context.json",
    {
      "@base": "https://example.org/data/"
    }
  ]
}

RickMoynihan commented 6 months ago

This looks good.

I've tried converting it to RDF

... TODO