Distribution¶
Where the bytes are, in which format, and which schema they embody.
- module:
datasets0.1.0 - schema file:
/datasets/dev/Distribution.schema.json
| Term | Constraints | Consensus mapping | Alternative mappings |
|---|---|---|---|
type * | array, default ["Distribution"] | @type | - |
"Distribution"A serialisation of a dataset: where the bytes are, in which format, and which schema they embody. Storage, not content: conforms_to points back at the dataset schema the bytes are an encoding of. | type alias | dcat:Distribution |
|
download_url | string, format iri-reference | dcat:download URL |
|
access_urlLanding page where the file is reached indirectly | string, format iri-reference | dcat:access address | - |
media_type | string | dcat:media type |
|
byte_size | integer | dcat:byte size | - |
package_format | string | dcat:packaging format | - |
conforms_toIRI of the dataset schema these bytes embody | string, format iri-reference | dcterms:Conforms To | - |
table_schemaIRI of the row schema, where the serialisation is tabular | string, format iri-reference | csvw:table schema | - |
selectorThe part within a container: sheet, HDF path, SQL table, archive member | string | distribution:/properties/selector | - |
* marks a required property.
{
"$schema": "https://oo-ld.org/latest/meta/oold-meta-schema.json",
"$id": "Distribution.schema.json",
"x-oold-uuid": "48afb1c5-af8b-5e6d-a6c9-11de0aec2ca5",
"x-oold-version": "0.1.0",
"title": "Distribution",
"x-oold-instance-rdf-type": [
"Distribution"
],
"description": "A serialisation of a dataset: where the bytes are, in which format, and which schema they embody. Storage, not content: `conforms_to` points back at the dataset schema the bytes are an encoding of.",
"examples": [
{
"type": [
"Distribution"
],
"download_url": "https://example.org/data/LFP-042-cycling.csv",
"media_type": "text/csv"
}
],
"type": "object",
"properties": {
"type": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"Distribution"
]
},
"download_url": {
"type": "string",
"format": "iri-reference"
},
"access_url": {
"type": "string",
"format": "iri-reference",
"description": "Landing page where the file is reached indirectly"
},
"media_type": {
"type": "string",
"examples": [
"text/csv",
"application/x-hdf5"
]
},
"byte_size": {
"type": "integer"
},
"package_format": {
"type": "string",
"examples": [
"application/zip"
]
},
"conforms_to": {
"type": "string",
"format": "iri-reference",
"description": "IRI of the dataset schema these bytes embody"
},
"table_schema": {
"type": "string",
"format": "iri-reference",
"description": "IRI of the row schema, where the serialisation is tabular"
},
"selector": {
"type": "string",
"description": "The part within a container: sheet, HDF path, SQL table, archive member"
}
},
"required": [
"type"
],
"@context": {
"@version": 1.1,
"dcat": "http://www.w3.org/ns/dcat#",
"dcterms": "http://purl.org/dc/terms/",
"prov": "http://www.w3.org/ns/prov#",
"csvw": "http://www.w3.org/ns/csvw#",
"schema": "http://schema.org/",
"qudt": "http://qudt.org/schema/qudt/",
"qunit": "http://qudt.org/vocab/unit/",
"qkind": "http://qudt.org/vocab/quantitykind/",
"emmo": "https://w3id.org/emmo#",
"echem": "https://w3id.org/emmo/domain/electrochemistry#",
"obo": "http://purl.obolibrary.org/obo/",
"xsd": "http://www.w3.org/2001/XMLSchema#",
"distribution": {
"@id": "https://w3id.org/oo-ld/schemas/datasets/0.1/Distribution.schema.json#",
"@prefix": true
},
"id": "@id",
"type": {
"@id": "@type",
"@container": "@set"
},
"Distribution": "dcat:Distribution",
"download_url": {
"@id": "dcat:downloadURL",
"@type": "@id"
},
"access_url": {
"@id": "dcat:accessURL",
"@type": "@id"
},
"media_type": "dcat:mediaType",
"byte_size": "dcat:byteSize",
"package_format": {
"@id": "dcat:packageFormat",
"@type": "@id"
},
"conforms_to": {
"@id": "dcterms:conformsTo",
"@type": "@id"
},
"table_schema": {
"@id": "csvw:tableSchema",
"@type": "@id"
},
"selector": "distribution:/properties/selector"
},
"x-oold-context": {
"Distribution": {
"schema:DataDownload": {
"x-oold-sssom": {
"predicate_id": "skos:closeMatch",
"mapping_set_id": "https://w3id.org/oo-ld/schemas/mappings/schemaorg.sssom.tsv"
}
}
},
"download_url": {
"schema:contentUrl": {
"x-oold-sssom": {
"predicate_id": "skos:closeMatch",
"mapping_set_id": "https://w3id.org/oo-ld/schemas/mappings/schemaorg.sssom.tsv"
}
}
},
"media_type": {
"schema:encodingFormat": {
"x-oold-sssom": {
"predicate_id": "skos:closeMatch",
"mapping_set_id": "https://w3id.org/oo-ld/schemas/mappings/schemaorg.sssom.tsv"
}
}
}
}
}
$schema: https://oo-ld.org/latest/meta/oold-meta-schema.json
$id: Distribution.schema.json
x-oold-uuid: 48afb1c5-af8b-5e6d-a6c9-11de0aec2ca5
x-oold-version: 0.1.0
title: Distribution
x-oold-instance-rdf-type:
- Distribution
description: 'A serialisation of a dataset: where the bytes are, in which format, and which schema they
embody. Storage, not content: `conforms_to` points back at the dataset schema the bytes are an encoding
of.'
examples:
- type:
- Distribution
download_url: https://example.org/data/LFP-042-cycling.csv
media_type: text/csv
type: object
properties:
type:
type: array
items:
type: string
default:
- Distribution
download_url:
type: string
format: iri-reference
access_url:
type: string
format: iri-reference
description: Landing page where the file is reached indirectly
media_type:
type: string
examples:
- text/csv
- application/x-hdf5
byte_size:
type: integer
package_format:
type: string
examples:
- application/zip
conforms_to:
type: string
format: iri-reference
description: IRI of the dataset schema these bytes embody
table_schema:
type: string
format: iri-reference
description: IRI of the row schema, where the serialisation is tabular
selector:
type: string
description: 'The part within a container: sheet, HDF path, SQL table, archive member'
required:
- type
'@context':
'@version': 1.1
dcat: http://www.w3.org/ns/dcat#
dcterms: http://purl.org/dc/terms/
prov: http://www.w3.org/ns/prov#
csvw: http://www.w3.org/ns/csvw#
schema: http://schema.org/
qudt: http://qudt.org/schema/qudt/
qunit: http://qudt.org/vocab/unit/
qkind: http://qudt.org/vocab/quantitykind/
emmo: https://w3id.org/emmo#
echem: https://w3id.org/emmo/domain/electrochemistry#
obo: http://purl.obolibrary.org/obo/
xsd: http://www.w3.org/2001/XMLSchema#
distribution:
'@id': https://w3id.org/oo-ld/schemas/datasets/0.1/Distribution.schema.json#
'@prefix': true
id: '@id'
type:
'@id': '@type'
'@container': '@set'
Distribution: dcat:Distribution
download_url:
'@id': dcat:downloadURL
'@type': '@id'
access_url:
'@id': dcat:accessURL
'@type': '@id'
media_type: dcat:mediaType
byte_size: dcat:byteSize
package_format:
'@id': dcat:packageFormat
'@type': '@id'
conforms_to:
'@id': dcterms:conformsTo
'@type': '@id'
table_schema:
'@id': csvw:tableSchema
'@type': '@id'
selector: distribution:/properties/selector
x-oold-context:
Distribution:
schema:DataDownload:
x-oold-sssom:
predicate_id: skos:closeMatch
mapping_set_id: https://w3id.org/oo-ld/schemas/mappings/schemaorg.sssom.tsv
download_url:
schema:contentUrl:
x-oold-sssom:
predicate_id: skos:closeMatch
mapping_set_id: https://w3id.org/oo-ld/schemas/mappings/schemaorg.sssom.tsv
media_type:
schema:encodingFormat:
x-oold-sssom:
predicate_id: skos:closeMatch
mapping_set_id: https://w3id.org/oo-ld/schemas/mappings/schemaorg.sssom.tsv
{
"$schema": "https://w3id.org/oo-ld/schemas/datasets/dev/Distribution.schema.json",
"@context": "https://w3id.org/oo-ld/schemas/datasets/dev/Distribution.schema.json",
"id": "https://example.org/distribution/LFP-042-cycling-csv",
"type": [
"Distribution"
],
"download_url": "https://example.org/data/LFP-042-cycling.csv",
"media_type": "text/csv",
"byte_size": 48213004,
"conforms_to": "https://w3id.org/oo-ld/schemas/datasets/0.1/ElectrochemicalCyclingDataset.schema.json",
"table_schema": "https://w3id.org/oo-ld/schemas/datasets/0.1/ElectrochemicalCyclingDataRow.schema.json"
}
PREFIX csvw: <http://www.w3.org/ns/csvw#>
PREFIX datasets: <https://w3id.org/oo-ld/schemas/datasets/0.1/>
PREFIX dcat: <http://www.w3.org/ns/dcat#>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX ex_data: <https://example.org/data/>
PREFIX ex_distribution: <https://example.org/distribution/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
ex_distribution:LFP-042-cycling-csv
a dcat:Distribution ;
dcterms:conformsTo datasets:ElectrochemicalCyclingDataset.schema.json ;
csvw:tableSchema datasets:ElectrochemicalCyclingDataRow.schema.json ;
dcat:byteSize 48213004 ;
dcat:downloadURL ex_data:LFP-042-cycling.csv ;
dcat:mediaType "text/csv" ;
.
PREFIX csvw: <http://www.w3.org/ns/csvw#>
PREFIX datasets: <https://w3id.org/oo-ld/schemas/datasets/0.1/>
PREFIX dcat: <http://www.w3.org/ns/dcat#>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX ex_data: <https://example.org/data/>
PREFIX ex_distribution: <https://example.org/distribution/>
PREFIX schema1: <http://schema.org/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
ex_distribution:LFP-042-cycling-csv
a schema1:DataDownload ;
dcterms:conformsTo datasets:ElectrochemicalCyclingDataset.schema.json ;
schema1:contentUrl ex_data:LFP-042-cycling.csv ;
schema1:encodingFormat "text/csv" ;
csvw:tableSchema datasets:ElectrochemicalCyclingDataRow.schema.json ;
dcat:byteSize 48213004 ;
.
flowchart LR
n0["LFP-042-cycling-csv<br>dcat:Distribution"]
n1["ElectrochemicalCyclingDataset.schema.json"]
n2["ElectrochemicalCyclingDataRow.schema.json"]
n3[/"48213004"/]
n4["LFP-042-cycling.csv"]
n5[/"text/csv"/]
n0 -->|dcterms:Conforms To| n1
n0 -->|csvw:table schema| n2
n0 -->|dcat:byte size| n3
n0 -->|dcat:download URL| n4
n0 -->|dcat:media type| n5
flowchart LR
n0["LFP-042-cycling-csv<br>schema:DataDownload"]
n1["ElectrochemicalCyclingDataset.schema.json"]
n2["LFP-042-cycling.csv"]
n3[/"text/csv"/]
n4["ElectrochemicalCyclingDataRow.schema.json"]
n5[/"48213004"/]
n0 -->|dcterms:Conforms To| n1
n0 -->|schema:contentUrl| n2
n0 -->|schema:encodingFormat| n3
n0 -->|csvw:table schema| n4
n0 -->|dcat:byte size| n5
Storage, not content. conforms_to points back at the dataset schema the file is an encoding
of, and table_schema at the row schema where the serialisation is tabular, so a reader can
materialise rows without guessing. selector addresses one part inside a container: a sheet, an
HDF path, a table in a database, a member of an archive.