Skip to content

Commit

Permalink
feat(links): More links between files & nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
zflamig committed Mar 19, 2018
1 parent c5a1f36 commit 79f5b27
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 10 deletions.
9 changes: 5 additions & 4 deletions gdcdictionary/schemas/publication_file.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ properties:
- White Paper
- Bulletin
- Map
- Fact Sheet
data_format:
term:
$ref: "_terms.yaml#/data_format"
Expand All @@ -71,9 +72,9 @@ properties:
term:
$ref: "_terms.yaml#/data_category"
enum:
- Journal Article
- White Paper
- Bulletin
- Map
- Land Surface
- Instrument
- Risk
- Project Results
publications:
$ref: "_definitions.yaml#/to_many"
26 changes: 20 additions & 6 deletions gdcdictionary/schemas/spatiotemporal_file.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,18 @@ links:
multiplicity: many_to_one
target_type: radar_location
required: false
- name: stream_gauges
backref: spatiotemporal_files
label: data_from
multiplicity: many_to_one
target_type: stream_gauge
required: false
- name: projects
backref: spatiotemporal_files
label: member_of
target_type: project
multiplicity: many_to_one
required: true

required:
- submitter_id
Expand Down Expand Up @@ -123,16 +135,14 @@ properties:
- PNG
- JPG
- SHP
- CSV
data_category:
term:
$ref: "_terms.yaml#/data_category"
enum:
- Radar
- Satellite
- Time Series
- Photograph
- Digital Elevation Model
- Items of Interest
- Forecast
- Analysis
- Observation
passive_instruments:
$ref: "_definitions.yaml#/to_many"
derived_scenes:
Expand All @@ -145,3 +155,7 @@ properties:
$ref: "_definitions.yaml#/to_many"
radar_locations:
$ref: "_definitions.yaml#/to_many"
stream_gauges:
$ref: "_definitions.yaml#/to_many"
projects:
$ref: "_definitions.yaml#/to_one"

0 comments on commit 79f5b27

Please sign in to comment.