Skip to main content
Part of Dynamic Visualization Store Data selection of the current view of data is done via a chained set of filters (Query Stanzas). These filters make it possible to dynamically down select to a subset of data in the cache. This can be used to filter data within a single cache and in the future form multiple DVS data sources at the same time. This will enable the creation of ensemble views of multiple disparate DVS data sources, allowing users to combine design points or even data from different domains (i.e. mechanical and fluids) into one overall view to iterate over. Allowing more powerful and interesting postprocessing of the data for comparison. These filters are used in the Query Stanzas section of the Cache URIs and also in the DVS Reader API DVS::IQuery. In Cache URIs the filters are specified by adding a query option to the Cache URI Options section of the Cache URIs. The specifics of these filters are in the sections below.

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.

Operators

Below are a list of valid operators and their operands. Operands are separated by ’|’ to allow for easily chaining multiple statements.

Operands

Operands can be separated by the ’|’ character to OR them together for eq, neg cases. The number of operands allowed per operator is in the Operators table. Operands have special characters reserved should use ’+’ to replace spaces. Reserved characters in names should be escaped with % hex values, below is a list of reserved characters.

Misc Query Examples