Skip to content

Commit

Permalink
[Bug #444] Exclude snapshots from statistics - asset count.
Browse files Browse the repository at this point in the history
  • Loading branch information
ledsoft committed Dec 22, 2023
1 parent f668feb commit 9839298
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/component/statistics/assetcount/AssetCount.rq
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
PREFIX pdp: <http://onto.fel.cvut.cz/ontologies/slovník/agendový/popis-dat/pojem/>
PREFIX termit: <http://onto.fel.cvut.cz/ontologies/application/termit/pojem/>

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 .
}
}
}
4 changes: 4 additions & 0 deletions src/component/statistics/assetcount/TermCount.rq
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
PREFIX pdp: <http://onto.fel.cvut.cz/ontologies/slovník/agendový/popis-dat/pojem/>
PREFIX termit: <http://onto.fel.cvut.cz/ontologies/application/termit/pojem/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>

Expand All @@ -8,6 +9,9 @@ CONSTRUCT {
GRAPH ?v {
?asset a skos:Concept .
?v <http://onto.fel.cvut.cz/ontologies/slovník/agendový/popis-dat/pojem/má-glosář> ?g .
FILTER NOT EXISTS {
?asset a pdp:verze-pojmu .
}
}
}
}

0 comments on commit 9839298

Please sign in to comment.