Skip to content

add dh:distribution and .csv/. json routes for commits #399

@xdrcft8000

Description

@xdrcft8000

Currently the JSON for a commit is

{
  "dh:updates": "09bafe350c94f417e9a881dd4d20e518cb9ade9b9c042ff7bbc3e48aaaa69832",
  "dh:revisionSnapshotCSV": "032b95eb3577d01e3dadca20336563ef2f1f4b1483747183e5130c2eadeabce4",
  "dcterms:description": "change for x-series-on-GCP",
  "dh:appliesToRevision": "https://example.org/data/x-series-on-GCP/release/release-1/revision/1",
  "dcterms:format": "text/csv",
  "@id": "x-series-on-GCP/release/release-1/revision/1/commit/1",
  "@type": "dh:Change",
  "dh:changeKind": "https://publishmydata.com/def/datahost/ChangeKindAppend",
  "@context": [
    "https://cdn.jsdelivr.net/gh/Swirrl/datahost-prototypes@1282114/datahost-ld-openapi/resources/jsonld-context.json",
    {
      "@base": "https://example.org/data/"
    }
  ]
}

The dcterms:format is incorrect and should be fixed by adding routes for .csv and .json
the format can then be determined by dh:distribution like in release and revision

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions