bes Updated for version 3.21.1
The Backend Server (BES) is the lower two tiers of the Hyrax data server
CmrNames.h
1// CmrNames.h
2
3// -*- mode: c++; c-basic-offset:4 -*-
4
5// This file is part of gateway_module, A C++ module that can be loaded in to
6// the OPeNDAP Back-End Server (BES) and is able to handle remote requests.
7
8// Copyright (c) 2018 OPeNDAP, Inc.
9// Author: Nathan David Potter <ndp@opendap.org>
10//
11// This library is free software; you can redistribute it and/or
12// modify it under the terms of the GNU Lesser General Public
13// License as published by the Free Software Foundation; either
14// version 2.1 of the License, or (at your option) any later version.
15//
16// This library is distributed in the hope that it will be useful,
17// but WITHOUT ANY WARRANTY; without even the implied warranty of
18// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19// Lesser General Public License for more details.
20//
21// You should have received a copy of the GNU Lesser General Public
22// License along with this library; if not, write to the Free Software
23// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
24//
25// You can contact OPeNDAP, Inc. at PO Box 112, Saunderstown, RI. 02874-0112.
26
27#ifndef E_CmrNames_H
28#define E_CmrNames_H 1
29
30#define CMR_NAME "cmr"
31
32#define CMR_CATALOG_NAME "CMR"
33
34// These are the names of the be keys used to configure the handler.
35#define CMR_COLLECTIONS_KEY "CMR.Collections"
36#define CMR_FACETS_KEY "CMR.Facets"
37#define CMR_HOST_URL_KEY "CMR.host.url"
38#define DEFAULT_CMR_HOST_URL "https://cmr.earthdata.nasa.gov/"
39
40#define CMR_MAX_PAGE_SIZE 2000
41#define CMR_PROVIDERS_SEARCH_ENDPOINT "search/providers"
42#define CMR_COLLECTIONS_SEARCH_API_ENDPOINT "search/collections.umm_json"
43#define CMR_GRANULES_SEARCH_API_ENDPOINT "search/granules.json"
44#define CMR_GRANULES_SEARCH_API_UMM_ENDPOINT "search/granules.umm_json"
45
46#define CMR_META_KEY "meta"
47#define CMR_CONCEPT_ID_KEY "concept-id"
48#define CMR_UMM_KEY "umm"
49#define CMR_HITS_KEY "hits"
50
51#if 0
52#define CMR_PROVIDERS_API_ENDPOINT "ingest/providers"
53
54#define CMR_PROVIDER_LIST_ID_KEY "provider-id"
55#define CMR_PROVIDER_LIST_SHORT_NAME_KEY "short-name"
56#define CMR_PROVIDER_LIST_CMR_ONLY_KEY "cmr-only"
57#define CMR_PROVIDER_LIST_SMALL_KEY "small"
58#define CMR_PROVIDER_LIST_CONSORTIUMS_KEY "consortiums"
59
60#define CMR_LEGACY_PROVIDER_KEY "provider"
61#define CMR_LEGACY_PROVIDER_ID_KEY "provider_id"
62#define CMR_LEGACY_PROVIDER_DESCRIPTION_OF_HOLDINGS_KEY "description_of_holding"
63#define CMR_LEGACY_PROVIDER_ORGANIZATION_NAME_KEY "organization_name"
64#define CMR_LEGACY_PROVIDER_CONTACTS_KEY "contacts"
65#define CMR_LEGACY_PROVIDER_REST_ONLY_KEY "rest_only"
66#endif
67
68
69#define CMR_PROVIDER_ID_KEY "ProviderId"
70#define CMR_DESCRIPTION_OF_HOLDING_KEY "DescriptionOfHolding"
71
72#define CMR_COLLECTION_ABSTRACT_KEY "Abstract"
73#define CMR_COLLECTION_ENTRY_TITLE_KEY "EntryTitle"
74#define CMR_COLLECTION_SHORT_NAME_KEY "ShortName"
75
76#define CMR_TEMPORAL_NAVIGATION_FACET_KEY "temporal"
77
78#define CMR_V2_TEMPORAL_FACET_TITLE_VALUE "Temporal"
79#define CMR_V2_FEED_KEY "feed"
80#define CMR_V2_ENTRY_KEY "entry"
81#define CMR_V2_FACETS_KEY "facets"
82#define CMR_V2_HAS_CHILDREN_KEY "has_children"
83#define CMR_V2_CHILDREN_KEY "children"
84#define CMR_V2_TITLE_KEY "title"
85#define CMR_V2_YEAR_TITLE_VALUE "Year"
86#define CMR_V2_MONTH_TITLE_VALUE "Month"
87#define CMR_V2_DAY_TITLE_VALUE "Day"
88#define CMR_V2_TEMPORAL_TITLE_VALUE "Temporal"
89
90#define CMR_UMM_ITEMS_KEY "items"
91#define CMR_UMM_UMM_KEY "umm"
92#define CMR_UMM_META_KEY "meta"
93#define CMR_UMM_NAME_KEY "name"
94#define CMR_UMM_RELATED_URLS_KEY "RelatedUrls"
95#define CMR_UMM_GRANULE_UR_KEY "GranuleUR"
96#define CMR_UMM_CONCEPT_ID_KEY "concept-id"
97#define CMR_UMM_DATA_GRANULE_KEY "DataGranule"
98#define CMR_UMM_ARCHIVE_AND_DIST_INFO_KEY "ArchiveAndDistributionInformation"
99#define CMR_UMM_SIZE_KEY "Size"
100#define CMR_UMM_SIZE_UNIT_KEY "SizeUnit"
101#define CMR_UMM_REVISION_DATE_KEY "revision-date"
102#define CMR_UMM_URL_KEY "URL"
103#define CMR_UMM_TYPE_KEY "Type"
104#define CMR_UMM_TYPE_GET_DATA_VALUE "GET DATA"
105#define CMR_UMM_TYPE_USE_SERVICE_API_VALUE "USE SERVICE API"
106#define CMR_UMM_SUBTYPE_KEY "Subtype"
107#define CMR_UMM_SUBTYPE_KEY_OPENDAP_DATA_VALUE "OPENDAP DATA"
108
109
110#define CMR_UMM_DESCRIPTION_KEY "Description"
111
112#define CMR_GRANULE_ID_KEY "id"
113#define CMR_GRANULE_SIZE_KEY "granule_size"
114#define CMR_GRANULE_LMT_KEY "updated"
115#define CMR_GRANULE_LINKS_KEY "links"
116#define CMR_GRANULE_LINKS_REL_DATA_ACCESS "http://esipfed.org/ns/fedsearch/1.1/data#"
117#define CMR_GRANULE_LINKS_REL_METADATA_ACCESS "http://esipfed.org/ns/fedsearch/1.1/data#"
118#define CMR_GRANULE_LINKS_REL_SERVICE "http://esipfed.org/ns/fedsearch/1.1/service#"
119#define CMR_GRANULE_LINKS "links"
120#define CMR_GRANULE_LINKS_REL "rel"
121#define CMR_GRANULE_LINKS_HREFLANG "hreflang"
122#define CMR_GRANULE_LINKS_HREF "href"
123
124#define CMR_ITEMS_KEY "items"
125#define CMR_RELATED_URLS_KEY "RelatedUrls"
126#define CMR_SUBTYPE_KEY "Subtype"
127#define CMR_RELATED_URLS_SUBTYPE_OPENDAP_DATA "OPENDAP DATA"
128
129
130
131#define MODULE CMR_NAME
132
133#endif // E_CmrNames_H