diff --git a/schemas/document-schema.json b/schemas/document-schema.json index 9dee870..e90581c 100644 --- a/schemas/document-schema.json +++ b/schemas/document-schema.json @@ -4,52 +4,39 @@ "title": "Script Schema [DRAFT]", "description": "Schema for Document data type", "type": "object", - "definitions":{ - "keyword":{ - "type":"object", - "properties":{ - "name":{ - "title":"Name", - "type":"string" - }, - "vocabulary":{ - "title":"Vocabulary name", - "type":"string" - }, - "uri":{ - "title":"Vocabulary URI", - "type":"string" + "definitions": { + "keyword": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "title": "Name", + "type": "string" + }, + "vocabulary": { + "title": "Vocabulary name", + "type": "string" + }, + "uri": { + "title": "Vocabulary URI", + "type": "string" + } } } } }, - "properties": { - - "repositoryid": { - "type": "string", - "title": "Collection ID that owns the document", - "description": "Abbreviation for the collection that owns the document" - }, - - "published": { - "type": "integer", - "title": "Status", - "description": "Status - 0=draft, 1=published", - "default": 0 - }, - - "overwrite": { + "properties": { + "idno": { "type": "string", - "description": "Overwrite document if already exists?", - "enum":["yes","no"], - "default": "no" + "title": "Project unique identifier", + "description": "Project unique identifier" }, - - "metadata_information": { + "metadata_information": { "type": "object", "title": "Document metadata information", "description": "Document description", - "properties": { + "properties": { "title": { "title": "Document title", "description": "Document title", @@ -106,8 +93,7 @@ "type": "object", "title": "Document Description", "description": "Document Description", - "properties": { - + "properties": { "title_statement": { "type": "object", "description": "Study title", @@ -119,7 +105,7 @@ }, "title": { "type": "string", - "title": "Title" + "title": "Title" }, "sub_title": { "type": "string", @@ -130,8 +116,8 @@ "title": "Abbreviation or Acronym" }, "translated_title": { - "title": "Translated Title", - "type": "string" + "title": "Translated Title", + "type": "string" } }, "required": [ @@ -139,7 +125,6 @@ "title" ] }, - "authors": { "type": "array", "title": "Authors", @@ -158,7 +143,7 @@ "last_name": { "title": "Last name", "type": "string" - }, + }, "affiliation": { "title": "Affiliation", "type": "string" @@ -192,7 +177,6 @@ "first_name" ] }, - "editors": { "type": "array", "title": "Editors", @@ -211,7 +195,7 @@ "last_name": { "title": "Last name", "type": "string" - }, + }, "affiliation": { "title": "Affiliation", "type": "string" @@ -222,28 +206,26 @@ "first_name" ] }, - "date_created": { "type": "string", - "title":"Date created", + "title": "Date created", "description": "Date of creation" }, "date_available": { "type": "string", - "title":"Date available", - "description": "Date (often a range) that the resource will become or did become available." + "title": "Date available", + "description": "Date (often a range) that the resource will become or did become available." }, "date_modified": { "type": "string", - "title":"Date last modified", - "description": "Date on which the resource was changed." + "title": "Date last modified", + "description": "Date on which the resource was changed." }, "date_published": { "type": "string", - "title":"Date published", - "description": "Date on which document was published." + "title": "Date published", + "description": "Date on which document was published." }, - "identifiers": { "type": "array", "title": "Other identifiers", @@ -265,20 +247,17 @@ "identifier" ] } - }, - + }, "type": { "type": "string", - "title":"Resource type", + "title": "Resource type", "description": "Valid values include - `article`, `book`, `booklet`, `collection`, `conference`, `inbook`, `incollection`, `inproceeding`,`manual`, `masterthesis`, `patent`, `phdthesis`, `proceedings`, `techreport`, `working-paper`, `website`, `other` " }, - "status": { "title": "Status", "type": "string", "description": "Status of the document - e.g. `Draft`, `Draft released for comment`, `Final draft released for comment`, `Final` " }, - "description": { "title": "Description", "type": "string", @@ -302,16 +281,17 @@ }, "parent_id": { "title": "Parent Identifier", - "description":"For sub levels, provide the ID of the parent TOC ID", + "description": "For sub levels, provide the ID of the parent TOC ID", "type": "string" }, "name": { "title": "Title", "type": "string" - } + } }, "required": [ - "id","name" + "id", + "name" ] } }, @@ -322,7 +302,7 @@ }, "notes": { "type": "array", - "title": "Notes", + "title": "Notes", "items": { "type": "object", "properties": { @@ -333,16 +313,14 @@ } } }, - "scope": { "title": "Scope", "type": "string", "description": "The extent or scope of the content of the resource. This fields maps to Dublin Core's coverage field." }, - "ref_country": { "type": "array", - "title": "Reference country", + "title": "Reference country", "items": { "type": "object", "properties": { @@ -357,7 +335,6 @@ } } }, - "geographic_units": { "title": "Geographic locations", "description": "List of geographic locations (regions, countries, states, provinces, etc.) describing the geographic coverahe of the research project.", @@ -386,33 +363,31 @@ ] } }, - - "bbox":{ - "title":"Geographic bounding box", - "type":"array", - "items":{ - "type":"object", - "properties":{ - "west":{ - "title":"West", - "type":"string" + "bbox": { + "title": "Geographic bounding box", + "type": "array", + "items": { + "type": "object", + "properties": { + "west": { + "title": "West", + "type": "string" }, - "east":{ - "title":"East", - "type":"string" + "east": { + "title": "East", + "type": "string" }, - "south":{ - "title":"South", - "type":"string" + "south": { + "title": "South", + "type": "string" }, - "north":{ - "title":"North", - "type":"string" + "north": { + "title": "North", + "type": "string" } } } }, - "spatial_coverage": { "title": "Spatial coverage", "type": "string", @@ -422,18 +397,16 @@ "title": "Temporal coverage", "type": "string", "description": "The temporal extent or scope of the content of the resource." - }, - + }, "publication_frequency": { "type": "string", - "title":"Publication frequency", - "description": "Current stated publication frequency of either an item or an update to an item. Dates are included when the beginning date of the current frequency is not the same as the beginning date of publication." + "title": "Publication frequency", + "description": "Current stated publication frequency of either an item or an update to an item. Dates are included when the beginning date of the current frequency is not the same as the beginning date of publication." }, - "languages": { "type": "array", "title": "Language", - "description": "Documentation language e.g. English, French, etc.", + "description": "Documentation language e.g. English, French, etc.", "items": { "type": "object", "properties": { @@ -443,7 +416,7 @@ }, "code": { "title": "Code", - "type": "string" + "type": "string" } }, "required": [ @@ -451,10 +424,9 @@ ] } }, - "license": { "type": "array", - "title": "License", + "title": "License", "items": { "type": "object", "properties": { @@ -467,13 +439,14 @@ "type": "string" } }, - "required":["name"] + "required": [ + "name" + ] } }, - "bibliographic_citation": { "type": "array", - "title":"Bibliographic citation", + "title": "Bibliographic citation", "description": "A bibliographic reference for the resource.", "items": { "type": "object", @@ -487,113 +460,102 @@ "type": "string" } }, - "required":["citation"] + "required": [ + "citation" + ] } }, - "chapter": { "type": "string", "title": "Chapter number", - "description":"A chapter or section number" + "description": "A chapter or section number" }, "edition": { "type": "string", "title": "Edition", - "description":"The edition of a book" + "description": "The edition of a book" }, - "institution": { "type": "string", "title": "Institution", - "description":"The sponsoring institution of a document." + "description": "The sponsoring institution of a document." }, - "journal": { "type": "string", "title": "Journal name", - "description":"Name of the Journal" + "description": "Name of the Journal" }, - "volume": { "type": "string", "title": "Volume number", - "description":"Volume number" - }, - + "description": "Volume number" + }, "number": { "type": "string", "title": "Number", - "description":"The number of a journal, magazine, technical report, or of a work in a series. An issue of a journal or magazine is usually identified by its volume and number; the organization that issues a technical report usually gives it a number; and sometimes books are given numbers in a named series." + "description": "The number of a journal, magazine, technical report, or of a work in a series. An issue of a journal or magazine is usually identified by its volume and number; the organization that issues a technical report usually gives it a number; and sometimes books are given numbers in a named series." }, - "pages": { "type": "string", "title": "Page numbers", - "description":"One or more page numbers or ranges of number, such as 37--42, or 7,53,82--94" + "description": "One or more page numbers or ranges of number, such as 37--42, or 7,53,82--94" }, "series": { "type": "string", "title": "Series name", - "description":"The name given to a series or set of books. When citing an entire book, the title field gives its title and the optional series field gives the name of a series in which the book was published." + "description": "The name given to a series or set of books. When citing an entire book, the title field gives its title and the optional series field gives the name of a series in which the book was published." }, - "publisher": { "type": "string", "title": "Publisher", - "description":"Entity responsible for making the resource available" + "description": "Entity responsible for making the resource available" }, - "publisher_address": { "type": "string", - "title":"Publisher's address", - "description": "For major publishing houses, just the city is given. For small publishers, you can help the reader by giving the complete address." - }, - + "title": "Publisher's address", + "description": "For major publishing houses, just the city is given. For small publishers, you can help the reader by giving the complete address." + }, "annote": { "type": "string", "title": "Annotation", - "description":"For annotation, element will not be used by standard bibliography styles like the MLA, APA or Chicago, but may be used by others that produce an annotated bibliography." + "description": "For annotation, element will not be used by standard bibliography styles like the MLA, APA or Chicago, but may be used by others that produce an annotated bibliography." }, - "booktitle": { "type": "string", "title": "Book title", - "description":"Title of a book, part of which is being cited" + "description": "Title of a book, part of which is being cited" }, - "crossref": { "type": "string", - "title": "Book title", - "description":"The database key of the entry being cross referenced" + "title": "Cross reference", + "description": "The database key of the entry being cross referenced" }, - "howpublished": { "type": "string", "title": "Store the notice for unusual publications", - "description":"The element is used to store the notice for unusual publications. The first word should be capitalized. For example, `WebPage`, or `Distributed at the local tourist office`" + "description": "The element is used to store the notice for unusual publications. The first word should be capitalized. For example, `WebPage`, or `Distributed at the local tourist office`" }, - "key": { "type": "string", "title": "Key", - "description":"A key is a field used for alphabetizing, cross referencing, and creating a label when the `author' information is missing" + "description": "A key is a field used for alphabetizing, cross referencing, and creating a label when the `author' information is missing" }, - "organization": { "type": "string", "title": "Organization", - "description":"The organization that sponsors a conference or that publishes a manual" + "description": "The organization that sponsors a conference or that publishes a manual" }, - "url": { - "type": ["string", "array"], + "type": [ + "string", + "array" + ], "items": { "type": "string" }, "title": "URL", - "description":"URL of the document, preferably a permanent URL" + "description": "URL of the document, preferably a permanent URL" }, - "translators": { "type": "array", "title": "Translators", @@ -612,7 +574,7 @@ "last_name": { "title": "Last name", "type": "string" - }, + }, "affiliation": { "title": "Affiliation", "type": "string" @@ -641,7 +603,7 @@ "last_name": { "title": "Last name", "type": "string" - }, + }, "affiliation": { "title": "Affiliation", "type": "string" @@ -660,111 +622,107 @@ "first_name" ] }, - - "contacts": { - "type": "array", - "title": "Contacts", - "description": "Contacts", - "items": { - "type": "object", - "properties": { - "name": { - "title": "Name", - "type": "string" - }, - "role": { - "title": "Role", - "type": "string" - }, - "affiliation": { - "title": "Affiliation", - "type": "string" - }, - "email": { - "title": "Email", - "type": "string" - }, - "telephone": { - "title": "Telephone", - "type": "string" - }, - "uri": { - "title": "URI", - "type": "string" - } - } - }, - "required": [ - "name" - ] + "acknowledgement_statement": { + "title": "Acknowledgement statement", + "description": "Acknowledgement statement", + "type": "string" }, - + "contacts": { + "type": "array", + "title": "Contacts", + "description": "Contacts", + "items": { + "type": "object", + "properties": { + "name": { + "title": "Name", + "type": "string" + }, + "role": { + "title": "Role", + "type": "string" + }, + "affiliation": { + "title": "Affiliation", + "type": "string" + }, + "email": { + "title": "Email", + "type": "string" + }, + "telephone": { + "title": "Telephone", + "type": "string" + }, + "uri": { + "title": "URI", + "type": "string" + } + } + }, + "required": [ + "name" + ] + }, "rights": { "type": "string", "title": "Rights", - "description":"Information about rights held in and over the resource." + "description": "Information about rights held in and over the resource." }, - "copyright": { "type": "string", "title": "Copyright", - "description":"Statement and identifier indicating the legal ownership and rights regarding use and re-use of all or part of the resource." + "description": "Statement and identifier indicating the legal ownership and rights regarding use and re-use of all or part of the resource." }, - "usage_terms": { "type": "string", "title": "Terms governing use and reproduction", - "description":"Terms Governing Use and Reproduction" + "description": "Terms Governing Use and Reproduction" }, - "disclaimer": { "type": "string", "title": "Disclaimer", - "description":"Disclaimer" + "description": "Disclaimer" }, - "security_classification": { "type": "string", "title": "Security classification control", - "description":"Specifics pertaining to the security classification associated with the document, title, abstract, contents note, and/or the author. In addition, it can contain handling instructions and external dissemination information pertaining to the dissemination of the document, title, abstract, contents note, and author." + "description": "Specifics pertaining to the security classification associated with the document, title, abstract, contents note, and/or the author. In addition, it can contain handling instructions and external dissemination information pertaining to the dissemination of the document, title, abstract, contents note, and author." }, - "access_restrictions": { "type": "string", "title": "Restrictions on Access", - "description":"Information about restrictions imposed on access to the described materials." + "description": "Information about restrictions imposed on access to the described materials." }, - "sources": { - "type":"array", + "type": "array", "title": "Sources", - "description": "Description of sources used. The element is nestable so that the sources statement might encompass a series of discrete source statements, each of which could contain the facts about an individual source. ", - "items":{ - "type": "object", - "properties": { - "source_origin":{ - "type":"string", - "title":"Origin of Source", - "description":"For historical materials, information about the origin(s) of the sources and the rules followed in establishing the sources should be specified. May not be relevant to survey data. " + "description": "Description of sources used. The element is nestable so that the sources statement might encompass a series of discrete source statements, each of which could contain the facts about an individual source. ", + "items": { + "type": "object", + "properties": { + "source_origin": { + "type": "string", + "title": "Origin of Source", + "description": "For historical materials, information about the origin(s) of the sources and the rules followed in establishing the sources should be specified. May not be relevant to survey data. " }, - "source_char":{ - "type":"string", - "title":"Characteristics of Source Noted", - "description":"Assessment of characteristics and quality of source material. May not be relevant to survey data." + "source_char": { + "type": "string", + "title": "Characteristics of Source Noted", + "description": "Assessment of characteristics and quality of source material. May not be relevant to survey data." }, - "source_doc":{ - "type":"string", - "title":"Source documentation", - "description":"Documentation and Access to Sources" - } + "source_doc": { + "type": "string", + "title": "Source documentation", + "description": "Documentation and Access to Sources" + } } } }, - - "data_sources":{ - "type":"array", - "title":"Data Sources", - "description":"Used to list the book(s), article(s), serial(s), and/or machine-readable data file(s)--if any--that served as the source(s) of the data collection.", + "data_sources": { + "type": "array", + "title": "Data Sources", + "description": "Used to list the book(s), article(s), serial(s), and/or machine-readable data file(s)--if any--that served as the source(s) of the data collection.", "items": { "type": "object", "properties": { @@ -778,7 +736,7 @@ "type": "string" }, "note": { - "title": "Note", + "title": "Note", "type": "string" } }, @@ -787,16 +745,18 @@ ] } }, - - "keywords":{ - "type": "array", - "items": {"$ref":"#/definitions/keyword"}, - "title":"Keywords", - "description":"Keywords" + "keywords": { + "allOf": [ + { + "$ref": "#/definitions/keyword" + } + ], + "title": "Keywords", + "description": "Keywords" }, - "themes":{ - "type":"array", - "description":"Themes", + "themes": { + "type": "array", + "description": "Themes", "items": { "type": "object", "properties": { @@ -845,7 +805,7 @@ }, "parent_id": { "title": "Parent topic Identifier", - "description":"For subtopics, provide the ID of the parent topic", + "description": "For subtopics, provide the ID of the parent topic", "type": "string" }, "vocabulary": { @@ -864,7 +824,6 @@ ] } }, - "disciplines": { "type": "array", "title": "Disciplines", @@ -882,7 +841,7 @@ }, "parent_id": { "title": "Parent discipline Identifier", - "description":"Parent discipline ID", + "description": "Parent discipline ID", "type": "string" }, "vocabulary": { @@ -901,25 +860,21 @@ ] } }, - "audience": { "title": "Audience", "type": "string", - "description":"A category of user for whom the resource is intended." - }, - + "description": "A category of user for whom the resource is intended." + }, "mandate": { "title": "Audience", "type": "string", - "description":"A category of user for whom the resource is intended." + "description": "A category of user for whom the resource is intended." }, - "pricing": { "title": "Pricing", "type": "string", - "description":"Current price of an item or the special export price of an item in any currency." + "description": "Current price of an item or the special export price of an item in any currency." }, - "relations": { "type": "array", "title": "Document relations", @@ -934,7 +889,7 @@ "type": { "title": "Type", "type": "string", - "enum":[ + "enum": [ "isPartOf", "hasPart", "isVersionOf", @@ -957,7 +912,7 @@ "reproducibility": { "title": "Reproducibility", "type": "object", - "properties":{ + "properties": { "statement": { "title": "Statement", "type": "string" @@ -965,7 +920,7 @@ "links": { "title": "Link", "type": "array", - "items":{ + "items": { "type": "object", "properties": { "uri": { @@ -978,21 +933,23 @@ } }, "required": [ - "uri" - ] + "uri" + ] } } - } - } + } + } }, - "required":["title_statement"], + "required": [ + "title_statement" + ], "additionalProperties": false }, - "provenance":{ - "type":"array", - "description":"Provenance", - "items":{ - "$ref":"provenance-schema.json" + "provenance": { + "type": "array", + "description": "Provenance", + "items": { + "$ref": "provenance-schema.json" } }, "tags": { @@ -1066,7 +1023,7 @@ "required": [ "model_id" ] - }, + }, "topic_description": { "type": "array", "title": "Topic information", @@ -1075,11 +1032,17 @@ "properties": { "topic_id": { "title": "Topic identifier", - "type": ["integer", "string"] + "type": [ + "integer", + "string" + ] }, "topic_score": { "title": "Topic score", - "type": ["number", "string"] + "type": [ + "number", + "string" + ] }, "topic_label": { "title": "Topic label", @@ -1112,12 +1075,11 @@ "topic_id" ] } - }, "additionalProperties": false } }, - "embeddings":{ + "embeddings": { "type": "array", "title": "Word embeddings", "description": "Word embeddings", @@ -1138,11 +1100,15 @@ }, "vector": { "title": "Vector", - "type": ["object","array"] + "type": [ + "object", + "array" + ] } }, "required": [ - "id","vector" + "id", + "vector" ] } }, @@ -1150,9 +1116,9 @@ "type": "object", "description": "Additional metadata", "properties": {} - } + } }, - "required":[ + "required": [ "document_description" ] -} +} \ No newline at end of file diff --git a/schemas/timeseries-schema.json b/schemas/timeseries-schema.json index eb043e1..7c9dd48 100644 --- a/schemas/timeseries-schema.json +++ b/schemas/timeseries-schema.json @@ -9,7 +9,7 @@ "type": "string", "title": "Project unique identifier", "description": "Project unique identifier" - }, + }, "metadata_information": { "type": "object", "title": "Metadata creation", @@ -66,25 +66,25 @@ "title": "Version Statement", "description": "Version Statement", "properties": { - "version": { - "title": "Version", - "type": "string" - }, - "version_date": { - "title": "Version Date", - "type": "string" - }, - "version_resp": { - "title": "Version Responsibility Statement", - "description": "The organization or person responsible for the version of the work", - "type": "string" - }, - "version_notes": { - "title": "Version Notes", - "type": "string" - } + "version": { + "title": "Version", + "type": "string" + }, + "version_date": { + "title": "Version Date", + "type": "string" + }, + "version_resp": { + "title": "Version Responsibility Statement", + "description": "The organization or person responsible for the version of the work", + "type": "string" + }, + "version_notes": { + "title": "Version Notes", + "type": "string" + } } - } + } }, "additionalProperties": false }, @@ -164,27 +164,27 @@ "version_statement": { "type": "object", "title": "Version Statement", - "description": "Version Statement", + "description": "Version Statement", "properties": { - "version": { - "title": "Version", - "type": "string" - }, - "version_date": { - "title": "Version Date", - "type": "string" - }, - "version_resp": { - "title": "Version Responsibility Statement", - "description": "The organization or person responsible for the version of the work", - "type": "string" - }, - "version_notes": { - "title": "Version Notes", - "type": "string" - } + "version": { + "title": "Version", + "type": "string" + }, + "version_date": { + "title": "Version Date", + "type": "string" + }, + "version_resp": { + "title": "Version Responsibility Statement", + "description": "The organization or person responsible for the version of the work", + "type": "string" + }, + "version_notes": { + "title": "Version Notes", + "type": "string" + } } - }, + }, "aliases": { "type": "array", "title": "Series other names", @@ -256,7 +256,7 @@ "type": "string", "title": "Series unit of measure" }, - "power_code":{ + "power_code": { "type": "string", "title": "Power code", "description": "Power of 10 by which the reported statistics should be multiplied. e.g. '6' indicating millions of units" @@ -278,6 +278,27 @@ "description": { "title": "Description", "type": "string" + }, + "code_list": { + "title": "Code list", + "type": "array", + "items": { + "type": "object", + "properties": { + "code": { + "title": "Code", + "type": "string" + }, + "label": { + "title": "Label", + "type": "string" + }, + "description": { + "title": "Description", + "type": "string" + } + } + } } }, "required": [ @@ -385,18 +406,16 @@ ] } }, - - "universe":{ - "title":"Universe", - "description":"Target population (the statistical universe about which information is sought)", - "type":"string" + "universe": { + "title": "Universe", + "description": "Target population (the statistical universe about which information is sought)", + "type": "string" }, - "data_collection": { "title": "Data collection", "description": " This description should include, when applicable, the sample frame used, the questions used to collect the data, the type of interview, the dates/duration of fieldwork, the sample size and the response rate. Some additional information on questionnaire design and testing, interviewer training, methods used to monitor non-response etc.", "type": "object", - "properties": { + "properties": { "data_source": { "title": "Data source", "type": "string" @@ -515,7 +534,7 @@ "items": { "type": "string" } - }, + }, "missing": { "type": "string", "title": "Treatment of missing values" @@ -528,7 +547,6 @@ "type": "string" } }, - "quality_checks": { "type": "string", "title": "Quality control methods" @@ -662,7 +680,7 @@ "title": "Mandate", "description": "Mandate", "type": "object", - "properties": { + "properties": { "mandate": { "title": "Mandate", "type": "string" @@ -670,8 +688,9 @@ "uri": { "title": "URL", "type": "string" - } } - }, + } + } + }, "time_periods": { "type": "array", "title": "Series dates", @@ -837,8 +856,7 @@ "citation_requirement": { "type": "string", "description": "Citation requirement (can include a specific recommended citation)" - }, - + }, "links": { "type": "array", "title": "Series links", @@ -879,7 +897,6 @@ } } }, - "sources": { "type": "array", "title": "Sources", @@ -896,7 +913,7 @@ "type": "array", "items": { "type": "object", - "properties": { + "properties": { "type": { "title": "Type", "type": "string" @@ -916,7 +933,7 @@ "title": "Name", "description": "Source name", "type": "string" - }, + }, "organization": { "title": "Organization", "type": "string" @@ -959,7 +976,7 @@ } } } - }, + }, "full_name": { "title": "Full name", "type": "string" @@ -981,7 +998,7 @@ "title": "Title", "type": "string", "description": "Title of the dataset inluding the country and year if relevant" - }, + }, "uri": { "title": "URI", "type": "string" @@ -996,11 +1013,11 @@ "publication_date": { "title": "Publication date", "type": "string" - }, + }, "uri": { "title": "URI", "type": "string" - }, + }, "access_date": { "title": "Access date", "type": "string" @@ -1009,7 +1026,6 @@ "title": "Note", "type": "string" } - }, "required": [ "name" @@ -1020,28 +1036,28 @@ "type": "string", "title": "Notes form original sources" }, - "direct_sources":{ - "type":"array", - "title":"Direct sources", - "description":"Refers to the sources from where the data was directly collected", - "items":{ - "type":"object", - "properties":{ - "name":{ - "title":"Name", - "type":"string" - }, - "organization":{ - "title":"Organization", - "type":"string" - }, - "uri":{ - "title":"URI", - "type":"string" - }, - "note":{ - "title":"Note", - "type":"string" + "direct_sources": { + "type": "array", + "title": "Direct sources", + "description": "Refers to the sources from where the data was directly collected", + "items": { + "type": "object", + "properties": { + "name": { + "title": "Name", + "type": "string" + }, + "organization": { + "title": "Organization", + "type": "string" + }, + "uri": { + "title": "URI", + "type": "string" + }, + "note": { + "title": "Note", + "type": "string" } } } @@ -1100,59 +1116,59 @@ "title": "Errata", "description": "List of corrected errors in data or metadata", "items": { - "type": "object", - "properties": { - "date": { - "title": "Date of erratum", - "description": "Date when the erratum was reported or published", - "type": "string" - }, - "description": { - "title": "Description of the erratum", - "description": "A description of the erratum, with information on which data or metadata were impacted", - "type": "string" - }, - "uri": { - "title": "URI", - "type": "string" - } - } + "type": "object", + "properties": { + "date": { + "title": "Date of erratum", + "description": "Date when the erratum was reported or published", + "type": "string" + }, + "description": { + "title": "Description of the erratum", + "description": "A description of the erratum, with information on which data or metadata were impacted", + "type": "string" + }, + "uri": { + "title": "URI", + "type": "string" + } + } } - }, - "acknowledgements": { + }, + "acknowledgements": { "type": "array", "title": "Other acknowledgments", "description": "Acknowledgments of persons or organizations", "items": { - "type": "object", - "properties": { - "name": { - "title": "Name", - "type": "string" - }, - "affiliation": { - "title": "Affiliation", - "type": "string" - }, - "role": { - "title": "Role", - "type": "string" + "type": "object", + "properties": { + "name": { + "title": "Name", + "type": "string" + }, + "affiliation": { + "title": "Affiliation", + "type": "string" + }, + "role": { + "title": "Role", + "type": "string" + } } - } }, "required": [ - "name" + "name" ] - }, - "acknowledgement_statement": { + }, + "acknowledgement_statement": { "title": "Acknowledgement statement", "description": "Acknowledgement statement", "type": "string" - }, - "disclaimer": { + }, + "disclaimer": { "title": "Disclaimer", "type": "string" - }, + }, "notes": { "title": "Notes", "description": "Notes", @@ -1170,12 +1186,12 @@ "type": "string" }, "uri": { - "title": "URI", + "title": "URI", "type": "string" } } } - }, + }, "related_indicators": { "type": "array", "description": "Related indicators", @@ -1183,10 +1199,10 @@ "type": "object", "properties": { "id": { - "title": "Identifier", - "description": "Indicator unique identifier", - "type": "string" - }, + "title": "Identifier", + "description": "Indicator unique identifier", + "type": "string" + }, "code": { "title": "Indicator code", "type": "string" @@ -1384,7 +1400,7 @@ "required": [ "name" ] - } + } }, "required": [ "idno", @@ -1393,148 +1409,161 @@ }, "data_structure": { "type": "array", - "description": "Data structure definition", - "items": { - "type": "object", - "properties": { - "name": { - "title": "Name", - "description": "Name (required)", - "type": "string" - }, - "label": { - "title": "Label", - "type": "string" - }, - "description": { - "title": "Description", - "type": "string" - }, - "data_type": { - "title": "Data type", - "type": "string", - "enum":[ - "string", - "integer", - "float", - "date", - "boolean" - ] - }, - "column_type": { - "title": "Column type", - "type": "string", - "enum":[ - "dimension", - "time_period", - "measure", - "attribute", - "indicator_id", - "indicator_name", - "annotation", - "geography", - "observation_value" - ] - }, - "time_period_format": - { - "title":"Time period format", - "type": "string", - "enum":[ - "YYYY", - "YYYY-MM", - "YYYY-MM-DD", - "YYYY-MM-DDTHH:MM:SS", - "YYYY-MM-DDTHH:MM:SSZ" - ] - }, - "code_list": { - "title": "Code list", - "type": "array", - "items": { - "type": "object", - "properties": { - "code": { - "title": "Code", - "type": "string" - }, - "label": { - "title": "Label", - "type": "string" - }, - "description": { - "title": "Description", - "type": "string" - } + "description": "Data structure definition", + "items": { + "type": "object", + "properties": { + "name": { + "title": "Name", + "description": "Name (required)", + "type": "string" + }, + "label": { + "title": "Label", + "type": "string" + }, + "description": { + "title": "Description", + "type": "string" + }, + "data_type": { + "title": "Data type", + "type": "string", + "enum": [ + "string", + "integer", + "float", + "date", + "boolean" + ] + }, + "column_type": { + "title": "Column type", + "type": "string", + "enum": [ + "dimension", + "time_period", + "measure", + "attribute", + "indicator_id", + "indicator_name", + "annotation", + "geography", + "observation_value" + ] + }, + "time_period_format": { + "title": "Time period format", + "type": "string", + "enum": [ + "YYYY", + "YYYY-MM", + "YYYY-MM-DD", + "YYYY-MM-DDTHH:MM:SS", + "YYYY-MM-DDTHH:MM:SSZ" + ] + }, + "code_list": { + "title": "Code list", + "type": "array", + "items": { + "type": "object", + "properties": { + "code": { + "title": "Code", + "type": "string" + }, + "label": { + "title": "Label", + "type": "string" + }, + "description": { + "title": "Description", + "type": "string" } } - }, - "code_list_reference": { - "title": "Code list reference", - "type": "object", - "properties": { - "id": { - "title": "Identifier (ID)", - "type": "string" - }, - "name": { - "title": "Name", - "type": "string" - }, - "version": { - "title": "Version", - "type": "string" - }, - "uri": { - "title": "URI", - "description": "URI", - "type": "string" - }, - "note": { - "title": "Note", - "description": "Note", - "type": "string" - } - }, - "required": [ - "uri" - ] } + }, + "code_list_reference": { + "title": "Code list reference", + "type": "object", + "properties": { + "id": { + "title": "Identifier (ID)", + "type": "string" + }, + "name": { + "title": "Name", + "type": "string" + }, + "version": { + "title": "Version", + "type": "string" + }, + "uri": { + "title": "URI", + "description": "URI", + "type": "string" + }, + "note": { + "title": "Note", + "description": "Note", + "type": "string" + } + }, + "required": [ + "uri" + ] } } + } }, - "data_notes":{ + "data_notes": { "type": "array", "title": "Data notes", "description": "Data notes", "items": { "type": "object", - "properties": { - "filters":{ + "properties": { + "filters": { "type": "array", "title": "Filters", "description": "Filters", "items": { "type": "object", "properties": { - "field": { - "title": "Field", - "type": "string" - }, - "operator": { - "title": "Operator", - "type": "string", - "enum": ["=", "!=", "<", "<=", ">", ">=", "in", "!in"] - }, - "value": { - "title": "Value", - "type": ["string", "number", "boolean", "array"] - } - } - } - }, + "field": { + "title": "Field", + "type": "string" + }, + "operator": { + "title": "Operator", + "type": "string", + "enum": [ + "=", + "!=", + "<", + "<=", + ">", + ">=", + "in", + "!in" + ] + }, + "value": { + "title": "Value", + "type": [ + "string", + "number", + "boolean", + "array" + ] + } + } + } + }, "note": { - "title": "Note", + "title": "Note", "type": "string" } } @@ -1542,8 +1571,8 @@ }, "datacite": { "type": "object", - "description": "DataCite metadata for generating DOI", - "$ref": "datacite-schema.json" + "description": "DataCite metadata for generating DOI", + "$ref": "datacite-schema.json" }, "provenance": { "type": "array",