Table of Contents
Query Stanzas
A query in DVS is specified by a number of query stanzas chained together to select a specific set of data entries from a larger set. These stanzas in general are usually AND’d together. The overall structure is in the table below. An individual query stanza has multiple sections separate by a single ’/’ character and ended with 2 ’//’ characters. For Examples see Misc Query Examples. Only objects mentioned in the query will be filtered, so if there isn’t a query stanza related to plots all of them will be loaded for the datasets.
Using a top level OR currently can cause unintented consequences as it will “overwrite” previous stanzas.
For example if you have 3 stanzas that have the meaning:
“Select Dataset 1” AND “Select Parts with name Inlet*” OR “Select Dataset 2”This will cause everything from Dataset 2 to be loaded regardless of the name. In the future the meaning or OR will be to split the Query up into parts. So that if you had stanzas with the meaning:
“Select Dataset 1” AND “Select Parts with name Inlet*” OR “Select Dataset 2” AND “Select Parts with name Wall*” The or would split the statements to be wrapped with ”()” so it would effectively be: (“Select Dataset 1” AND “Select Parts with name Inlet*”) OR (“Select Dataset 2” AND “Select Parts with name Wall*”). This should hopefully make the intents clearer for future iterations.
Top Level Operator
The first part of a query stanza is an operator which is used to chain it with the previous stanza. The overall operator portion of the first stanza is ignored and optional but must have a ’/’ separator before the Objects/Attributes section.Objects/Attributes
The object and attribute section is simply defined by object.attribute. This specifies which object and attributes on that object to apply the query to. Currently the only specifically named attribute is name. All other attributes are generically applied to the metadata attached to the object. So dataset.my_tag will only match with datasets which have the my_tag metadata attribute. These attributes are case sensitive. Some objects, such as timestep/rank/chunk are global across every cache entry and do not have specific attributes currently.
Attributes in this section which have a space should use ’+’ to replace spaces. Reserved characters in names should be escaped with % hex values, below is a list of reserved characters.