{ "title": "Smart Data Models - Data Resource", "description": "Data Resource.Converted for Smart Data Models initiative from original frictionless data", "$schemaVersion": "0.0.1", "$schema": "http://json-schema.org/schema", "id": "https://smart-data-models.github.io/dataModel.FrictionlessData/DataResourceFrictionlessData/schema.json", "type": "object", "required": [ "name", "id", "type" ], "allOf": [ { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Location-Commons" }, { "properties": { "type": { "type": "string", "description": "Property. NGSI Entity type\u00b7 It has to be DataResourceFrictionlessData", "enum": [ "DataResourceFrictionlessData" ] }, "id": { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/EntityIdentifierType" }, "profile": { "type": "string", "description": "Property. Profile. Every Package and Resource descriptor has a profile. The default profile, if none is declared, is 'data-package' for Package and 'data-resource' for Resource. The profile of this descriptor" }, "name": { "type": "string", "description": "Property. Name. This is ideally a url-usable and human-readable name. Name 'SHOULD' be invariant, meaning it 'SHOULD NOT' change when its parent descriptor is updated. An identifier string. Lower case characters with '.', '_', '-' and '/' are allowed" }, "path": { "type": "array", "minItems": 1, "items": { "type": "string" }, "description": "Property. Path. The dereferenced value of each referenced data source in 'path' 'MUST' be commensurate with a native, dereferenced representation of the data the resource describes. For example, in a *Tabular* Data Resource, this means that the dereferenced value of 'path' 'MUST' be an array. A reference to the data for this resource, as either a path as a string, or an array of paths as strings. of valid URIs" }, "data": { "type": "array", "description": "Property. Data. Inline data for this resource", "items": { "type": "object" } }, "schema": { "type": "object", "description": "Property. Schema. A schema for this resource" }, "title": { "type": "string", "description": "Property. Title. A human-readable title" }, "description": { "type": "string", "description": "Property. Description. A text description. Markdown is encouraged" }, "homepage": { "type": "string", "description": "Property. Home Page. The home on the web that is related to this data package" }, "sources": { "type": "array", "description": "Property. Sources. . The raw sources for this resource", "items": { "type": "object", "properties": { "title": { "type": "string" }, "path": { "type": "string" }, "email": { "type": "string", "format": "idn-email" } } } }, "licenses": { "type": "array", "description": "Property. Licenses. This property is not legally binding and does not guarantee that the package is licensed under the terms defined herein. The license(s) under which the resource is published", "minItems": 1, "items": { "type": "object", "properties": { "name": { "type": "string" }, "path": { "type": "string" }, "title": { "type": "string" } } } }, "format": { "type": "string", "description": "Property. Format. 'csv', 'xls', 'json' are examples of common formats. The file format of this resource" }, "mediatype": { "type": "string", "description": "Property. Media Type. The media type of this resource. Can be any valid media type listed with [IANA](https://www.iana.org/assignments/media-types/media-types.xhtml)" }, "encoding": { "type": "string", "description": "Property. Encoding. The file encoding of this resource" }, "bytes": { "type": "integer", "description": "Property. Bytes. The size of this resource in bytes" }, "hash": { "type": "string", "pattern": "^([^:]+:[a-fA-F0-9]+|[a-fA-F0-9]{32}|)$", "description": "Property. Hash. The MD5 hash of this resource. Indicate other hashing algorithms with the {algorithm}:{hash} format" } } } ] }