You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add fields missing from facets in observation response (#694)
* remove references to dataclass objects
* Fix a copy-paste error.
* remove extra file
* Fix a copy-paste error.
* Remove unused file
* Start draft on new resolver parameters
* first draft of new resolve API
* First complete draft of new resolve API parameter
* cut redundant text
* Remove cohort from glossary
* Update api/python/v2/resolve.md
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
* Update api/python/v2/resolve.md
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
* minor fixes from Gemini
* Update api/python/v2/resolve.md
Co-authored-by: Christie Ellks <calinc@google.com>
* Some changes from Christie
* minor changes
* Update api/rest/v2/resolve.md
Co-authored-by: Christie Ellks <calinc@google.com>
* Update api/rest/v2/resolve.md
Co-authored-by: Christie Ellks <calinc@google.com>
* Update api/rest/v2/resolve.md
Co-authored-by: Christie Ellks <calinc@google.com>
* Update api/rest/v2/resolve.md
Co-authored-by: Christie Ellks <calinc@google.com>
* changes from Christie
* Changes for consistency
* small fix from Christie
* Updates to data model page
* Update data_model.md
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
* Remove link
* Remove all V1 API docs (including Python) and references to SPARQL
* Fix fields missing from facets and change one example
* Wording change
* Add descriptions of all facet fields and remove duplication from Python doc
* Apply changes to Python
* Add brackets to indicate optionality in response fields
* Remove duplication in response field tables
* Add missing type from dcid response field
* Correct candidates type
* Fix field names
* Fix date copy-paste error
* Expand is_dc_aggregate definition to include event statvars
---------
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: Christie Ellks <calinc@google.com>
| orderedFacets | list of objects | Metadata about the observations returned, keyed first by variable, and then by entity. These include the date range, the number of observations included in the facet and so on. |
137
-
| observations | list of objects | Date and value pairs for the observations made in the time period. |
138
-
| facets | object | Various properties of reported facets, where available, including the provenance of the data, the import name, date range of observations, etc. |
139
-
{: .doc-table}
140
+
See [v2/observation](/api/rest/v2/observation.html#response-fields) for details.
140
141
141
142
### Response property methods
142
143
@@ -879,208 +880,75 @@ Response:
879
880
```
880
881
881
882
{: .no_toc}
882
-
#### Example 3: Get the observations at a particular date for given entities by DCID
883
+
#### Example 3: Get the observations at a particular date for multiple entities by DCID
883
884
884
-
This gets observations for the populations of the U.S.A. and California in2015. It uses the same variableas the previous example, two entities, and a specific date.
885
+
This gets observations for the median household income of the U.S.A. and California in2015. It uses one variable, two entities, and a specific date.
> Tip: This example is the equivalent of `client.observation.fetch(variable_dcids="Count_Person", date="2015", entity_dcids=["country/USA", "geoId/06"])`
895
+
> Tip: This example is the equivalent of `client.observation.fetch(variable_dcids="Median_Income_Household", date="2015", entity_dcids=["country/USA", "geoId/06"])`
| node | string | The query terms used to look up the DCIDs of entities. |
135
-
| candidates | list | List of nodes that match the query terms. Each node contains a DCID and (optionally) metadata and type information. |
136
-
| dcid | The DCID of the candidate node. |
137
-
| dominantType | string | Optional field which, when present, disambiguates between multiple results. Only returned when `resolver` is set to `place` (the default). |
138
-
| metadata.score | float | The confidence score for the result, used to rank multiple results. Only returned when `resolver` is set to `indicator`. |
139
-
| metadata.sentence | string | The matching substring contained in the node's name or description. Only returned when `resolver` is set to `indicator`. |
140
-
| typeOf | string or list of strings | The type of the result. Currently supports only `StatisticalVariable` and `Topic`. Only returned when `resolver` is set to `indicator`. |
141
-
{: .doc-table}
142
-
132
+
See [v2/resolve](/api/rest/v2/resolve.html#response-fields) for details.
0 commit comments