Figshare · Schema

PublicFile

Figshare PublicFile schema

Research DataData RepositoryOpen ScienceDOIDatasetsAcademicFile StorageOpen Access

Properties

Name Type Description
id integer File id
name string File name
size integer File size
is_link_only boolean True if file is hosted somewhere else
download_url string Url for file download
supplied_md5 string File supplied md5
computed_md5 string File computed md5
mimetype string MIME Type of the file, it defaults to an empty string
View JSON Schema on GitHub

JSON Schema

figshare-publicfile-schema.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "PublicFile",
  "description": "Figshare PublicFile schema",
  "required": [
    "computed_md5",
    "download_url",
    "id",
    "is_link_only",
    "name",
    "size",
    "supplied_md5"
  ],
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "description": "File id",
      "example": 3000002
    },
    "name": {
      "type": "string",
      "description": "File name",
      "example": "test.xls"
    },
    "size": {
      "type": "integer",
      "description": "File size",
      "example": 14848
    },
    "is_link_only": {
      "type": "boolean",
      "description": "True if file is hosted somewhere else",
      "example": false
    },
    "download_url": {
      "type": "string",
      "description": "Url for file download",
      "format": "url",
      "example": "https://ndownloader.figshare.com/files/3000002"
    },
    "supplied_md5": {
      "type": "string",
      "description": "File supplied md5",
      "example": "043a51806d646e88cafbf19e7b82846f"
    },
    "computed_md5": {
      "type": "string",
      "description": "File computed md5",
      "example": "043a51806d646e88cafbf19e7b82846f"
    },
    "mimetype": {
      "type": "string",
      "description": "MIME Type of the file, it defaults to an empty string",
      "example": "application/pdf"
    }
  },
  "x-tag": "common"
}