From fa1b8944fadf6cd3434569f835a415a6fdd4e6a8 Mon Sep 17 00:00:00 2001 From: "Ahmad, Jana, Ing" Date: Wed, 13 Mar 2024 15:21:37 +0100 Subject: [PATCH 1/4] SPARQL queries for resources --- ted_sws/resources/queries/EU-programme.rq | 10 ++++++++++ ted_sws/resources/queries/accessibility.rq | 10 ++++++++++ ted_sws/resources/queries/applicability.rq | 10 ++++++++++ .../queries/change-corrig-justification.rq | 10 ++++++++++ .../queries/communication-justification.rq | 10 ++++++++++ ted_sws/resources/queries/country.rq | 2 +- ted_sws/resources/queries/cvd-contract-type.rq | 0 ted_sws/resources/queries/dps-usage.rq | 10 ++++++++++ ted_sws/resources/queries/environmental-impact.rq | 10 ++++++++++ ted_sws/resources/queries/framework-agreement.rq | 10 ++++++++++ .../queries/green-public-procurement-criteria.rq | 10 ++++++++++ ted_sws/resources/queries/measurement-unit.rq | 12 ++++++++++++ .../resources/queries/missing-info-submission.rq | 14 ++++++++++++++ ted_sws/resources/queries/number-fixed.rq | 10 ++++++++++ ted_sws/resources/queries/number-threshold.rq | 10 ++++++++++ ted_sws/resources/queries/number-weight.rq | 10 ++++++++++ ted_sws/resources/queries/other-place-service.rq | 10 ++++++++++ ted_sws/resources/queries/permission.rq | 10 ++++++++++ ted_sws/resources/queries/requirement-stage.rq | 10 ++++++++++ ted_sws/resources/queries/reserved-procurement.rq | 10 ++++++++++ ted_sws/resources/queries/selection-criterion.rq | 10 ++++++++++ ted_sws/resources/queries/social-objective.rq | 10 ++++++++++ .../resources/queries/subcontracting-indication.rq | 10 ++++++++++ .../resources/queries/subcontracting-obligation.rq | 10 ++++++++++ ted_sws/resources/queries/timeperiod.rq | 10 ++++++++++ ted_sws/resources/queries/usage.rq | 10 ++++++++++ 26 files changed, 247 insertions(+), 1 deletion(-) create mode 100644 ted_sws/resources/queries/EU-programme.rq create mode 100644 ted_sws/resources/queries/accessibility.rq create mode 100644 ted_sws/resources/queries/applicability.rq create mode 100644 ted_sws/resources/queries/change-corrig-justification.rq create mode 100644 ted_sws/resources/queries/communication-justification.rq create mode 100644 ted_sws/resources/queries/cvd-contract-type.rq create mode 100644 ted_sws/resources/queries/dps-usage.rq create mode 100644 ted_sws/resources/queries/environmental-impact.rq create mode 100644 ted_sws/resources/queries/framework-agreement.rq create mode 100644 ted_sws/resources/queries/green-public-procurement-criteria.rq create mode 100644 ted_sws/resources/queries/measurement-unit.rq create mode 100644 ted_sws/resources/queries/missing-info-submission.rq create mode 100644 ted_sws/resources/queries/number-fixed.rq create mode 100644 ted_sws/resources/queries/number-threshold.rq create mode 100644 ted_sws/resources/queries/number-weight.rq create mode 100644 ted_sws/resources/queries/other-place-service.rq create mode 100644 ted_sws/resources/queries/permission.rq create mode 100644 ted_sws/resources/queries/requirement-stage.rq create mode 100644 ted_sws/resources/queries/reserved-procurement.rq create mode 100644 ted_sws/resources/queries/selection-criterion.rq create mode 100644 ted_sws/resources/queries/social-objective.rq create mode 100644 ted_sws/resources/queries/subcontracting-indication.rq create mode 100644 ted_sws/resources/queries/subcontracting-obligation.rq create mode 100644 ted_sws/resources/queries/timeperiod.rq create mode 100644 ted_sws/resources/queries/usage.rq diff --git a/ted_sws/resources/queries/EU-programme.rq b/ted_sws/resources/queries/EU-programme.rq new file mode 100644 index 000000000..65ca18240 --- /dev/null +++ b/ted_sws/resources/queries/EU-programme.rq @@ -0,0 +1,10 @@ +PREFIX dc: + +select ?code ?conceptURI +where +{ + graph + { + ?conceptURI dc:identifier ?code . + } +} \ No newline at end of file diff --git a/ted_sws/resources/queries/accessibility.rq b/ted_sws/resources/queries/accessibility.rq new file mode 100644 index 000000000..038c2f227 --- /dev/null +++ b/ted_sws/resources/queries/accessibility.rq @@ -0,0 +1,10 @@ +PREFIX dc: + +select ?code ?conceptURI +where +{ + graph + { + ?conceptURI dc:identifier ?code . + } +} \ No newline at end of file diff --git a/ted_sws/resources/queries/applicability.rq b/ted_sws/resources/queries/applicability.rq new file mode 100644 index 000000000..3c2d0f247 --- /dev/null +++ b/ted_sws/resources/queries/applicability.rq @@ -0,0 +1,10 @@ +PREFIX dc: + +select ?code ?conceptURI +where +{ + graph + { + ?conceptURI dc:identifier ?code . + } +} \ No newline at end of file diff --git a/ted_sws/resources/queries/change-corrig-justification.rq b/ted_sws/resources/queries/change-corrig-justification.rq new file mode 100644 index 000000000..1769ae0e2 --- /dev/null +++ b/ted_sws/resources/queries/change-corrig-justification.rq @@ -0,0 +1,10 @@ +PREFIX dc: + +select ?code ?conceptURI +where +{ + graph + { + ?conceptURI dc:identifier ?code . + } +} \ No newline at end of file diff --git a/ted_sws/resources/queries/communication-justification.rq b/ted_sws/resources/queries/communication-justification.rq new file mode 100644 index 000000000..01b000ed5 --- /dev/null +++ b/ted_sws/resources/queries/communication-justification.rq @@ -0,0 +1,10 @@ +PREFIX dc: + +select ?code ?conceptURI +where +{ + graph + { + ?conceptURI dc:identifier ?code . + } +} \ No newline at end of file diff --git a/ted_sws/resources/queries/country.rq b/ted_sws/resources/queries/country.rq index c3f25f14a..6bc850659 100644 --- a/ted_sws/resources/queries/country.rq +++ b/ted_sws/resources/queries/country.rq @@ -10,7 +10,7 @@ where ?conceptURI skos:notation ?code . - filter (datatype(?code)=euvoc:TED_SCHEMA) + filter (datatype(?code) in (euvoc:ISO_3166_1_ALPHA_3, euvoc:TED_SCHEMA)) } } \ No newline at end of file diff --git a/ted_sws/resources/queries/cvd-contract-type.rq b/ted_sws/resources/queries/cvd-contract-type.rq new file mode 100644 index 000000000..e69de29bb diff --git a/ted_sws/resources/queries/dps-usage.rq b/ted_sws/resources/queries/dps-usage.rq new file mode 100644 index 000000000..300b535cb --- /dev/null +++ b/ted_sws/resources/queries/dps-usage.rq @@ -0,0 +1,10 @@ +PREFIX dc: + +select ?code ?conceptURI +where +{ + graph + { + ?conceptURI dc:identifier ?code . + } +} \ No newline at end of file diff --git a/ted_sws/resources/queries/environmental-impact.rq b/ted_sws/resources/queries/environmental-impact.rq new file mode 100644 index 000000000..583db700a --- /dev/null +++ b/ted_sws/resources/queries/environmental-impact.rq @@ -0,0 +1,10 @@ +PREFIX dc: + +select ?code ?conceptURI +where +{ + graph + { + ?conceptURI dc:identifier ?code . + } +} \ No newline at end of file diff --git a/ted_sws/resources/queries/framework-agreement.rq b/ted_sws/resources/queries/framework-agreement.rq new file mode 100644 index 000000000..2ce94b4c9 --- /dev/null +++ b/ted_sws/resources/queries/framework-agreement.rq @@ -0,0 +1,10 @@ +PREFIX dc: + +select ?code ?conceptURI +where +{ + graph + { + ?conceptURI dc:identifier ?code . + } +} \ No newline at end of file diff --git a/ted_sws/resources/queries/green-public-procurement-criteria.rq b/ted_sws/resources/queries/green-public-procurement-criteria.rq new file mode 100644 index 000000000..5e99265db --- /dev/null +++ b/ted_sws/resources/queries/green-public-procurement-criteria.rq @@ -0,0 +1,10 @@ +PREFIX dc: + +select ?code ?conceptURI +where +{ + graph + { + ?conceptURI dc:identifier ?code . + } +} \ No newline at end of file diff --git a/ted_sws/resources/queries/measurement-unit.rq b/ted_sws/resources/queries/measurement-unit.rq new file mode 100644 index 000000000..10d334b67 --- /dev/null +++ b/ted_sws/resources/queries/measurement-unit.rq @@ -0,0 +1,12 @@ +PREFIX dc: + + +select ?code ?conceptURI +where +{ + graph + { + + ?conceptURI dc:identifier ?code . + } +} \ No newline at end of file diff --git a/ted_sws/resources/queries/missing-info-submission.rq b/ted_sws/resources/queries/missing-info-submission.rq new file mode 100644 index 000000000..943860897 --- /dev/null +++ b/ted_sws/resources/queries/missing-info-submission.rq @@ -0,0 +1,14 @@ +PREFIX dc: + + +select ?code ?conceptURI +where +{ + graph + { + + ?conceptURI dc:identifier ?code . + + + } +} \ No newline at end of file diff --git a/ted_sws/resources/queries/number-fixed.rq b/ted_sws/resources/queries/number-fixed.rq new file mode 100644 index 000000000..5b70566b3 --- /dev/null +++ b/ted_sws/resources/queries/number-fixed.rq @@ -0,0 +1,10 @@ +PREFIX dc: + +select ?code ?conceptURI +where +{ + graph + { + ?conceptURI dc:identifier ?code . + } +} \ No newline at end of file diff --git a/ted_sws/resources/queries/number-threshold.rq b/ted_sws/resources/queries/number-threshold.rq new file mode 100644 index 000000000..191b3bcfd --- /dev/null +++ b/ted_sws/resources/queries/number-threshold.rq @@ -0,0 +1,10 @@ +PREFIX dc: + +select ?code ?conceptURI +where +{ + graph + { + ?conceptURI dc:identifier ?code . + } +} \ No newline at end of file diff --git a/ted_sws/resources/queries/number-weight.rq b/ted_sws/resources/queries/number-weight.rq new file mode 100644 index 000000000..06e2d5893 --- /dev/null +++ b/ted_sws/resources/queries/number-weight.rq @@ -0,0 +1,10 @@ +PREFIX dc: + +select ?code ?conceptURI +where +{ + graph + { + ?conceptURI dc:identifier ?code . + } +} \ No newline at end of file diff --git a/ted_sws/resources/queries/other-place-service.rq b/ted_sws/resources/queries/other-place-service.rq new file mode 100644 index 000000000..3de8445a4 --- /dev/null +++ b/ted_sws/resources/queries/other-place-service.rq @@ -0,0 +1,10 @@ +PREFIX dc: + +select ?code ?conceptURI +where +{ + graph + { + ?conceptURI dc:identifier ?code . + } +} \ No newline at end of file diff --git a/ted_sws/resources/queries/permission.rq b/ted_sws/resources/queries/permission.rq new file mode 100644 index 000000000..df5d8914a --- /dev/null +++ b/ted_sws/resources/queries/permission.rq @@ -0,0 +1,10 @@ +PREFIX dc: + +select ?code ?conceptURI +where +{ + graph + { + ?conceptURI dc:identifier ?code . + } +} \ No newline at end of file diff --git a/ted_sws/resources/queries/requirement-stage.rq b/ted_sws/resources/queries/requirement-stage.rq new file mode 100644 index 000000000..f16f951f8 --- /dev/null +++ b/ted_sws/resources/queries/requirement-stage.rq @@ -0,0 +1,10 @@ +PREFIX dc: + +select ?code ?conceptURI +where +{ + graph + { + ?conceptURI dc:identifier ?code . + } +} \ No newline at end of file diff --git a/ted_sws/resources/queries/reserved-procurement.rq b/ted_sws/resources/queries/reserved-procurement.rq new file mode 100644 index 000000000..a6c610997 --- /dev/null +++ b/ted_sws/resources/queries/reserved-procurement.rq @@ -0,0 +1,10 @@ +PREFIX dc: + +select ?code ?conceptURI +where +{ + graph + { + ?conceptURI dc:identifier ?code . + } +} \ No newline at end of file diff --git a/ted_sws/resources/queries/selection-criterion.rq b/ted_sws/resources/queries/selection-criterion.rq new file mode 100644 index 000000000..3c488d7e2 --- /dev/null +++ b/ted_sws/resources/queries/selection-criterion.rq @@ -0,0 +1,10 @@ +PREFIX dc: + +select ?code ?conceptURI +where +{ + graph + { + ?conceptURI dc:identifier ?code . + } +} \ No newline at end of file diff --git a/ted_sws/resources/queries/social-objective.rq b/ted_sws/resources/queries/social-objective.rq new file mode 100644 index 000000000..e98c07839 --- /dev/null +++ b/ted_sws/resources/queries/social-objective.rq @@ -0,0 +1,10 @@ +PREFIX dc: + +select ?code ?conceptURI +where +{ + graph + { + ?conceptURI dc:identifier ?code . + } +} \ No newline at end of file diff --git a/ted_sws/resources/queries/subcontracting-indication.rq b/ted_sws/resources/queries/subcontracting-indication.rq new file mode 100644 index 000000000..1ceafa85d --- /dev/null +++ b/ted_sws/resources/queries/subcontracting-indication.rq @@ -0,0 +1,10 @@ +PREFIX dc: + +select ?code ?conceptURI +where +{ + graph + { + ?conceptURI dc:identifier ?code . + } +} \ No newline at end of file diff --git a/ted_sws/resources/queries/subcontracting-obligation.rq b/ted_sws/resources/queries/subcontracting-obligation.rq new file mode 100644 index 000000000..10099249e --- /dev/null +++ b/ted_sws/resources/queries/subcontracting-obligation.rq @@ -0,0 +1,10 @@ +PREFIX dc: + +select ?code ?conceptURI +where +{ + graph + { + ?conceptURI dc:identifier ?code . + } +} \ No newline at end of file diff --git a/ted_sws/resources/queries/timeperiod.rq b/ted_sws/resources/queries/timeperiod.rq new file mode 100644 index 000000000..4d9599c2e --- /dev/null +++ b/ted_sws/resources/queries/timeperiod.rq @@ -0,0 +1,10 @@ +PREFIX dc: + +select ?code ?conceptURI +where +{ + graph + { + ?conceptURI dc:identifier ?code . + } +} \ No newline at end of file diff --git a/ted_sws/resources/queries/usage.rq b/ted_sws/resources/queries/usage.rq new file mode 100644 index 000000000..e4f4dc1be --- /dev/null +++ b/ted_sws/resources/queries/usage.rq @@ -0,0 +1,10 @@ +PREFIX dc: + +select ?code ?conceptURI +where +{ + graph + { + ?conceptURI dc:identifier ?code . + } +} \ No newline at end of file From 75f2999ab66c4ccb47585e19f15f68a23d34ebee Mon Sep 17 00:00:00 2001 From: "Ahmad, Jana, Ing" Date: Wed, 13 Mar 2024 22:56:06 +0100 Subject: [PATCH 2/4] update SPARQL queries for resources --- ted_sws/resources/queries/innovative-acquisition.rq | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 ted_sws/resources/queries/innovative-acquisition.rq diff --git a/ted_sws/resources/queries/innovative-acquisition.rq b/ted_sws/resources/queries/innovative-acquisition.rq new file mode 100644 index 000000000..c6a0b3668 --- /dev/null +++ b/ted_sws/resources/queries/innovative-acquisition.rq @@ -0,0 +1,10 @@ +PREFIX dc: + +select ?code ?conceptURI +where +{ + graph + { + ?conceptURI dc:identifier ?code . + } +} \ No newline at end of file From 4a2df34deb2b5bdebf516af8d4d8d812f8c59201 Mon Sep 17 00:00:00 2001 From: "Ahmad, Jana, Ing" Date: Wed, 13 Mar 2024 22:59:24 +0100 Subject: [PATCH 3/4] update SPARQL queries for language --- ted_sws/resources/queries/languages.rq | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ted_sws/resources/queries/languages.rq b/ted_sws/resources/queries/languages.rq index cdd2716d5..0f67f4ff4 100644 --- a/ted_sws/resources/queries/languages.rq +++ b/ted_sws/resources/queries/languages.rq @@ -2,7 +2,7 @@ PREFIX skos: PREFIX euvoc: -select ?code ?conceptURI +select distinct ?code ?conceptURI where { graph @@ -10,7 +10,9 @@ where ?conceptURI skos:notation ?code . - filter (datatype(?code)=euvoc:TED_SCHEMA) + filter (datatype(?code) in (euvoc:XML_LNG, euvoc:TED_SCHEMA)) +# bind(datatype(?code) as ?datatype) + } } \ No newline at end of file From 1409d4c64e620c482e0fd0a518f8b68e0271893d Mon Sep 17 00:00:00 2001 From: "Ahmad, Jana, Ing" Date: Fri, 15 Mar 2024 12:53:33 +0100 Subject: [PATCH 4/4] update SPARQL queries for language --- ted_sws/resources/queries/languages.rq | 19 +++++++------------ ted_sws/resources/queries/main_activity.rq | 10 ---------- 2 files changed, 7 insertions(+), 22 deletions(-) diff --git a/ted_sws/resources/queries/languages.rq b/ted_sws/resources/queries/languages.rq index 0f67f4ff4..91eca052e 100644 --- a/ted_sws/resources/queries/languages.rq +++ b/ted_sws/resources/queries/languages.rq @@ -1,18 +1,13 @@ PREFIX skos: PREFIX euvoc: +PREFIX rdf: - -select distinct ?code ?conceptURI -where +SELECT DISTINCT ?code ?conceptURI +WHERE { - graph - { - + GRAPH + { ?conceptURI skos:notation ?code . - - filter (datatype(?code) in (euvoc:XML_LNG, euvoc:TED_SCHEMA)) -# bind(datatype(?code) as ?datatype) - - + FILTER (datatype(?code) IN (rdf:resource="http://publications.europa.eu/resource/authority/notation-type/ISO_639_3", euvoc:TED_SCHEMA)) } -} \ No newline at end of file +} diff --git a/ted_sws/resources/queries/main_activity.rq b/ted_sws/resources/queries/main_activity.rq index 952a34da0..e69de29bb 100644 --- a/ted_sws/resources/queries/main_activity.rq +++ b/ted_sws/resources/queries/main_activity.rq @@ -1,10 +0,0 @@ -PREFIX dc: - -select ?code ?conceptURI -where -{ - graph - { - ?conceptURI dc:identifier ?code . - } -} \ No newline at end of file