ro-crate icon indicating copy to clipboard operation
ro-crate copied to clipboard

"path" is mapped to "contentUrl" in default context

Open ptsefton opened this issue 6 years ago • 2 comments
trafficstars

Describe the bug A clear and concise description of what the bug is.

URL Provide link to RO-Lite page or source code most related to the bug.

Suggested fix Do you have any suggestions on how to fix the bug?

Additional context Add any other context about the problem here.

ptsefton avatar Nov 19 '19 21:11 ptsefton

As a legacy from DataCrate (which used path mapped to contentUrl) we still have that in the default context. It should be removed.

https://researchobject.github.io/ro-crate/1.0/context.jsonld

ptsefton avatar Nov 19 '19 21:11 ptsefton

Maybe we should consider using URL - jsut noticed that in the W3C Tabular Metadata Spec they use url to refer to a file.

{
  "@context": ["http://www.w3.org/ns/csvw", {"@language": "en"}],
  "url": "tree-ops.csv",
  "dc:title": "Tree Operations",
  "dcat:keyword": ["tree", "street", "maintenance"],
  "dc:publisher": {
    "schema:name": "Example Municipality",
    "schema:url": {"@id": "http://example.org"}
  },
  "dc:license": {"@id": "http://opendefinition.org/licenses/cc-by/"},
  "dc:modified": {"@value": "2010-12-31", "@type": "xsd:date"},
  "tableSchema": {
    "columns": [{
      "name": "GID",
      "titles": ["GID", "Generic Identifier"],
      "dc:description": "An identifier for the operation on a tree.",
      "datatype": "string",
      "required": true
    }, {
      "name": "on_street",
      "titles": "On Street",
      "dc:description": "The street that the tree is on.",
      "datatype": "string"
    }, {
      "name": "species",
      "titles": "Species",
      "dc:description": "The species of the tree.",
      "datatype": "string"
    }, {
      "name": "trim_cycle",
      "titles": "Trim Cycle",
      "dc:description": "The operation performed on the tree.",
      "datatype": "string"
    }, {
      "name": "inventory_date",
      "titles": "Inventory Date",
      "dc:description": "The date of the operation that was performed.",
      "datatype": {"base": "date", "format": "M/d/yyyy"}
    }],
    "primaryKey": "GID",
    "aboutUrl": "#gid-{GID}"
  }
}

ptsefton avatar Aug 23 '21 06:08 ptsefton