From 93f5e684d7ae6fc7293844b8b1036da374284c0c Mon Sep 17 00:00:00 2001 From: Patrick Browne Date: Thu, 16 Feb 2023 14:15:08 +0100 Subject: [PATCH] docs: Add documentation for sh:in --- app/docs/rdf-to-visualize.mdx | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/app/docs/rdf-to-visualize.mdx b/app/docs/rdf-to-visualize.mdx index 6cf232e0f..56ea134f1 100644 --- a/app/docs/rdf-to-visualize.mdx +++ b/app/docs/rdf-to-visualize.mdx @@ -124,6 +124,18 @@ called _Shared dimensions_, and their values will be fetched outside the cube. ℹ️ GeoShape dimensions can be shown on a map as _shapes_ +#### Values + +The `sh:in` predicate on the dimension is used to attach what values are available +on the dimension. It is used by visualize as an optimization to list the values that +are available on the dimension. This list of possible values can be used for example +on dimension filters, or inside the legend. + +- It is provided automatically by `cube-creator` if the number of distinct values is + inferior to `100`. +- If this property is not present, visualize dynamically loads all distinct values from + the dimension, which results in poorer performance than if the values are present. + #### Currencies If the dimension is related to a currency (`?dimension a qudt:CurrencyUnit`), when the