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
Copy file name to clipboardExpand all lines: optimade.rst
+1-13Lines changed: 1 addition & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2317,18 +2317,6 @@ A filter on a nested property name consisting of two identifiers :filter-fragmen
2317
2317
- :filter-fragment:`identifier1` references a list of dictionaries that contain as an identifier :filter-fragment:`identifier2` and the filter matches for a flat list containing only the contents of :filter-fragment:`identifier2` for every dictionary in the list.
2318
2318
E.g., if :filter-fragment:`identifier1` is the list :filter-fragment:`[{"identifier2":42, "identifier3":36}, {"identifier2":96, "identifier3":66}]`, then :filter-fragment:`identifier1.identifier2` is understood in the filter as the list :filter-fragment:`[42, 96]`.
2319
2319
2320
-
- :filter-fragment:`identifier1` references an entry type of a group of related entries each containing a property named after an identifier :filter-fragment:`identifier2` and the filter matches for a flat list containing only the values of :filter-fragment:`identifier2` properties for every related entry.
2321
-
In this case, :filter-fragment:`identifier2` is restricted to the following fields:
2322
-
2323
-
- :field:`id`, when matching directly on the ID of the related entry.
2324
-
- :field:`description`, when matching on human-readable description of the relationship.
2325
-
- :field:`role`, when matching on the role of the relationship between entries (possible relationships are defined per-entry type).
2326
-
- :field:`target`, which can be further nested to enable queries on the related entry's property.
2327
-
2328
-
Support for such queries is OPTIONAL.
2329
-
E.g., :filter-fragment:`references.target.doi` is understood in the filter as the list containing values of :property:`doi` for all related entries of type :entry:`references`.
2330
-
This is explained in more detail in section `Filtering on relationships`_.
2331
-
2332
2320
The API implementation MAY allow this notation to generalize to arbitrary depth.
2333
2321
A nested property name that combines more than one list MUST, if accepted, be interpreted as a completely flattened list.
2334
2322
@@ -2357,7 +2345,7 @@ Support for queries on fields of arbitrary depth is OPTIONAL.
2357
2345
2358
2346
- Query the :endpoint:`structures` endpoint with a filter :filter-fragment:`references.id HAS ANY <list-of-IDs>`, where :filter-fragment:`<list-of-IDs>` are the IDs retrieved from the first query separated by commas.
2359
2347
2360
-
For example, search for all structures related to a publication having DOI 10.1234/1234 could be performed with the following query:
2348
+
For example, search for all structures related to a publication (described in a related references entry) having DOI 10.1234/1234 could be performed with the following query:
0 commit comments