Skip to content

Commit

Permalink
Merge branch 'development' into dependabot/npm_and_yarn/ip-1.1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
ledsoft authored Feb 21, 2024
2 parents e50ac7c + 69c4cae commit 0c68be7
Show file tree
Hide file tree
Showing 7 changed files with 246 additions and 137 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/merge-to-protected.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
with:
node-version: "16.x"
- name: Install
run: npm install --legacy-peer-deps
run: npm install
- name: Prettier Check
run: npm run prettier:check
- name: Build
Expand Down
347 changes: 221 additions & 126 deletions package-lock.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"@fortawesome/fontawesome-free": "^6.4.0",
"@opendata-mvcr/assembly-line-shared": "^0.3.2",
"apexcharts": "^3.41.0",
"axios": "^1.6.2",
"axios": "^1.6.5",
"bootstrap": "4.6.2",
"chart.js": "^3.9.1",
"classnames": "^2.3.2",
Expand All @@ -19,7 +19,7 @@
"easymde": "2.15.0",
"html-to-react": "1.5.0",
"htmlparser2": "^4.1.0",
"intelligent-tree-select": "0.11.1",
"intelligent-tree-select": "0.11.4",
"iso-639-1": "^2.1.15",
"javascript-time-ago": "2.5.9",
"js-cookie": "^3.0.5",
Expand Down Expand Up @@ -95,7 +95,7 @@
"@types/whatwg-mimetype": "^2.1.1",
"@wojtekmaj/enzyme-adapter-react-17": "^0.8.0",
"axios-mock-adapter": "^1.22.0",
"babel-plugin-macros": "3.1.0",
"babel-plugin-macros": "2.8.0",
"cross-env": "^7.0.3",
"enzyme": "^3.11.0",
"husky": "^7.0.4",
Expand Down
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 .
}
}
}
}
7 changes: 5 additions & 2 deletions src/component/statistics/termfrequency/TermFrequency.rq
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PREFIX a-popis-dat-pojem: <http://onto.fel.cvut.cz/ontologies/slovník/agendový/popis-dat/pojem/>
PREFIX pdp: <http://onto.fel.cvut.cz/ontologies/slovník/agendový/popis-dat/pojem/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX termit: <http://onto.fel.cvut.cz/ontologies/application/termit/pojem/>
Expand All @@ -10,7 +10,10 @@ CONSTRUCT {
} WHERE {
SELECT ?slovnik ?labelSlovniku ( COUNT(DISTINCT ?pojem) AS ?count ) {
?pojem a skos:Concept ;
a-popis-dat-pojem:je-pojmem-ze-slovníku ?slovnik .
pdp:je-pojmem-ze-slovníku ?slovnik .
FILTER NOT EXISTS {
?slovnik a pdp:verze-slovníku .
}
OPTIONAL {
?slovnik dc:title ?labelS .
}
Expand Down
11 changes: 7 additions & 4 deletions src/component/statistics/termtypefrequency/TermTypeFrequency.rq
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PREFIX a-popis-dat-pojem: <http://onto.fel.cvut.cz/ontologies/slovník/agendový/popis-dat/pojem/>
PREFIX pdp: <http://onto.fel.cvut.cz/ontologies/slovník/agendový/popis-dat/pojem/>
PREFIX z-sgov-pojem: <https://slovník.gov.cz/základní/pojem/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
Expand All @@ -7,14 +7,17 @@ PREFIX dc: <http://purl.org/dc/terms/>

CONSTRUCT {
?pojem a ?typ;
a-popis-dat-pojem:je-pojmem-ze-slovníku ?slovnik .
pdp:je-pojmem-ze-slovníku ?slovnik .
?slovnik rdfs:label ?labelSlovniku .

?type rdfs:label ?labelTypu .
} WHERE {
{
?pojem a skos:Concept ;
a-popis-dat-pojem:je-pojmem-ze-slovníku ?slovnik .
pdp:je-pojmem-ze-slovníku ?slovnik .
FILTER NOT EXISTS {
?slovnik a pdp:verze-slovníku .
}
OPTIONAL {
?slovnik dc:title ?labelS .
}
Expand All @@ -27,7 +30,7 @@ CONSTRUCT {
z-sgov-pojem:typ-vztahu,
z-sgov-pojem:typ-události ))
}
BIND(COALESCE(?t,a-popis-dat-pojem:not-filled) as ?typ)
BIND(COALESCE(?t,pdp:not-filled) as ?typ)
} UNION {
VALUES (?type) { (z-sgov-pojem:typ-objektu)
(z-sgov-pojem:typ-vlastnosti)
Expand Down

0 comments on commit 0c68be7

Please sign in to comment.