Skip to content

Commit

Permalink
Introducing schema revisions
Browse files Browse the repository at this point in the history
Signed-off-by: Samuele Kaplun <[email protected]>
  • Loading branch information
kaplun committed Jun 20, 2017
1 parent 4173105 commit 708e0d6
Show file tree
Hide file tree
Showing 40 changed files with 287 additions and 149 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ properties:
type: array
_private_notes:
items:
$ref: elements/sourced_value.json
$ref: elements/sourced_value-0.0.1.json
type: array
uniqueItems: true
acquisition_sources:
Expand All @@ -20,7 +20,7 @@ properties:
Sources of the metadata in the record, in inverse chronological
order (i.e. the first element is the latest one).
items:
$ref: elements/acquisition_source.json
$ref: elements/acquisition_source-0.0.1.json
type: array
uniqueItems: true
advisors:
Expand All @@ -30,22 +30,22 @@ properties:
curated_relation:
type: boolean
degree_type:
$ref: elements/degree_type.json
$ref: elements/degree_type-0.0.1.json
ids:
items:
$ref: elements/id.json
$ref: elements/id-0.0.1.json
type: array
uniqueItems: true
name:
type: string
record:
$ref: elements/json_reference.json
$ref: elements/json_reference-0.0.1.json
type: object
type: array
uniqueItems: true
arxiv_categories:
items:
$ref: elements/arxiv_categories.json
$ref: elements/arxiv_categories-0.0.1.json
type: array
uniqueItems: true
birth_date:
Expand All @@ -57,7 +57,7 @@ properties:
description: |-
Contains information about attended conferences. (their record URIs)
items:
$ref: elements/json_reference.json
$ref: elements/json_reference-0.0.1.json
type: array
uniqueItems: true
control_number:
Expand All @@ -73,7 +73,7 @@ properties:
description: |-
List of deleted records referring to this record
items:
$ref: elements/json_reference.json
$ref: elements/json_reference-0.0.1.json
title: Deleted Records
type: array
email_addresses:
Expand All @@ -99,7 +99,7 @@ properties:
name:
type: string
record:
$ref: elements/json_reference.json
$ref: elements/json_reference-0.0.1.json
description: |-
URI for the experiment record
start_year:
Expand All @@ -109,12 +109,12 @@ properties:
uniqueItems: true
ids:
items:
$ref: elements/id.json
$ref: elements/id-0.0.1.json
type: array
uniqueItems: true
inspire_categories:
items:
$ref: elements/inspire_field.json
$ref: elements/inspire_field-0.0.1.json
type: array
uniqueItems: true
legacy_creation_date:
Expand Down Expand Up @@ -158,7 +158,7 @@ properties:
type: string
type: array
new_record:
$ref: elements/json_reference.json
$ref: elements/json_reference-0.0.1.json
description: |-
Master record that replaces this record
title: New record
Expand Down Expand Up @@ -201,15 +201,15 @@ properties:
name:
type: string
record:
$ref: elements/json_reference.json
$ref: elements/json_reference-0.0.1.json
type: object
old_emails:
items:
format: email
type: string
type: array
rank:
$ref: elements/rank.json
$ref: elements/rank-0.0.1.json
start_date:
format: date
type: string
Expand All @@ -234,11 +234,11 @@ properties:
uniqueItems: true
public_notes:
items:
$ref: elements/sourced_value.json
$ref: elements/sourced_value-0.0.1.json
type: array
uniqueItems: true
self:
$ref: elements/json_reference.json
$ref: elements/json_reference-0.0.1.json
description: |-
Url of the record itself
title: Url of the record
Expand Down Expand Up @@ -269,7 +269,7 @@ properties:
type: boolean
urls:
items:
$ref: elements/url.json
$ref: elements/url-0.0.1.json
type: array
uniqueItems: true
required:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ properties:
These notes are only visible to privileged users, not regular
users.
items:
$ref: elements/sourced_value.json
$ref: elements/sourced_value-0.0.1.json
title: List of private notes
type: array
uniqueItems: true
Expand All @@ -46,10 +46,10 @@ properties:
.. note::
The :ref:`address.json#/properties/postal_address` should not
The :ref:`address-0.0.1.json#/properties/postal_address` should not
be provided for a conference.
items:
$ref: elements/address.json
$ref: elements/address-0.0.1.json
title: List of locations of the conference
type: array
uniqueItems: true
Expand All @@ -69,7 +69,7 @@ properties:
was not categorized well into title/acronym variants and was
used to boost search results.
items:
$ref: elements/title.json
$ref: elements/title-0.0.1.json
title: List of alternative titles
type: array
uniqueItems: true
Expand All @@ -80,13 +80,13 @@ properties:
title: Conference closing date
type: string
cnum:
$ref: elements/cnum.json
$ref: elements/cnum-0.0.1.json
title: CNUM of the conference
contact_details:
description: |-
:MARC: ``270``
items:
$ref: elements/contact.json
$ref: elements/contact-0.0.1.json
title: Contact information
type: array
uniqueItems: true
Expand All @@ -113,7 +113,7 @@ properties:
For the opposite concept, see :ref:`new_record`.
items:
$ref: elements/json_reference.json
$ref: elements/json_reference-0.0.1.json
type: array
external_system_identifiers:
description: |-
Expand All @@ -139,14 +139,14 @@ properties:
uniqueItems: true
inspire_categories:
items:
$ref: elements/inspire_field.json
$ref: elements/inspire_field-0.0.1.json
type: array
uniqueItems: true
legacy_creation_date:
format: date
type: string
new_record:
$ref: elements/json_reference.json
$ref: elements/json_reference-0.0.1.json
description: |-
:MARC: ``970__d``
Expand All @@ -170,12 +170,12 @@ properties:
These notes are publicly visible. For notes not shown to
regular users, see :ref:`_private_notes`.
items:
$ref: elements/sourced_value.json
$ref: elements/sourced_value-0.0.1.json
title: List of public notes
type: array
uniqueItems: true
self:
$ref: elements/json_reference.json
$ref: elements/json_reference-0.0.1.json
series:
description: |-
:MARC: ``411``
Expand All @@ -199,18 +199,18 @@ properties:
type: array
uniqueItems: true
short_description:
$ref: elements/sourced_value.json
$ref: elements/sourced_value-0.0.1.json
titles:
description: |-
:MARC: ``111__a/b``
items:
$ref: elements/title.json
$ref: elements/title-0.0.1.json
title: List of titles of the conference
type: array
uniqueItems: true
urls:
items:
$ref: elements/url.json
$ref: elements/url-0.0.1.json
type: array
uniqueItems: true
title: Conference
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ properties:
title: ORCID of the submitter
type: string
source:
$ref: source.json
$ref: source-0.0.1.json
submission_number:
description: |-
:MARC: ``541__e``
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ properties:
type: array
uniqueItems: true
country_code:
$ref: country_code.json
$ref: country_code-0.0.1.json
latitude:
description: |-
:example: 50.7736
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ additionalProperties: false
description: |-
This is structurally very similar to a Literature record, with unnecessary
fields removed. For more information about the meaning of the different
fields, see the corresponding field in :ref:`hep.json#/`.
fields, see the corresponding field in :ref:`literature-0.0.1.json#/`.
properties:
arxiv_eprint:
description: |-
Expand All @@ -22,7 +22,7 @@ properties:
full_name:
description: |-
Should be of the same form as
:ref:`hep.json#/properties/authors/items/properties/full_name`.
:ref:`literature-0.0.1.json#/properties/authors/items/properties/full_name`.
:example: ``Smith, John G.D.``
type: string
Expand Down Expand Up @@ -54,7 +54,7 @@ properties:
type: array
uniqueItems: true
document_type:
$ref: document_type.json
$ref: document_type-0.0.1.json
description: |-
:MARC: conceptually similar to ``999C5d``, but allowed values
differ.
Expand Down Expand Up @@ -135,7 +135,7 @@ properties:
:MARC: last part of ``999C5s`` (if not a page)
type: string
cnum:
$ref: cnum.json
$ref: cnum-0.0.1.json
description: |-
:MARC: ``999C5b``
journal_issue:
Expand All @@ -151,7 +151,7 @@ properties:
:MARC: second part of ``999C5s``
type: string
material:
$ref: material.json
$ref: material-0.0.1.json
page_end:
description: |-
:MARC: Last part of ``999C5s`` (if page-range)
Expand All @@ -163,7 +163,7 @@ properties:
parent_isbn:
description: |-
:MARC: ``999C5i``, but not distinguished from
the :ref:`reference.json#/properties/isbn` of the
the :ref:`reference-0.0.1.json#/properties/isbn` of the
cited document.
If the cited document is a book chapter, this is the ISBN
Expand All @@ -173,7 +173,7 @@ properties:
parent_report_number:
description: |-
:MARC: ``999C5r`` but not distinguished from the cited
document :ref:`reference.json#/properties/report_number`.
document :ref:`reference-0.0.1.json#/properties/report_number`.
type: string
parent_title:
description: |-
Expand Down Expand Up @@ -205,18 +205,18 @@ properties:
Key that was used for this citation in the document. This may be
extracted if the document is a PDF generated from a LaTeX, and
possibly coincides with the one of the
:ref:`hep.json#/properties/texkeys` assigned to the cited document
:ref:`literature-0.0.1.json#/properties/texkeys` assigned to the cited document
by Inspire and made visible in the TeX export formats.
:example: ``Maldacena:1997re``
type: string
title:
$ref: title.json
$ref: title-0.0.1.json
description: |-
:MARC: ``999C5t``
urls:
items:
$ref: url.json
$ref: url-0.0.1.json
description: |-
:MARC: ``999C5u``
type: array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ dependencies:
- relation_freetext
description: |-
:MARC: ``78002``, ``78502``, ``78708```and ``510`` (depending on type of
record and :ref:`related_record.json#/properties/relation`)
record and :ref:`related_record-0.0.1.json#/properties/relation`)
properties:
curated_relation:
type: boolean
record:
$ref: json_reference.json
$ref: json_reference-0.0.1.json
description: |-
:MARC: ``510__0`` (for Institutions and Experiments),
``78002/78502/78708w`` (for Literature and Journals).
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: |-
came from.
properties:
source:
$ref: source.json
$ref: source-0.0.1.json
value:
type: string
required:
Expand Down
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 708e0d6

Please sign in to comment.