Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
ycespb authored Dec 5, 2024
1 parent 38ae47f commit 54f609c
Showing 1 changed file with 238 additions and 12 deletions.
250 changes: 238 additions & 12 deletions book/opensearch_5_outline.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"from xml.dom import minidom\n",
"# from IPython.display import Image\n",
"from xml.etree import ElementTree\n",
"# from IPython.display import HTML\n",
"from IPython.display import HTML\n",
"from IPython.display import Markdown as md"
]
},
Expand Down Expand Up @@ -463,7 +463,7 @@
"text/markdown": [
"```xml\n",
"<?xml version=\"1.0\" ?><feed esipdiscovery:version=\"1.2\" xmlns=\"http://www.w3.org/2005/Atom\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:echo=\"https://cmr.earthdata.nasa.gov/search/site/docs/search/api.html#atom\" xmlns:eo=\"http://a9.com/-/opensearch/extensions/eo/1.0/\" xmlns:esipdiscovery=\"http://commons.esipfed.org/ns/discovery/1.2/\" xmlns:georss=\"http://www.georss.org/georss\" xmlns:gml=\"http://www.opengis.net/gml\" xmlns:os=\"http://a9.com/-/spec/opensearch/1.1/\" xmlns:relevance=\"http://a9.com/-/opensearch/extensions/relevance/1.0/\" xmlns:time=\"http://a9.com/-/opensearch/extensions/time/1.0/\"> \n",
" <updated>2024-12-05T09:52:57.562Z</updated> \n",
" <updated>2024-12-05T16:08:12.607Z</updated> \n",
" <id>https://cmr.earthdata.nasa.gov/opensearch/collections.atom</id> \n",
" <author> \n",
" <name>CMR</name> \n",
Expand Down Expand Up @@ -765,18 +765,18 @@
" <echo:cloudHosted>false</echo:cloudHosted> \n",
" <relevance:score>2.8028</relevance:score> \n",
" <echo:tag> \n",
" <echo:tagKey>gov.nasa.eosdis</echo:tagKey> \n",
" </echo:tag> \n",
" <echo:tag> \n",
" <echo:tagKey>org.geoss.geoss_data-core</echo:tagKey> \n",
" <echo:tagKey>org.ceos.wgiss.cwic.granules.prod</echo:tagKey> \n",
" <echo:data>&quot; &quot;</echo:data> \n",
" </echo:tag> \n",
" <echo:tag> \n",
" <echo:tagKey>org.ceos.wgiss.cwic.granules.provider</echo:tagKey> \n",
" <echo:data>&quot;USGSLSI&quot;</echo:data> \n",
" </echo:tag> \n",
" <echo:tag> \n",
" <echo:tagKey>org.ceos.wgiss.cwic.granules.prod</echo:tagKey> \n",
" <echo:data>&quot; &quot;</echo:data> \n",
" <echo:tagKey>org.geoss.geoss_data-core</echo:tagKey> \n",
" </echo:tag> \n",
" <echo:tag> \n",
" <echo:tagKey>gov.nasa.eosdis</echo:tagKey> \n",
" </echo:tag> \n",
" <echo:is_geoss>true</echo:is_geoss> \n",
" <echo:is_eosdis>true</echo:is_eosdis> \n",
Expand Down Expand Up @@ -891,10 +891,10 @@
" <echo:cloudHosted>false</echo:cloudHosted> \n",
" <relevance:score>2.8028</relevance:score> \n",
" <echo:tag> \n",
" <echo:tagKey>gov.nasa.eosdis</echo:tagKey> \n",
" <echo:tagKey>org.geoss.geoss_data-core</echo:tagKey> \n",
" </echo:tag> \n",
" <echo:tag> \n",
" <echo:tagKey>org.geoss.geoss_data-core</echo:tagKey> \n",
" <echo:tagKey>gov.nasa.eosdis</echo:tagKey> \n",
" </echo:tag> \n",
" <echo:is_geoss>true</echo:is_geoss> \n",
" <echo:is_eosdis>true</echo:is_eosdis> \n",
Expand Down Expand Up @@ -8394,7 +8394,7 @@
"<ns0:id>https://fedeo.ceos.org/collections/datasets/items</ns0:id>\n",
"<ns0:rights>Copyright 2016-2024, European Space Agency</ns0:rights>\n",
"<ns0:title>FedEO Clearinghouse - Search Response</ns0:title>\n",
"<ns0:updated>2024-12-05T09:52:59Z</ns0:updated>\n",
"<ns0:updated>2024-12-05T16:08:14Z</ns0:updated>\n",
"<ns0:link href=\"https://fedeo.ceos.org/collections/series/items/TropForest/api\" rel=\"search\" type=\"application/opensearchdescription+xml\" />\n",
"<ns0:link href=\"https://fedeo.ceos.org/collections/datasets/items?parentIdentifier=TropForest&amp;datetime=1972-09-26T00:00:00Z&amp;httpAccept=application/geo%2Bjson;profile=&quot;http://www.opengis.net/spec/ogcapi-features-1/1.0&quot;\" rel=\"alternate\" type=\"application/geo+json;profile=&quot;http://www.opengis.net/spec/ogcapi-features-1/1.0&quot;\" />\n",
"<ns0:link href=\"https://fedeo.ceos.org/collections/datasets/items?parentIdentifier=TropForest&amp;datetime=1972-09-26T00:00:00Z&amp;httpAccept=application/geo%2Bjson;profile=&quot;http://www.opengis.net/spec/os-geojson/1.0&quot;\" rel=\"alternate\" type=\"application/geo+json;profile=&quot;http://www.opengis.net/spec/os-geojson/1.0&quot;\" />\n",
Expand Down Expand Up @@ -8537,7 +8537,7 @@
"text/markdown": [
"```xml\n",
"<?xml version=\"1.0\" ?><feed esipdiscovery:version=\"1.2\" xmlns=\"http://www.w3.org/2005/Atom\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:echo=\"https://cmr.earthdata.nasa.gov/search/site/docs/search/api.html#atom\" xmlns:eo=\"http://a9.com/-/opensearch/extensions/eo/1.0/\" xmlns:esipdiscovery=\"http://commons.esipfed.org/ns/discovery/1.2/\" xmlns:georss=\"http://www.georss.org/georss\" xmlns:gml=\"http://www.opengis.net/gml\" xmlns:os=\"http://a9.com/-/spec/opensearch/1.1/\" xmlns:relevance=\"http://a9.com/-/opensearch/extensions/relevance/1.0/\" xmlns:time=\"http://a9.com/-/opensearch/extensions/time/1.0/\"> \n",
" <updated>2024-12-05T09:52:59.325Z</updated> \n",
" <updated>2024-12-05T16:08:14.643Z</updated> \n",
" <id>https://cmr.earthdata.nasa.gov/opensearch/collections.atom</id> \n",
" <author> \n",
" <name>CMR</name> \n",
Expand Down Expand Up @@ -8679,6 +8679,232 @@
" print('{:25}'.format(i) + \" \" + attrs[i])"
]
},
{
"cell_type": "markdown",
"id": "a9337926",
"metadata": {},
"source": [
"**ATOM <feed> element, Granule (Step 2) Search**"
]
},
{
"cell_type": "code",
"execution_count": 49,
"id": "344df5d4",
"metadata": {
"tags": [
"remove-input"
]
},
"outputs": [
{
"data": {
"text/html": [
"\n",
"<table>\n",
"<tr><th>Element</th><th align=\"left\">Value</th></tr>\n",
"\n",
"<tr><td>atom: title</td><td align=\"left\">Atom feed title element</td></tr>\n",
"<tr><td>atom: updated</td><td align=\"left\">Date tag indicating when granule metadata is returned from data provider</td></tr>\n",
"<tr><td>atom: author</td><td align=\"left\">Fixed value, which is the contact information of supporting team</td></tr>\n",
"\n",
"<tr><td>atom: id</td><td align=\"left\">Fixed value for search identifier</td></tr>\n",
"<tr><td>opensearch: totalResults</td><td align=\"left\"> Number of records matched</td></tr>\n",
"<tr><td>opensearch: startIndex</td><td align=\"left\"> Number of start record desired by client</td></tr>\n",
"<tr><td>opensearch: itemsPerPage</td><td align=\"left\"> Actual number of returned items per page</td></tr>\n",
"<tr><td>opensearch: Query</td><td align=\"left\">Query element recording actual request parameter values from client</td></tr>\n",
"<tr align=\"left\"><td>atom: link</td><td align=\"left\"> Traversal link. Supported ‘rel’ attribute values include:\n",
" \n",
"<ul><li>first: link to the first matching result</li>\n",
"<li>last: link to the last matching result</li>\n",
"<li>previous: link to previous granule, where applicable</li>\n",
"<li>next: link to next granule, where applicable</li>\n",
"<li>profile: link to specified profile(s)</li>\n",
"<li>up: link to parent identifier</li>\n",
"<li>search: link to OSDD endpoint</li>\n",
"<li>self: link of submitted OpenSearch request</li>\n",
"</ul></td></tr>\n",
"</table>\n"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"%%html\n",
"\n",
"<table>\n",
"<tr><th>Element</th><th align=\"left\">Value</th></tr>\n",
"\n",
"<tr><td>atom: title</td><td align=\"left\">Atom feed title element</td></tr>\n",
"<tr><td>atom: updated</td><td align=\"left\">Date tag indicating when granule metadata is returned from data provider</td></tr>\n",
"<tr><td>atom: author</td><td align=\"left\">Fixed value, which is the contact information of supporting team</td></tr>\n",
"\n",
"<tr><td>atom: id</td><td align=\"left\">Fixed value for search identifier</td></tr>\n",
"<tr><td>opensearch: totalResults</td><td align=\"left\"> Number of records matched</td></tr>\n",
"<tr><td>opensearch: startIndex</td><td align=\"left\"> Number of start record desired by client</td></tr>\n",
"<tr><td>opensearch: itemsPerPage</td><td align=\"left\"> Actual number of returned items per page</td></tr>\n",
"<tr><td>opensearch: Query</td><td align=\"left\">Query element recording actual request parameter values from client</td></tr>\n",
"<tr align=\"left\"><td>atom: link</td><td align=\"left\"> Traversal link. Supported ‘rel’ attribute values include:\n",
" \n",
"<ul><li>first: link to the first matching result</li>\n",
"<li>last: link to the last matching result</li>\n",
"<li>previous: link to previous granule, where applicable</li>\n",
"<li>next: link to next granule, where applicable</li>\n",
"<li>profile: link to specified profile(s)</li>\n",
"<li>up: link to parent identifier</li>\n",
"<li>search: link to OSDD endpoint</li>\n",
"<li>self: link of submitted OpenSearch request</li>\n",
"</ul></td></tr>\n",
"</table>"
]
},
{
"cell_type": "markdown",
"id": "e2a94000",
"metadata": {},
"source": [
"**Atom <entry> element**"
]
},
{
"cell_type": "code",
"execution_count": 50,
"id": "69eea068",
"metadata": {
"tags": [
"remove-input"
]
},
"outputs": [
{
"data": {
"text/html": [
"\n",
"<table width=\"50%\">\n",
"<tr><th>Element</th><th>Value</th></tr>\n",
"\n",
"<tr><td>atom:title</td><td align=\"left\">Descriptive title for the entry</td></tr>\n",
"<tr><td>atom:id</td><td align=\"left\">Unique identifier of the entry within the local catalog system</td></tr>\n",
"<tr><td>atom: updated</td><td align=\"left\">Date tag indicating when entry metadata is last updated by data provider</td></tr>\n",
"\n",
"<tr><td>atom:author</td><td align=\"left\"> Fixed value, which is the contact information of data provider</td></tr>\n",
"<tr><td>spatial extent elements</td><td align=\"left\">For each granule, at least one &lt;georss:box&gt; will be provided to represent the\n",
"minimum bounding rectangle of spatial extent of entry, if applicable.\n",
"&lt;georss:box&gt; is formatted with coordinate order of WestBoundingLongitude, SouthBoundingLatitude, EastBoundingLongitude, NorthBoundingLatitude. All coordinates are in EPSG:4326\n",
"&ltgeorss:polygon&gt; and other geometries may also be provided if it is available in data provider’s metadata.\n",
"\n",
"<tr><td>temporal element</td><td align=\"left\">For each entry, a single <dc:date> element will be provided to represent the\n",
"temporal extent of the entry, if applicable.\n",
"e.g. 1989 - 10 - 19T00:00:00.000Z/1989- 10 - 21T23:59:59.000Z</td></tr>\n",
"<tr><td>atom:link</td><td align=\"left\">Supported values under ‘rel’ attribute: via/enclosure/alternate/icon\n",
"(See Table below)</td></tr>\n",
"<tr><td>atom:summary</td><td align=\"left\">Summary descriptive text for the entry</td></tr>\n",
"\n",
"</table>\n"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"%%html\n",
"\n",
"<table width=\"50%\">\n",
"<tr><th>Element</th><th>Value</th></tr>\n",
"\n",
"<tr><td>atom:title</td><td align=\"left\">Descriptive title for the entry</td></tr>\n",
"<tr><td>atom:id</td><td align=\"left\">Unique identifier of the entry within the local catalog system</td></tr>\n",
"<tr><td>atom: updated</td><td align=\"left\">Date tag indicating when entry metadata is last updated by data provider</td></tr>\n",
"\n",
"<tr><td>atom:author</td><td align=\"left\"> Fixed value, which is the contact information of data provider</td></tr>\n",
"<tr><td>spatial extent elements</td><td align=\"left\">For each granule, at least one &lt;georss:box&gt; will be provided to represent the\n",
"minimum bounding rectangle of spatial extent of entry, if applicable.\n",
"&lt;georss:box&gt; is formatted with coordinate order of WestBoundingLongitude, SouthBoundingLatitude, EastBoundingLongitude, NorthBoundingLatitude. All coordinates are in EPSG:4326\n",
"&ltgeorss:polygon&gt; and other geometries may also be provided if it is available in data provider’s metadata.\n",
"\n",
"<tr><td>temporal element</td><td align=\"left\">For each entry, a single <dc:date> element will be provided to represent the\n",
"temporal extent of the entry, if applicable.\n",
"e.g. 1989 - 10 - 19T00:00:00.000Z/1989- 10 - 21T23:59:59.000Z</td></tr>\n",
"<tr><td>atom:link</td><td align=\"left\">Supported values under ‘rel’ attribute: via/enclosure/alternate/icon\n",
"(See Table below)</td></tr>\n",
"<tr><td>atom:summary</td><td align=\"left\">Summary descriptive text for the entry</td></tr>\n",
"\n",
"</table>"
]
},
{
"cell_type": "markdown",
"id": "ce3310ba",
"metadata": {},
"source": [
"**‘rel’ attributes of Atom <link> element**"
]
},
{
"cell_type": "code",
"execution_count": 51,
"id": "a1082ff5",
"metadata": {
"tags": [
"remove-input"
]
},
"outputs": [
{
"data": {
"text/html": [
"\n",
"<table>\n",
"<tr><th>‘rel’ attribute</th><th>Artifact</th></tr>\n",
"\n",
"<tr><td>via</td><td align=\"left\">Metadata</td></tr>\n",
"<tr><td>icon</td><td align=\"left\">Browse</td></tr>\n",
"<tr><td>alternate</td><td align=\"left\">Documentation</td></tr>\n",
"\n",
"<tr><td>enclure</td><td align=\"left\">Product</td></tr>\n",
"<tr><td>up</td><td align=\"left\">Collection Metadata</td></tr>\n",
"</table>\n"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"%%html\n",
"\n",
"<table>\n",
"<tr><th>‘rel’ attribute</th><th>Artifact</th></tr>\n",
"\n",
"<tr><td>via</td><td align=\"left\">Metadata</td></tr>\n",
"<tr><td>icon</td><td align=\"left\">Browse</td></tr>\n",
"<tr><td>alternate</td><td align=\"left\">Documentation</td></tr>\n",
"\n",
"<tr><td>enclure</td><td align=\"left\">Product</td></tr>\n",
"<tr><td>up</td><td align=\"left\">Collection Metadata</td></tr>\n",
"</table>"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "500542e7",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"id": "dda9f0dd",
Expand Down

0 comments on commit 54f609c

Please sign in to comment.