Sparql code for dps #9
-
|
Hello, Many thanks for the initiative with Ted Open Data Service! can anyone please help me to create a SparQL-query so I can see all Dynamic purchasing systems established in EU? I don't know how big of a ask this is. But if it's a big thing I'm grateful just to be pointed in the right direction. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
|
Dear @TedofSwe , Currently, there is no code list available that enumerates the different DPS used in the EU. As a result, it is not possible to perform a SPARQL query to retrieve them. The property I hope this helps clarify your question. Best regards, |
Beta Was this translation helpful? Give feedback.
-
|
HI @TedofSwe and @cristianvasquez ! You can try the queries below at https://yasgui.org/ by specifying https://publications.europa.eu/webapi/rdf/sparql as the SPARQL endpoint.
SELECT (count(*) as ?c) WHERE {
?x epo:hasDPSScope ?y
} # 4.1M
SELECT (count(distinct ?x) as ?c) WHERE {
?x epo:usesTechnique/epo:hasDPSScope ?y
} # 4.1M
PREFIX epo: <http://data.europa.eu/a4g/ontology#>
select (count(?y) as ?refersToLot) (count(?z) as ?announcesLot) (count(distinct ?y) as ?refersToLotDistinct) (count(distinct ?z) as ?announcesLotDistinct) {
{?x epo:refersToLot ?y}
union {?x epo:announcesLot ?z}
}
So I assume that
PREFIX epo: <http://data.europa.eu/a4g/ontology#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT (count(distinct ?x) as ?distinct) (count(?x) as ?withDups) WHERE {
?x epo:refersToLot/epo:usesTechnique/epo:hasDPSScope ?y
} The
Now @TedofSwe, what do you want to do with these 1.25M DPSes? |
Beta Was this translation helpful? Give feedback.
Dear @TedofSwe ,
Currently, there is no code list available that enumerates the different DPS used in the EU. As a result, it is not possible to perform a SPARQL query to retrieve them.
The property
epo:hasDPScopeis designed to describe DPS usage, but this may not align with the specific information you are looking for.I hope this helps clarify your question.
Best regards,
Cristian