From 39a3c5a7a20f570fe4420fc6f54ed6f46cc4766d Mon Sep 17 00:00:00 2001 From: Bartosz Prusinowski Date: Mon, 19 Feb 2024 17:13:07 +0100 Subject: [PATCH] fix: Dataset preview when every observation contains undefined values --- app/rdf/query-cube-preview.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/rdf/query-cube-preview.ts b/app/rdf/query-cube-preview.ts index 98d28e46a..326fa986f 100644 --- a/app/rdf/query-cube-preview.ts +++ b/app/rdf/query-cube-preview.ts @@ -113,7 +113,7 @@ CONSTRUCT { { SELECT * WHERE { ?cube cube:observationSet ?observationSet . ?observationSet cube:observation ?observation . - FILTER(NOT EXISTS { ?cube cube:observationConstraint/sh:property/sh:datatype cube:Undefined . } && NOT EXISTS { ?observation ?p ""^^cube:Undefined . }) + FILTER(EXISTS { ?cube cube:observationConstraint/sh:property/sh:datatype cube:Undefined . } || NOT EXISTS { ?observation ?p ""^^cube:Undefined . }) } LIMIT 10 } ?observation ?observationPredicate ?observationValue . ${buildLocalizedSubQuery(