catalog.url module¶
Functions that return the URL to a ScienceBase resource.
Function |
Description |
|---|---|
Returns the base URL of the ScienceBase catalog |
|
Returns the base URL use to query extent type info |
|
Returns the URL to a ScienceBase catalog item |
|
Returns the URL to the PWFDF parent item |
|
Returns the base URL for searching the catalog |
|
Returns the URL to the catalog status page |
- pwfdf_api.catalog.url.catalog()¶
Returns the base URL for the ScienceBase catalog
catalog()
Returns the base URL for the ScienceBase catalog
- Outputs:
str – The URL of the ScienceBase catalog
- pwfdf_api.catalog.url.extents()¶
Returns the base URL for an extent type info query
extents()
Returns the base URL for an extent type info query. These URLs can be used to determine the extent IDs associated with a given extent type.
- Outputs:
str – The base URL for an extent type info query
- pwfdf_api.catalog.url.item(id)¶
Returns the base URL for a ScienceBase catalog item
item(id)
Returns the base URL for a ScienceBase catalog item. Querying this URL will return sbJSON metadata on the associated item.
- Inputs:
id (str) – A ScienceBase item ID as a string
- Outputs:
str – The base URL for the item
- pwfdf_api.catalog.url.parent()¶
Returns the base URL for the PWFDF parent item
parent()
Returns the base URL for the PWFDF parent item. Querying this URL will return sbJSON metadata for the overall collection.
- Outputs:
str – The base URL for the PWFDF parent item
- pwfdf_api.catalog.url.search()¶
Returns the base URL for searching the ScienceBase catalog
search()
Returns the base URL for searching the ScienceBase catalog. This URL is typically combined with various search filters.
- Outputs:
str – The base URL for searching the ScienceBase catalog
- pwfdf_api.catalog.url.status()¶
Returns the base URL for the ScienceBase catalog status
status()
Returns the URL for the ScienceBase catalog status page.
- Outputs:
str – The URL of the ScienceBase catalog status page