Skip to content

List queries, pickers and sort documents ​

Generated

Generated by elody-ui reference from the Elody UI vocabulary 0.6.0 (elody-ui.ttl), its meta-shapes (elody-ui.shapes.ttl) and the generator's bindings. Edit the ontology, not this page.

The documents a list element or an entity picker reads: results per type, filters, and the sort options of a page.

Each section is one kind of node: the terms it may carry, the type of each value, how many values it takes and what it means. "unchecked" marks a term the vocabulary defines on this kind of node that the meta-shapes do not constrain yet. "Used by" counts the client declarations that use the term.

List Query ​

elody:ListQuery: The entities document a list element loads, with its filters document: the result fragment per type (without results the entities document stays hand-written and only the filters document is generated) and the scoping filters (the type, the relation to the entity shown). Named by elody:queryName; the filters document by elody:filtersQuery, else the query name with Filters.

Declared under elody:listQuery of Entity Ui, elody:taggingQuery of Property Shape, elody:listQuery of Element, elody:listQuery of App.

Constraint

a list query names its entities document (elody:queryName) or its filters document (elody:filtersQuery)

TermTypeHow manyMeaningUsed by
elody:queryNamexsd:stringat most oneThe GraphQL operation name of a form, flow, picker, custom bulk operation set or form source. Optional: the generator derives it from the node's local name when absent (R3). a list query names its entities document, or a filters document alone (an orphan filters document)8 of 8
elody:queryRootan elody:QueryRoot valueat most oneWhat the list query asks for; unsaid, a page of entities (elody:EntitiesRoot).2 of 8
elody:rootTypexsd:stringat most oneWith elody:queryRoot elody:SingleEntityRoot: the entity type read, fixed in the document (Entity(id: $id, type: "token")) instead of a variable; the document then reads id alone before the per-type selections.1 of 8
elody:rootCollectionxsd:stringat most oneWith elody:rootType: the collection the entity is read from (collection: tokens), an enum value of the API.1 of 8
elody:filtersQueryxsd:stringat most oneOperation name of a listing's, a picker's or a list query's filters document, when it is not the query name with Filters.8 of 8
elody:filtersTypexsd:stringat most oneOn a list query or picker: the GraphQL type its filters document narrows to (EntityTypeFilters { ... on QuestionInstance { advancedFilters { ... } } }). Without it the filters are selected on EntityTypeFilters itself.1 of 8
elody:facetsxsd:booleanat most onetrue reads the facets of the search with the entities document (Entities { facets }).1 of 8
elody:bareResultsxsd:booleanat most onetrue renders the entities document's results alone: no count, limit or __typename, and the results select nothing of their own (no id, uuid, type or inline type conditions); each result's fragments and listing are rendered directly under results (a map overlay reading id and a few values of every garage).1 of 8
elody:rootFieldxsd:stringat most oneA root field of the client's own schema that reads entities by id (WemOverview(id: $id)), rendered in place of Entities: id, uuid, type, the elody:rootValues, then the per-type selections of elody:result.6 of 8
elody:rootValuesa listat most oneThe values read on every result of an elody:rootField document, outside the type conditions (intialValues { canUpdate canDelete }), as a list of field names.1 of 8
elody:filtersSpreadxsd:stringany numberA hand-written fragment on AdvancedFilters spread into the type's filters (...entityAuditFilters).3 of 8
elody:relationValuesxsd:booleanat most oneWhether the type's fragments read its relations (relationValues). Default: yes when a property reads a relation, a panel lists related entities or the card has a context menu; no otherwise. true or false overrides the default. relationValues read on every result, outside the per-type selections8 of 8
elody:readsHostxsd:booleanat most oneOn a property shape: true reads the value relative to the entity the list is shown on (the keyValue takes uuid: $userUuid). On a list query or picker: the document declares $userUuid: String! (derived too from a result listing that reads the host). Default false. the document declares $userUuid (also derived from a result listing reading the host)5 of 8
elody:hostOptionalxsd:booleanat most onetrue declares the host's uuid as a nullable variable ($userUuid: String) on a list query that reads the host (elody:readsHost).1 of 8
elody:resulta Picker Result nodeany numberA type the picker may return.8 of 8
elody:filtera Filter nodeany numberA filter of a listing (EntityUi) or a picker.8 of 8

Picker ​

elody:Picker: A pick-from-listing modal: the result fragments per type and the scoping filters. The generator derives both its documents' names from the node.

Declared under elody:picker of Entity Ui, elody:picker of Bulk Operation Modal.

TermTypeHow manyMeaningUsed by
elody:resulta Picker Result nodeany numberA type the picker may return. no results: the picker's list document is hand-written, only its name (and filters) are declared8 of 8
elody:facetsxsd:booleanat most onetrue reads the facets of the search with the entities document (Entities { facets }).1 of 8
elody:filtersSpreadxsd:stringany numberA hand-written fragment on AdvancedFilters spread into the type's filters (...entityAuditFilters).3 of 8
elody:filtersQueryxsd:stringat most oneOperation name of a listing's, a picker's or a list query's filters document, when it is not the query name with Filters.8 of 8
elody:filtersTypexsd:stringat most oneOn a list query or picker: the GraphQL type its filters document narrows to (EntityTypeFilters { ... on QuestionInstance { advancedFilters { ... } } }). Without it the filters are selected on EntityTypeFilters itself.1 of 8
elody:filtera Filter nodeany numberA filter of a listing (EntityUi) or a picker.8 of 8
elody:filtersQueryNameretired—elody:filtersQueryName is retired: the filters document is named after the picker—

Picker Result ​

elody:PickerResult: One GraphQL type a picker may return, with the card fragment that renders it.

Declared under elody:result of List Query, elody:result of Picker.

Constraint

a result spreads at least one fragment or renders an inline listing

TermTypeHow manyMeaningUsed by
elody:graphqlTypexsd:stringexactly oneThe GraphQL object type this UI (or picker result) is rendered for. Directive: it will be derived from sh:targetClass through the application profile's class-to-type register.8 of 8
elody:fragmentxsd:stringany numberThe name of a GraphQL fragment (a family's card, a picker result). Directive: derivable from the node.8 of 8
elody:listinga reference to a Entity Ui nodeat most oneOn a list query's or picker's result: an EntityUi with elody:emit "inline" whose listing (values, card, view modes) is rendered inside the result (... on Person { intialValues { ... } teaserMetadata { ... } }) instead of, or next to, a fragment spread (elody:fragment).5 of 8
elody:cardMenuSpreadxsd:stringat most oneA hand-written menu fragment spread on the result's card next to its listing fragment (teaserMetadata { buttons { contextMenu { ...X } } }).1 of 8
elody:typeretired—elody:type is retired: use elody:graphqlType—

Sort Document ​

elody:SortDocument: A sort options document of its own (EntityTypeSortOptions with its options inline), for a page the type's standard sort options do not serve (GetSortOptionsForComments).

Declared under elody:sortDocument of Entity Ui, elody:sortDocument of App.

TermTypeHow manyMeaningUsed by
elody:queryNamexsd:stringexactly oneThe GraphQL operation name of a form, flow, picker, custom bulk operation set or form source. Optional: the generator derives it from the node's local name when absent (R3).8 of 8
elody:sortOptiona Sort Option nodeone or moreAn option of the document, in sh:order.7 of 8

Sort Option ​

elody:SortOption: An option of a sort options document: elody:labelKey, elody:value (the sort key), elody:primary, elody:icon.

Declared under elody:sortOption of Sort Document, elody:sortOption of App.

TermTypeHow manyMeaningUsed by
sh:orderat most oneThe position among its siblings; order never comes from the position in the file.8 of 8
elody:labelKeyxsd:stringexactly oneThe Elody translation key under which the label is shown. The label text itself is sh:name (property shapes) or rdfs:label (property groups), language-tagged; generate writes those texts into the client's translation bundles under this key. Without elody:labelKey the generator mints ui.<type>.<key>. No standard term: SHACL carries label texts, not an application's translation keys. Left out on a property shape that carries no label text: the label key the key itself carries (em:x elody:labelKey, once per client), else metadata.labels.<key>, the key in kebab-case (elody:defaultRule in the meta-shapes).8 of 8
elody:valuexsd:stringexactly oneA config entry's value: string, number, boolean, an RDF list of strings, a node holding elody:config entries (an object value), or an elody: enumeration instance (rendered as its enum value, e.g. elody:WktMap). On an elody:FilterOption: the option's value.8 of 8
elody:primaryxsd:booleanat most oneRender as the primary button; on a sort option, the option selected by default.8 of 8
elody:iconxsd:stringat most oneA DamsIcons name. Open string: the icon set is the platform's and grows.8 of 8

Powered by Elody - Open Source Semantic Data Platform