Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tester et paramétrer les requêtes RGD #2

Open
tfrancart opened this issue Feb 5, 2025 · 0 comments
Open

Tester et paramétrer les requêtes RGD #2

tfrancart opened this issue Feb 5, 2025 · 0 comments
Assignees

Comments

@tfrancart
Copy link
Collaborator

tfrancart commented Feb 5, 2025

RGD = type de document "Réglement Grand Ducal"

Requête pour avoir le nbr de RGD sans projet en 2024

PREFIX jolux: http://data.legilux.public.lu/resource/ontology/jolux#
SELECT (count(?rgd) AS ?nb)
WHERE {
?memorial a jolux:Memorial;
jolux:memorialYear ?memYear;
jolux:memorialNumber ?memorialNumber;
jolux:publicationDate ?publicationDate;
jolux:isMemberOf ?memorialSerial .
?act a jolux:Act .
?act jolux:isPartOf ?memorial .
?act jolux:typeDocument ?typeDocument .

BIND("rgd" AS ?rgd)
FILTER(?memYear=2024)
FILTER(STR(?typeDocument)='http://data.legilux.public.lu/resource/authority/resource-type/RGD')
FILTER(NOT EXISTS{?act jolux:draft ?draft})
} GROUP BY ?rgd

Requête pour avoir le nbr de RGD avec projet en 2024

PREFIX jolux: http://data.legilux.public.lu/resource/ontology/jolux#
SELECT (count(?rgd) AS ?nb)
WHERE {
?memorial a jolux:Memorial;
jolux:memorialYear ?memYear;
jolux:memorialNumber ?memorialNumber;
jolux:publicationDate ?publicationDate;
jolux:isMemberOf ?memorialSerial .
?act a jolux:Act .
?act jolux:isPartOf ?memorial .
?act jolux:typeDocument ?typeDocument .

BIND("rgd" AS ?rgd)
FILTER(?memYear=2024)
FILTER(STR(?typeDocument)='http://data.legilux.public.lu/resource/authority/resource-type/RGD')
FILTER(EXISTS{?act jolux:draft ?draft})
} GROUP BY ?rgd

Requête pour avoir la liste des RGD sans projet en 2024

PREFIX jolux: http://data.legilux.public.lu/resource/ontology/jolux#
SELECT *
WHERE {
?memorial a jolux:Memorial;
jolux:memorialYear ?memYear;
jolux:memorialNumber ?memorialNumber;
jolux:publicationDate ?publicationDate;
jolux:isMemberOf ?memorialSerial .
?act a jolux:Act .
?act jolux:isPartOf ?memorial .
?act jolux:typeDocument ?typeDocument .

FILTER(?memYear=2024)
FILTER(STR(?typeDocument)='http://data.legilux.public.lu/resource/authority/resource-type/RGD')
FILTER(NOT EXISTS{?act jolux:draft ?draft})
} ORDER BY ?memorialNumber

Requête pour avoir la liste des RGD avec projet en 2024

PREFIX jolux: http://data.legilux.public.lu/resource/ontology/jolux#
SELECT *
WHERE {
?memorial a jolux:Memorial;
jolux:memorialYear ?memYear;
jolux:memorialNumber ?memorialNumber;
jolux:publicationDate ?publicationDate;
jolux:isMemberOf ?memorialSerial .
?act a jolux:Act .
?act jolux:isPartOf ?memorial .
?act jolux:typeDocument ?typeDocument .

FILTER(?memYear=2024)
FILTER(STR(?typeDocument)='http://data.legilux.public.lu/resource/authority/resource-type/RGD')
FILTER(EXISTS{?act jolux:draft ?draft})
} ORDER BY ?memorialNumber

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants