Simple query to filter after a cpv category. #13
-
|
Hey, `PREFIX dc: http://purl.org/dc/elements/1.1/ SELECT DISTINCT ?publicationNumber ?legalName ?procedureType ?country }` |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
|
Hello, I believe the query didn't work because of the In ePO, the CPV category can be retrieved through the 'Purpose' of a procedure. For example: Here is a link to an example that uses CPVs I hope this helps, |
Beta Was this translation helpful? Give feedback.
-
|
Hi @cristianvasquez and @leobroom ! PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX epo: <http://data.europa.eu/a4g/ontology#>
PREFIX cdm: <http://publications.europa.eu/ontology/cdm#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
SELECT *
WHERE {
FILTER (?date = "2024-11-04"^^xsd:dateTime)
FILTER (?formType = <http://publications.europa.eu/resource/authority/form-type/competition>)
GRAPH ?noticeNamedGraph {
?noticeUri epo:hasPublicationDate ?date ;
epo:hasFormType ?formType ;
epo:refersToProcedure/epo:hasPurpose/epo:hasMainClassification/skos:broader* <http://data.europa.eu/cpv/cpv/71200000>
}
}For some reason the query doesn't return anything, I'm trying to debug it. |
Beta Was this translation helpful? Give feedback.
-
|
The reason is PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX epo: <http://data.europa.eu/a4g/ontology#>
PREFIX cdm: <http://publications.europa.eu/ontology/cdm#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
SELECT *
WHERE {
FILTER (?date = "2024-11-04"^^xsd:dateTime)
FILTER (?formType = <http://publications.europa.eu/resource/authority/form-type/competition>)
?noticeUri epo:hasPublicationDate ?date ;
epo:hasFormType ?formType ;
epo:refersToProcedure/epo:hasPurpose/epo:hasMainClassification/skos:broader* <http://data.europa.eu/cpv/cpv/71200000>
} |
Beta Was this translation helpful? Give feedback.
Hello,
I believe the query didn't work because of the
hasProcurementObjectproperty that doesn't appear to existIn ePO, the CPV category can be retrieved through the 'Purpose' of a procedure. For example: