geoblacklight 3.4.0 → 4.0.0.pre.alpha

Sign up to get free protection for your applications and to get access to all the features.
Files changed (110) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +5 -0
  3. data/app/models/concerns/geoblacklight/solr_document/citation.rb +2 -2
  4. data/app/models/concerns/geoblacklight/solr_document.rb +4 -4
  5. data/app/models/concerns/geoblacklight/spatial_search_behavior.rb +3 -3
  6. data/app/views/catalog/_header_icons.html.erb +1 -1
  7. data/app/views/catalog/_home_text.html.erb +2 -2
  8. data/app/views/relation/_relations.html.erb +15 -0
  9. data/app/views/relation/index.html.erb +4 -16
  10. data/app/views/relation/index.json.jbuilder +6 -2
  11. data/config/initializers/rails_config.rb +0 -8
  12. data/config/locales/geoblacklight.en.yml +8 -0
  13. data/lib/generators/geoblacklight/templates/catalog_controller.rb +78 -36
  14. data/lib/generators/geoblacklight/templates/settings.gbl_v1.yml +195 -0
  15. data/lib/generators/geoblacklight/templates/settings.yml +81 -22
  16. data/lib/geoblacklight/download/geojson_download.rb +1 -1
  17. data/lib/geoblacklight/download/geotiff_download.rb +1 -1
  18. data/lib/geoblacklight/download/hgl_download.rb +1 -1
  19. data/lib/geoblacklight/download/kmz_download.rb +1 -1
  20. data/lib/geoblacklight/download/shapefile_download.rb +1 -1
  21. data/lib/geoblacklight/references.rb +1 -1
  22. data/lib/geoblacklight/relation/ancestors.rb +4 -3
  23. data/lib/geoblacklight/relation/descendants.rb +4 -3
  24. data/lib/geoblacklight/relation/relation_response.rb +21 -6
  25. data/lib/geoblacklight/version.rb +1 -1
  26. data/schema/{geoblacklight-schema.json → geoblacklight-schema-1.0.json} +1 -1
  27. data/schema/geoblacklight-schema-aardvark.json +211 -0
  28. data/solr/conf/schema.xml +38 -30
  29. data/solr/conf/solrconfig.xml +15 -15
  30. data/spec/components/geoblacklight/homepage_feature_facet_component_spec.rb +1 -1
  31. data/spec/config/initializers/rails_config_spec.rb +5 -8
  32. data/spec/controllers/catalog_controller_spec.rb +6 -6
  33. data/spec/features/download_layer_spec.rb +1 -1
  34. data/spec/features/esri_viewer_spec.rb +0 -1
  35. data/spec/features/home_page_spec.rb +4 -4
  36. data/spec/features/missing_metadata_spec.rb +2 -2
  37. data/spec/features/relations_spec.rb +2 -2
  38. data/spec/features/search_results_map_spec.rb +2 -1
  39. data/spec/features/search_results_overlap_ratio_spec.rb +2 -2
  40. data/spec/features/split_view.html.erb_spec.rb +15 -11
  41. data/spec/fixtures/solr_documents/README.md +48 -36
  42. data/spec/fixtures/solr_documents/actual-papermap1.json +41 -18
  43. data/spec/fixtures/solr_documents/actual-point1.json +47 -27
  44. data/spec/fixtures/solr_documents/actual-polygon1.json +43 -18
  45. data/spec/fixtures/solr_documents/actual-raster1.json +52 -23
  46. data/spec/fixtures/solr_documents/all-relationships.json +48 -0
  47. data/spec/fixtures/solr_documents/baruch_ancestor1.json +62 -37
  48. data/spec/fixtures/solr_documents/baruch_ancestor2.json +62 -37
  49. data/spec/fixtures/solr_documents/baruch_documentation_download.json +60 -34
  50. data/spec/fixtures/solr_documents/bbox-spans-180.json +34 -16
  51. data/spec/fixtures/solr_documents/cornell_html_metadata.json +46 -26
  52. data/spec/fixtures/solr_documents/esri-dynamic-layer-all-layers.json +43 -25
  53. data/spec/fixtures/solr_documents/esri-dynamic-layer-single-layer.json +45 -28
  54. data/spec/fixtures/solr_documents/esri-feature-layer.json +44 -34
  55. data/spec/fixtures/solr_documents/esri-image-map-layer.json +45 -31
  56. data/spec/fixtures/solr_documents/esri-tiled_map_layer.json +42 -17
  57. data/spec/fixtures/solr_documents/esri-wms-layer.json +46 -21
  58. data/spec/fixtures/solr_documents/harvard_raster.json +55 -36
  59. data/spec/fixtures/solr_documents/iiif-eastern-hemisphere.json +35 -22
  60. data/spec/fixtures/solr_documents/index-map-polygon-no-downloadurl.json +48 -27
  61. data/spec/fixtures/solr_documents/index-map-polygon.json +48 -27
  62. data/spec/fixtures/solr_documents/index-map-stanford.json +54 -25
  63. data/spec/fixtures/solr_documents/index_map_point.json +54 -26
  64. data/spec/fixtures/solr_documents/metadata_no_geom.json +27 -0
  65. data/spec/fixtures/solr_documents/metadata_no_provider.json +39 -0
  66. data/spec/fixtures/solr_documents/multiple-downloads.json +33 -20
  67. data/spec/fixtures/solr_documents/no_locn_geometry.json +25 -0
  68. data/spec/fixtures/solr_documents/no_spatial.json +37 -19
  69. data/spec/fixtures/solr_documents/oembed.json +34 -17
  70. data/spec/fixtures/solr_documents/princeton-child1.json +45 -28
  71. data/spec/fixtures/solr_documents/princeton-child2.json +45 -28
  72. data/spec/fixtures/solr_documents/princeton-child3.json +45 -28
  73. data/spec/fixtures/solr_documents/princeton-child4.json +45 -28
  74. data/spec/fixtures/solr_documents/princeton-parent.json +46 -23
  75. data/spec/fixtures/solr_documents/public_direct_download.json +48 -21
  76. data/spec/fixtures/solr_documents/public_iiif_princeton.json +49 -24
  77. data/spec/fixtures/solr_documents/public_polygon_mit.json +31 -15
  78. data/spec/fixtures/solr_documents/restricted-line.json +52 -21
  79. data/spec/fixtures/solr_documents/the-related-record.json +27 -0
  80. data/spec/fixtures/solr_documents/tms.json +33 -17
  81. data/spec/fixtures/solr_documents/umn_metro_result1.json +44 -28
  82. data/spec/fixtures/solr_documents/umn_state_result1.json +44 -26
  83. data/spec/fixtures/solr_documents/umn_state_result2.json +45 -24
  84. data/spec/fixtures/solr_documents/uva_slug_colon.json +43 -20
  85. data/spec/lib/geoblacklight/download/geojson_download_spec.rb +1 -1
  86. data/spec/lib/geoblacklight/download/geotiff_download_spec.rb +1 -1
  87. data/spec/lib/geoblacklight/download/hgl_download_spec.rb +1 -1
  88. data/spec/lib/geoblacklight/download/kmz_download_spec.rb +1 -1
  89. data/spec/lib/geoblacklight/download/shapefile_download_spec.rb +1 -1
  90. data/spec/lib/geoblacklight/download_spec.rb +1 -1
  91. data/spec/lib/geoblacklight/references_spec.rb +2 -2
  92. data/spec/lib/geoblacklight/relation/ancestors_spec.rb +3 -3
  93. data/spec/lib/geoblacklight/relation/descendants_spec.rb +3 -3
  94. data/spec/lib/geoblacklight/relation/relation_response_spec.rb +32 -17
  95. data/spec/models/concerns/geoblacklight/solr_document_spec.rb +4 -4
  96. metadata +15 -19
  97. data/app/views/relation/_ancestors.html.erb +0 -8
  98. data/app/views/relation/_descendants.html.erb +0 -15
  99. data/config/initializers/new_gbl_settings_defaults_3_3.yml +0 -10
  100. data/schema/format-values.md +0 -50
  101. data/schema/geoblacklight-schema-deprecated.md +0 -39
  102. data/schema/geoblacklight-schema.md +0 -323
  103. data/schema/geometry-type-values.md +0 -11
  104. data/schema/references.md +0 -23
  105. data/schema/schema-commentary.md +0 -198
  106. data/schema/subjects.md +0 -41
  107. data/schema/type-values.md +0 -10
  108. data/spec/fixtures/solr_documents/metadata_no_dct_provenance_s.json +0 -30
  109. data/spec/fixtures/solr_documents/metadata_no_layer_geom_type_s.json +0 -17
  110. data/spec/fixtures/solr_documents/metadata_no_solr_geom.json +0 -23
@@ -3,8 +3,8 @@ require 'spec_helper'
3
3
 
4
4
  describe Geoblacklight::SolrDocument do
5
5
  let(:document) { SolrDocument.new(document_attributes) }
6
- let(:rights_field) { Settings.FIELDS.RIGHTS }
7
- let(:provenance_field) { Settings.FIELDS.PROVENANCE }
6
+ let(:rights_field) { Settings.FIELDS.ACCESS_RIGHTS }
7
+ let(:provider_field) { Settings.FIELDS.PROVIDER }
8
8
  let(:references_field) { Settings.FIELDS.REFERENCES }
9
9
  describe '#available?' do
10
10
  let(:document_attributes) { {} }
@@ -80,7 +80,7 @@ describe Geoblacklight::SolrDocument do
80
80
  end
81
81
  describe '#same_institution?' do
82
82
  describe 'within the same institution' do
83
- let(:document_attributes) { { provenance_field => 'STANFORD' } }
83
+ let(:document_attributes) { { provider_field => 'STANFORD' } }
84
84
  it 'is true' do
85
85
  allow(Settings).to receive('Institution').and_return('Stanford')
86
86
  expect(document.same_institution?).to be_truthy
@@ -91,7 +91,7 @@ describe Geoblacklight::SolrDocument do
91
91
  end
92
92
  end
93
93
  describe 'within a different institution' do
94
- let(:document_attributes) { { provenance_field => 'MIT' } }
94
+ let(:document_attributes) { { provider_field => 'MIT' } }
95
95
  it 'is false' do
96
96
  allow(Settings).to receive('Institution').and_return('Stanford')
97
97
  expect(document.same_institution?).to be_falsey
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geoblacklight
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.0
4
+ version: 4.0.0.pre.alpha
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Graves
@@ -571,14 +571,12 @@ files:
571
571
  - app/views/catalog/metadata/_missing.html.erb
572
572
  - app/views/catalog/web_services.html.erb
573
573
  - app/views/download/hgl.html.erb
574
- - app/views/relation/_ancestors.html.erb
575
- - app/views/relation/_descendants.html.erb
574
+ - app/views/relation/_relations.html.erb
576
575
  - app/views/relation/index.html.erb
577
576
  - app/views/relation/index.json.jbuilder
578
577
  - app/views/shared/_header_navbar.html.erb
579
578
  - babel.config.json
580
579
  - bin/coverage.rb
581
- - config/initializers/new_gbl_settings_defaults_3_3.yml
582
580
  - config/initializers/new_gbl_settings_defaults_3_4.yml
583
581
  - config/initializers/rails_config.rb
584
582
  - config/locales/geoblacklight.en.yml
@@ -594,6 +592,7 @@ files:
594
592
  - lib/generators/geoblacklight/templates/assets/geoblacklight.js
595
593
  - lib/generators/geoblacklight/templates/catalog_controller.rb
596
594
  - lib/generators/geoblacklight/templates/package.json
595
+ - lib/generators/geoblacklight/templates/settings.gbl_v1.yml
597
596
  - lib/generators/geoblacklight/templates/settings.yml
598
597
  - lib/generators/geoblacklight/templates/webpacker.yml
599
598
  - lib/generators/geoblacklight/webpacker_generator.rb
@@ -635,15 +634,8 @@ files:
635
634
  - lib/geoblacklight/wms_layer/feature_info_response.rb
636
635
  - lib/tasks/geoblacklight.rake
637
636
  - package.json
638
- - schema/format-values.md
639
- - schema/geoblacklight-schema-deprecated.md
640
- - schema/geoblacklight-schema.json
641
- - schema/geoblacklight-schema.md
642
- - schema/geometry-type-values.md
643
- - schema/references.md
644
- - schema/schema-commentary.md
645
- - schema/subjects.md
646
- - schema/type-values.md
637
+ - schema/geoblacklight-schema-1.0.json
638
+ - schema/geoblacklight-schema-aardvark.json
647
639
  - setupJest.js
648
640
  - solr/conf/_rest_managed.json
649
641
  - solr/conf/admin-extra.html
@@ -710,6 +702,7 @@ files:
710
702
  - spec/fixtures/solr_documents/actual-point1.json
711
703
  - spec/fixtures/solr_documents/actual-polygon1.json
712
704
  - spec/fixtures/solr_documents/actual-raster1.json
705
+ - spec/fixtures/solr_documents/all-relationships.json
713
706
  - spec/fixtures/solr_documents/baruch_ancestor1.json
714
707
  - spec/fixtures/solr_documents/baruch_ancestor2.json
715
708
  - spec/fixtures/solr_documents/baruch_documentation_download.json
@@ -727,10 +720,10 @@ files:
727
720
  - spec/fixtures/solr_documents/index-map-polygon.json
728
721
  - spec/fixtures/solr_documents/index-map-stanford.json
729
722
  - spec/fixtures/solr_documents/index_map_point.json
730
- - spec/fixtures/solr_documents/metadata_no_dct_provenance_s.json
731
- - spec/fixtures/solr_documents/metadata_no_layer_geom_type_s.json
732
- - spec/fixtures/solr_documents/metadata_no_solr_geom.json
723
+ - spec/fixtures/solr_documents/metadata_no_geom.json
724
+ - spec/fixtures/solr_documents/metadata_no_provider.json
733
725
  - spec/fixtures/solr_documents/multiple-downloads.json
726
+ - spec/fixtures/solr_documents/no_locn_geometry.json
734
727
  - spec/fixtures/solr_documents/no_spatial.json
735
728
  - spec/fixtures/solr_documents/oembed.json
736
729
  - spec/fixtures/solr_documents/princeton-child1.json
@@ -742,6 +735,7 @@ files:
742
735
  - spec/fixtures/solr_documents/public_iiif_princeton.json
743
736
  - spec/fixtures/solr_documents/public_polygon_mit.json
744
737
  - spec/fixtures/solr_documents/restricted-line.json
738
+ - spec/fixtures/solr_documents/the-related-record.json
745
739
  - spec/fixtures/solr_documents/tms.json
746
740
  - spec/fixtures/solr_documents/umn_metro_result1.json
747
741
  - spec/fixtures/solr_documents/umn_state_result1.json
@@ -891,6 +885,7 @@ test_files:
891
885
  - spec/fixtures/solr_documents/actual-point1.json
892
886
  - spec/fixtures/solr_documents/actual-polygon1.json
893
887
  - spec/fixtures/solr_documents/actual-raster1.json
888
+ - spec/fixtures/solr_documents/all-relationships.json
894
889
  - spec/fixtures/solr_documents/baruch_ancestor1.json
895
890
  - spec/fixtures/solr_documents/baruch_ancestor2.json
896
891
  - spec/fixtures/solr_documents/baruch_documentation_download.json
@@ -908,10 +903,10 @@ test_files:
908
903
  - spec/fixtures/solr_documents/index-map-polygon.json
909
904
  - spec/fixtures/solr_documents/index-map-stanford.json
910
905
  - spec/fixtures/solr_documents/index_map_point.json
911
- - spec/fixtures/solr_documents/metadata_no_dct_provenance_s.json
912
- - spec/fixtures/solr_documents/metadata_no_layer_geom_type_s.json
913
- - spec/fixtures/solr_documents/metadata_no_solr_geom.json
906
+ - spec/fixtures/solr_documents/metadata_no_geom.json
907
+ - spec/fixtures/solr_documents/metadata_no_provider.json
914
908
  - spec/fixtures/solr_documents/multiple-downloads.json
909
+ - spec/fixtures/solr_documents/no_locn_geometry.json
915
910
  - spec/fixtures/solr_documents/no_spatial.json
916
911
  - spec/fixtures/solr_documents/oembed.json
917
912
  - spec/fixtures/solr_documents/princeton-child1.json
@@ -923,6 +918,7 @@ test_files:
923
918
  - spec/fixtures/solr_documents/public_iiif_princeton.json
924
919
  - spec/fixtures/solr_documents/public_polygon_mit.json
925
920
  - spec/fixtures/solr_documents/restricted-line.json
921
+ - spec/fixtures/solr_documents/the-related-record.json
926
922
  - spec/fixtures/solr_documents/tms.json
927
923
  - spec/fixtures/solr_documents/umn_metro_result1.json
928
924
  - spec/fixtures/solr_documents/umn_state_result1.json
@@ -1,8 +0,0 @@
1
- <% @relations.ancestors['docs'].each do |ancestor| %>
2
- <li class="list-group-item border-bottom-0">
3
- <%= link_to solr_document_path(ancestor[Settings.FIELDS.UNIQUE_KEY]) do %>
4
- <%= relations_icon(ancestor, 'pagelines-brands') %>
5
- <%= ancestor[Settings.FIELDS.TITLE] %>
6
- <% end %>
7
- </li>
8
- <% end %>
@@ -1,15 +0,0 @@
1
- <% @relations.descendants['docs'][0..2].each do |descendant| %>
2
- <li class="list-group-item border-bottom-0">
3
- <%= link_to solr_document_path(descendant[Settings.FIELDS.UNIQUE_KEY]) do %>
4
- <%= relations_icon(descendant, 'leaf') %>
5
- <%= descendant[Settings.FIELDS.TITLE] %>
6
- <% end %>
7
- </li>
8
- <% end %>
9
- <% unless (@relations.descendants['numFound'].to_i <= 3) %>
10
- <li class="list-group-item border-bottom-0">
11
- <%= link_to search_catalog_path({f: {"#{Settings.FIELDS.SOURCE}" => [@relations.link_id]}}) do %>
12
- <%= t('geoblacklight.relations.browse_all', count: @relations.descendants['numFound']) %>
13
- <% end %>
14
- </li>
15
- <% end %>
@@ -1,10 +0,0 @@
1
- # New GeoBlacklight v3.3 Solr field mappings
2
- FIELDS:
3
- :IDENTIFIER: 'dc_identifier_s'
4
- :LANGUAGE: 'dc_language_s'
5
- :LAYER_MODIFIED: 'layer_modified_dt'
6
- :OVERLAP_FIELD: 'solr_bboxtype'
7
- :SOURCE: 'dc_source_sm'
8
- :SUPPRESSED: 'suppressed_b'
9
- :TYPE: 'dc_type_s'
10
- :UNIQUE_KEY: 'layer_slug_s'
@@ -1,50 +0,0 @@
1
- ## GeoBlacklight Format Controlled Vocabulary
2
-
3
- #### Type: Dataset
4
- | Format | Associated Geometry Type(s) |
5
- |:----------------------------|:-------------|
6
- |ArcGRID |Raster |
7
- |CD-ROM |Vector or Raster |
8
- |DEM |Vector or Raster |
9
- |DVD-ROM |Vector or Raster |
10
- |Feature Class |Vector or Raster |
11
- |Geodatabase |Vector or Raster |
12
- |GeoJPEG |Raster |
13
- |GeoJSON |Vector |
14
- |GeoPackage |Vector or Raster |
15
- |GeoPDF |Vector or Raster |
16
- |GeoTIFF |Raster |
17
- |KML |Vector |
18
- |KMZ |Vector or Raster |
19
- |LAS | |
20
- |LAZ | |
21
- |Mixed |Vector or Raster |
22
- |Pulsewaves | |
23
- |Raster Dataset |Raster |
24
- |Shapefile |Vector |
25
- |SQLite Database|Vector or Raster |
26
- |Tabular Data |- |
27
-
28
- #### Type: Image
29
-
30
- | Format |
31
- |:----------------------------|
32
- |JPEG |
33
- |JPEG2000 |
34
- |Mixed |
35
- |MrSID |
36
- |PDF |
37
- |PNG |
38
- |TIFF |
39
-
40
-
41
- #### Type: Interactive Resource
42
- | Format |
43
- |:----------------------------|
44
- |Web Application|
45
-
46
- #### Type: Physical Object
47
- | Format |
48
- |:----------------------------|
49
- |Cartographic Material|
50
- |Paper Map|
@@ -1,39 +0,0 @@
1
- ## <a name="resource-layer">layer</a>
2
-
3
-
4
- A GIS data layer. See [this example](https://github.com/OpenGeoMetadata/edu.stanford.purl/blob/master/bb/099/zb/1450/geoblacklight.json) metadata layer.
5
-
6
- ### Attributes
7
-
8
- | Name | Type | Description | Example |
9
- | ------- | ------- | ------- | ------- |
10
- | **dc_creator_sm** | *array* | Author(s) of the layer. *Optional* | `"George Washington, Thomas Jefferson"` |
11
- | **dc_description_s** | *string* | Description for the layer. *Optional* | `"My Description"` |
12
- | **dc_format_s** | *string* | File format for the layer, ideally using a controlled vocabulary. *Optional* | `"Shapefile, GeoTIFF, ArcGRID"` |
13
- | **dc_identifier_s** | *string* | Unique identifier for layer as a URI. It should be globally unique across all institutions, assumed not to be end-user visible, and is usually of the form `http://institution/id`. See https://github.com/geoblacklight/geoblacklight/wiki/Schema for more detailed documentation. | `"http://purl.stanford.edu/vr593vj7147"` |
14
- | **dc_language_s** | *string* | Language for the layer. *Optional*. Note that future versions of the schema may make this a multi-valued field. | `"English"` |
15
- | **dc_publisher_s** | *string* | Publisher of the layer. *Optional* | `"ML InfoMap"` |
16
- | **dc_relation_sm** | *array* | *DEPRECATED* (use `dct_isPartOf_sm`). A reference to a related resource for this layer. *Optional* | `"http://purl.stanford.edu/vr593vj7147"` |
17
- | **dc_rights_s** | *string* | Access rights for the layer.<br/> **one of:**`"Public"` or `"Restricted"` | `"Public"` |
18
- | **dc_source_sm** | *array* | The identity of a layer from which this layer's data was derived. *Optional* | `"stanford-vr593vj7147"` |
19
- | **dc_subject_sm** | *array* | Subjects for the layer, preferrably in a controlled vocabulary. *Optional* | `"Census, Human settlements"` |
20
- | **dc_title_s** | *string* | Title for the layer. | `"My Title"` |
21
- | **dc_type_s** | *string* | Resource type of the layer, using DCMI Type Vocabulary, usually a `Dataset`. *Optional*<br/> **one of:**`"Dataset"` or `"Image"` or `"PhysicalObject"` | `"Dataset"` |
22
- | **dct_isPartOf_sm** | *array* | Holding entity for the layer, such as the title of a collection. *Optional* | `"Village Maps of India"` |
23
- | **dct_issued_dt** | *date-time* | Issued date for the layer, using XML Schema dateTime format (YYYY-MM-DDThh:mm:ssZ). *Optional* | `"2015-01-01T12:00:00Z"` |
24
- | **dct_provenance_s** | *string* | Institution who holds the layer. | `"Stanford"` |
25
- | **dct_references_s** | *string* | External resources that are available for the layer. The value is a JSON hash where each key is a URI for the protocol or format, and the value is the URL to the external resource. See `dct_references_s` [detailed documentation](http://geoblacklight.org/tutorial/2015/02/09/geoblacklight-overview.html). *Optional*<br/> **pattern:** `\{.*\}` | `"{ ... }"` |
26
- | **dct_spatial_sm** | *array* | Spatial coverage and place names for the layer, preferrably in a controlled vocabulary. *Optional* | `"Paris, San Francisco"` |
27
- | **dct_temporal_sm** | *array* | Temporal coverage for the layer, typically years or dates. Note that this field is not in a specific date format. *Optional* | `"1989, circa 2010, 2007-2009"` |
28
- | **geoblacklight_version** | *string* | The version of the GeoBlacklight Schema to which this metadata record conforms.<br/> **one of:**`"1.0"` | `"1.0"` |
29
- | **georss_box_s** | *string* | *DEPRECATED* (use `solr_geom`): Bounding box for the layer, as maximum values for S W N E. | `"12.6 -119.4 19.9 84.8"` |
30
- | **georss_point_s** | *string* | *DEPRECATED* (use `georss_box_s`): Point representation for layer as y, x - i.e., centroid | `"12.6 -119.4"` |
31
- | **layer_geom_type_s** | *string* | Geometry type for layer data, using controlled vocabulary.<br/> **one of:**`"Point"` or `"Line"` or `"Polygon"` or `"Raster"` or `"Scanned Map"` or `"Image"` or `"Mixed"` | `"Point"` |
32
- | **layer_id_s** | *string* | The complete identifier for the layer via WMS/WFS/WCS protocol. *Optional* | `"druid:vr593vj7147"` |
33
- | **layer_modified_dt** | *date-time* | Last modification date for the metadata record, using XML Schema dateTime format (YYYY-MM-DDThh:mm:ssZ). *Optional* | `"2015-01-01T12:00:00Z"` |
34
- | **layer_slug_s** | *string* | Identifies a layer in human-readable keywords. Note this value is visible to the user, and used for Permalinks. The value should be alpha-numeric characters separated by dashes, and is typically of the form `institution-keyword1-keyword2`. It should also be globally unique across all institutions in *your* GeoBlacklight index. See https://github.com/geoblacklight/geoblacklight/wiki/Schema for more detailed documentation.<br/> **pattern:** `^[-a-zA-Z0-9]+$` | `"stanford-andhra-pradesh-village-boundaries"` |
35
- | **solr_geom** | *string* | Bounding box of the layer as a ENVELOPE WKT (from the CQL standard) using coordinates in (West, East, North, South) order. Note that this field is indexed as a Solr spatial (RPT) field.<br/> **pattern:** `ENVELOPE(.*,.*,.*,.*)` | `"ENVELOPE(76.76, 84.76, 19.91, 12.62)"` |
36
- | **solr_year_i** | *integer* | *DEPRECATED* (only used by the Blacklight range plugin, not core GeoBlacklight, and generally you want a multi-valued field here): *Derived from* `dct_temporal_sm`. Year for which layer is valid and only a single value. Note that this field is indexed as a Solr numeric field. | `"1989"` |
37
- | **uuid** | *string* | *DEPRECATED* (use `dc_identifier_s`): Unique identifier for layer that is globally unique. | `"http://purl.stanford.edu/vr593vj7147"` |
38
-
39
-
@@ -1,323 +0,0 @@
1
- ## GeoBlacklight 1.0 Metadata Schema
2
- This is an overview of the GeoBlacklight Metadata Schema, Version 1.0. For more information on applications of these elements, visit the [Schema Commentary document](/schema/schema-commentary.md).
3
- ## Brief
4
-
5
- | Label | uri| Required?|
6
- |------------------- |-----------------------|:----------:|
7
- | [Identifier](#identifier) | `dc_identifier_s`| X|
8
- | [Rights](#rights) | `dc_rights_s`| X|
9
- | [Title](#title) | `dc_title_s`| X|
10
- | [Provenance](#provenance) | `dct_provenance_s`| X|
11
- | [Schema Version](#schema-version) | `geoblacklight_version`| X|
12
- | [Slug](#slug) | `layer_slug_s`| X|
13
- | [Bounding Box](#bounding-box) | `solr_geom`| X|
14
- | [Solr Year](#solr-year) | `solr_year_i`||
15
- | [Creator](#creator) | `dc_creator_sm`||
16
- | [Description](#description) | `dc_description_s`||
17
- | [Format](#format) | `dc_format_s`||
18
- | [Language](#language) | `dc_language_sm`||
19
- | [Publisher](#publisher) | `dc_publisher_sm`||
20
- | [Source](#source) | `dc_source_sm`||
21
- | [Subject](#subject) | `dc_subject_sm`||
22
- | [Type](#type) | `dc_type_s`||
23
- | [Is Part Of](#is-part-of) | `dct_isPartOf_sm`||
24
- | [Date Issued](#date-issued) | `dct_issued_s`||
25
- | [References](#references) | `dct_references_s`||
26
- | [Spatial Coverage](#spatial-coverage) | `dct_spatial_sm`||
27
- | [Temporal Coverage](#temporal-coverage) | `dct_temporal_sm`||
28
- | [Geometry Type](#geometry-type) | `layer_geom_type_s`||
29
- | [Layer ID](#layer-id) | `layer_id_s`||
30
- | [Modified Date](#modified-date) | `layer_modified_dt`|||
31
-
32
-
33
- ## Details
34
-
35
- ### Identifier
36
- | Label | Identifier|
37
- |:------------------------------|:-----------|
38
- | uri | `dc_identifier_s`|
39
- | Required | yes|
40
- | Type | string|
41
- | Description | Unique identifier for layer as a URI. It should be globally unique across all institutions, assumed not to be end-user visible|
42
- | Entry Guidelines | This is usually in the form of http://institution/id.|
43
- | Controlled Vocabulary | no|
44
- | Element Set | Dublin Core Metadata Element Set|
45
- | Example | "http://purl.stanford.edu/vr593vj7147"|
46
-
47
-
48
- ### Rights
49
- | Label | Rights|
50
- |:------------------------------|:---------------------------------------------------------|
51
- | uri | `dc_rights_s`|
52
- | Required | yes|
53
- | Type | string|
54
- | Description | Signals access in the geoportal and is indicated by a padlock icon. Users need to sign in to download restricted items|
55
- | Entry Guidelines | Choose either Public or Restricted|
56
- | Controlled Vocabulary | "Public" or "Restricted"|
57
- | Element Set | Dublin Core Metadata Element Set|
58
- | Example | "Public"|
59
-
60
- ### Title
61
- | Label | Title|
62
- |:------------------------------|:-----------|
63
- | uri | `dc_title_s`|
64
- | Required | yes|
65
- | Type | string|
66
- | Description | The name of the resource|
67
- | Entry Guidelines | Titles should include place names and dates when available.|
68
- | Controlled Vocabulary | no|
69
- | Element Set | Dublin Core Metadata Element Set|
70
- | Example | "Roads: Minneapolis, Minnesota, 2010"|
71
-
72
- ### Provenance
73
- | Label | Provenance|
74
- |:------------------------------|:---------------------------------------------------------|
75
- | uri | `dct_provenance_s`|
76
- | Required | yes|
77
- | Type | string|
78
- | Description | The name of the institution that holds the resource or acts as the custodian for the metadata record|
79
- | Entry Guidelines | The value for this field should be one of the agreed upon shortened names for each institution. This will embed the correct icon into the search results and item pages.|
80
- | Controlled Vocabulary | This repository contains the insitutions that have shared icons: https://github.com/geoblacklight/geoblacklight-icons|
81
- | Element Set | DCMI Metadata Terms|
82
- | Example | "Stanford"|
83
-
84
- ### Schema Version
85
- | Label | Schema Version|
86
- |:------------------------------|:---------------------------------------------------------|
87
- | uri | `geoblacklight_version` |
88
- | Required | yes|
89
- | Type | string|
90
- | Description | Indicates which version of the GeoBlacklight schema is in use|
91
- | Entry Guidelines | Only current value is "1.0"|
92
- | Controlled Vocabulary | no|
93
- | Element Set | GeoBlacklight|
94
- | Example | "1.0"|
95
-
96
- ### Slug
97
- | Label | Slug|
98
- |:------------------------------|:---------------------------------------------------------|
99
- | uri | `layer_slug_s`|
100
- | Required | yes|
101
- | Type | string|
102
- | Description | This is a string appended to the base URL of a GeoBlacklight installation to create a unique landing page for each resource. It is visible to the user and serves the purpose of forming a persistent URL for each catalog item.|
103
- | Entry Guidelines | This string must be a globally unique value. The value should be alpha-numeric characters separated by dashes.|
104
- | Controlled Vocabulary | no|
105
- | Element Set | GeoBlacklight|
106
- | Example | "stanford-andhra-pradesh-village-boundaries"|
107
-
108
- ### Bounding Box
109
- | Label | Bounding Box|
110
- |:------------------------------|:---------------------------------------------------------|
111
- | uri | `solr_geom`|
112
- | Required | yes|
113
- | Type | string|
114
- | Description | The rectangular extents of the resource. Note that this field is indexed as a Solr spatial (RPT) field|
115
- | Entry Guidelines | Bounding box of the layer as a ENVELOPE WKT (from the CQL standard) using coordinates in (West, East, North, South) order. The pattern is: ENVELOPE(.*,.*,.*,.*)|
116
- | Controlled Vocabulary | no|
117
- | Element Set | GeoBlacklight|
118
- | Example | "ENVELOPE(76.76, 84.76, 19.91, 12.62)"|
119
-
120
- ### Solr Year
121
- | Label | Solr Year|
122
- |:------------------------------|:---------------------------------------------------------|
123
- | uri | `solr_year_i`|
124
- | Required | no|
125
- | Type | integer|
126
- | Description | A four digit integer representing a year of temporal coverage or date issued for the resource. This field is used to populate the Year facet and the optional [Blacklight Range Limit gem](https://github.com/projectblacklight/blacklight_range_limit)|
127
- | Entry Guidelines | This field must be an integer.|
128
- | Controlled Vocabulary | no|
129
- | Element Set | GeoBlacklight|
130
- | Example | "1982"|
131
-
132
- ### Creator
133
- | Label | Creator|
134
- |:------------------------------|:---------------------------------------------------------|
135
- | uri | `dc_creator_sm`|
136
- | Required | no|
137
- | Type | array|
138
- | Description | The person(s) or organization that created the resource|
139
- | Entry Guidelines | This may be an individual or an organization. If available, it should match with the Library of Congress Name Authority File.|
140
- | Controlled Vocabulary | The suggested controlled vocabulary is the [Library of Congress Name Authority File](http://id.loc.gov/authorities/names.html).|
141
- | Element Set | Dublin Core Metadata Element Set|
142
- | Example | "George Washington", "Thomas Jefferson"|
143
-
144
- ### Description
145
- | Label| Description|
146
- |:------------------------------|:---------------------------------------------------------|
147
- | uri | `dc_description_s`|
148
- | Required | no|
149
- | Type | string|
150
- | Description | At minimum, this is a reiteration of the title in sentence format. Other relevant information, such as data creation methods, data sources, and special licenses, may also be included.|
151
- | Entry Guidelines | This is a plain text field.|
152
- | Controlled Vocabulary | no|
153
- | Element Set | Dublin Core Metadata Element Set|
154
- | Example | "This polygon shapefile represents boundaries of election districts in New York City. It was harvested from the NYC Open Data Portal."|
155
-
156
- ### Format
157
- | Label | Format|
158
- |:------------------------------|:---------------------------------------------------------|
159
- | uri | `dc_format_s`|
160
- | Required | no|
161
- | Type | string|
162
- | Description | This indicates the file format of the data. If a download link is included, this value shows up on the item page display in the download widget|
163
- | Entry Guidelines | Choose from set values (see Format list)|
164
- | Controlled Vocabulary | [Format Controlled Vocabulary](/schema/format-values.md)|
165
- | Element Set | Dublin Core Metadata Element Set|
166
- | Example | "Shapefile"|
167
-
168
- ### Language
169
- | Label | Language|
170
- |:------------------------------|:---------------------------------------------------------|
171
- | uri | `dc_language_sm`|
172
- | Required | no|
173
- | Type | array|
174
- | Description | Indicates the language of the data or map|
175
- | Entry Guidelines | Spell out language (in English) instead of using the ISO 639-1 code (e.g.,“French” instead of “fra”).|
176
- | Controlled Vocabulary | no|
177
- | Element Set | Dublin Core Metadata Element Set|
178
- | Example | "English"|
179
-
180
- ### Publisher
181
- | Label | Publisher|
182
- |:------------------------------|:---------------------------------------------------------|
183
- | uri | `dc_publisher_s`|
184
- | Required | no|
185
- | Type | array|
186
- | Description | The organization that made the original resource available|
187
- | Entry Guidelines | This should always be an organization.|
188
- | Controlled Vocabulary | The suggested controlled vocabulary is the [Library of Congress Name Authority File](http://id.loc.gov/authorities/names.html).|
189
- | Element Set | Dublin Core Metadata Element Set|
190
- | Example | "ML InfoMap (Firm)"|
191
-
192
- ### Source
193
- | Label | Source|
194
- |:------------------------------|:---------------------------------------------------------|
195
- | uri | `dc_source_sm`|
196
- | Required | no|
197
- | Type | array|
198
- | Description | This is used to indicate parent/child relationships between data layers and activates the Data Relations widget in GeoBlacklight|
199
- | Entry Guidelines | This is only added to the child records. Enter the layer_slug_s of the parent record(s) into this field.|
200
- | Controlled Vocabulary | no|
201
- | Element Set | Dublin Core Metadata Element Set|
202
- | Example | "stanford-vr593vj7147"|
203
-
204
- ### Subject
205
- | Label | Subject|
206
- |:------------------------------|:---------------------------------------------------------|
207
- | uri | `dc_subject_sm`|
208
- | Required | no|
209
- | Type | array|
210
- | Description | These are theme or topic keywords|
211
- | Entry Guidelines | These should be consistent and chosen from a controlled vocabulary. Use sentence style capitalization, where only the first word of a phrase is capitalized.|
212
- | Controlled Vocabulary | Recommended thesauri are [ISO Topic Categories](https://www2.usgs.gov/science/about/thesaurus-full.php?thcode=15) and Library of Congress Subject Headings.|
213
- | Element Set | Dublin Core Metadata Element Set|
214
- | Example | "Census", "Human settlements"|
215
-
216
-
217
- ### Type
218
- | Label | Type|
219
- |:------------------------------|:---------------------------------------------------------|
220
- | uri | `dc_type_s`|
221
- | Required | no|
222
- | Type | string|
223
- | Description | This is a general element to indicate the larger genre of the resource|
224
- | Entry Guidelines | Choose from Dublin Core Type values|
225
- | Controlled Vocabulary | [Type Controlled Vocabulary](/schema/type-values.md)|
226
- | Element Set | Dublin Core Metadata Element Set|
227
- | Example | "Dataset"|
228
-
229
- ### Is Part Of
230
- | Label | Is Part Of|
231
- |:------------------------------|:---------------------------------------------------------|
232
- | uri | `dct_isPartOf_sm`|
233
- | Required | no|
234
- | Type | array|
235
- | Description | Holding entity for the layer, such as the title of a collection|
236
- | Entry Guidelines | Plain text that is indexed in the Collections facet|
237
- | Controlled Vocabulary | no|
238
- | Element Set | [DCMI Metadata Terms](http://dublincore.org/documents/dcmi-terms/)|
239
- | Example | "Village Maps of India"|
240
-
241
- ### Date Issued
242
- | Label | Date Issued|
243
- |:------------------------------|:---------------------------------------------------------|
244
- | uri | `dct_issued_s`|
245
- | Required | no|
246
- | Type | string|
247
- | Description | This is the publication date for the resource|
248
- | Entry Guidelines | Use any date format, such as the XML Schema dateTime format (YYYY-MM-DDThh:mm:ssZ)|
249
- | Controlled Vocabulary | no|
250
- | Element Set | [DCMI Metadata Terms](http://dublincore.org/documents/dcmi-terms/)|
251
- | Example | "2015-01-01"|
252
-
253
- ### References
254
- | Label | References|
255
- |:------------------------------|:---------------------------------------------------------|
256
- | uri | `dct_references_s`|
257
- | Required | no|
258
- | Type | string|
259
- | Description | This element is a hash of key/value pairs for different types of external links. It integrates external services and references using the CatInterOp approach|
260
- | Entry Guidelines | See [External Services](https://github.com/geoblacklight/geoblacklight/wiki/Schema#external-services)|
261
- | Controlled Vocabulary | [References URIs](/schema/references.md)|
262
- | Element Set | DCMI Metadata Terms|
263
- | Example | "dct_references_s": "{\"http://schema.org/url\":\"http://purl.stanford.edu/bm662dm5913\",\"http://schema.org/downloadUrl\":\"http://stacks.stanford.edu/file/druid:bm662dm5913/data.zip\"}"|
264
-
265
- ### Spatial Coverage
266
- | Label | Spatial Coverage|
267
- |:------------------------------|:---------------------------------------------------------|
268
- | uri | `dct_spatial_sm`|
269
- | Required | no|
270
- | Type | array|
271
- | Description | This field is for place name keywords|
272
- | Entry Guidelines | Place name text strings should be specified out to the nation level. It is typical for the place name to represent the largest extent the data layer represents.|
273
- | Controlled Vocabulary | Recommended thesaurus is [GeoNames](https://www.geonames.org/)|
274
- | Element Set | DCMI Metadata Terms|
275
- | Example | "Philadelphia, Pennsylvania, United States"|
276
-
277
- ### Temporal Coverage
278
- | Label | Temporal Coverage|
279
- |:------------------------------|:---------------------------------------------------------|
280
- | uri | `dct_temporal_sm`|
281
- | Required | no|
282
- | Type | array|
283
- | Description | This represents the "Ground Condition" of the resource, meaning the time period data was collected or is intended to represent. Displays on the item page in the Year value|
284
- | Entry Guidelines | This is a text string and can indicate uncertainty|
285
- | Controlled Vocabulary | no|
286
- | Element Set | DCMI Metadata Terms|
287
- | Example | "2007-2009"|
288
-
289
- ### Geometry Type
290
- | Label | Geometry Type|
291
- |:------------------------------|:---------------------------------------------------------|
292
- | uri | `layer_geom_type_s`|
293
- | Required | no|
294
- | Type | string|
295
- | Description | This element shows up as Data type in GeoBlacklight, and each value has an associated icon|
296
- | Entry Guidelines | Choose from set values (see Controlled Vocabulary Lists)|
297
- | Controlled Vocabulary | [Geometry Type Controlled Vocabulary](/schema/geometry-type-values.md)|
298
- | Element Set | GeoBlacklight|
299
- | Example | "Polygon"|
300
-
301
- ### Layer ID
302
- | Label | Layer ID|
303
- |:------------------------------|:---------------------------------------------------------|
304
- | uri | `layer_id_s`|
305
- | Required | no|
306
- | Type | string|
307
- | Description | Indicates the layer id for any WMS or WFS web services listed in the dct_references_s field|
308
- | Entry Guidelines | Only the layer name is added here. The base service endpoint URLs (e.g. "https://maps-public.geo.nyu.edu/geoserver/sdr/wms") are added to the `dct_references_s` field.|
309
- | Controlled Vocabulary | no|
310
- | Element Set | GeoBlacklight|
311
- | Example | "druid:vr593vj7147"|
312
-
313
- ### Modified Date
314
- | Label | Modified Date|
315
- |:------------------------------|:---------------------------------------------------------|
316
- | uri | `layer_modified_dt`|
317
- | Required | no|
318
- | Type | date-time|
319
- | Description | Last modification date for the metadata record|
320
- | Entry Guidelines | Use the XML Schema dateTime format (YYYY-MM-DDThh:mm:ssZ)|
321
- | Controlled Vocabulary | no|
322
- | Element Set | GeoBlacklight|
323
- | Example | "2015-01-01T12:00:00Z"|