diff --git a/src/component/statistics/assetcount/AssetCount.rq b/src/component/statistics/assetcount/AssetCount.rq
index e194a5f14..3ccf14f47 100644
--- a/src/component/statistics/assetcount/AssetCount.rq
+++ b/src/component/statistics/assetcount/AssetCount.rq
@@ -1,9 +1,13 @@
+PREFIX pdp:
PREFIX termit:
CONSTRUCT {
?assetType termit:has-count ?count
} WHERE {
SELECT (COUNT(DISTINCT ?asset) AS ?count) {
- ?asset a ?assetType
+ ?asset a ?assetType .
+ FILTER NOT EXISTS {
+ ?asset a pdp:verze-objektu .
+ }
}
}
diff --git a/src/component/statistics/assetcount/TermCount.rq b/src/component/statistics/assetcount/TermCount.rq
index 8601ed901..924997018 100644
--- a/src/component/statistics/assetcount/TermCount.rq
+++ b/src/component/statistics/assetcount/TermCount.rq
@@ -1,3 +1,4 @@
+PREFIX pdp:
PREFIX termit:
PREFIX skos:
@@ -8,6 +9,9 @@ CONSTRUCT {
GRAPH ?v {
?asset a skos:Concept .
?v ?g .
+ FILTER NOT EXISTS {
+ ?asset a pdp:verze-pojmu .
+ }
}
}
}