Skip to content

Commit

Permalink
Merge pull request #525 from OP-TED/feature-TED5-171
Browse files Browse the repository at this point in the history
SPARQL queries for resources
  • Loading branch information
Dragos0000 authored Mar 21, 2024
2 parents f35d3e4 + b2fef74 commit 5273b4f
Show file tree
Hide file tree
Showing 29 changed files with 264 additions and 21 deletions.
10 changes: 10 additions & 0 deletions ted_sws/resources/queries/EU-programme.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
PREFIX dc: <http://purl.org/dc/elements/1.1/>

select ?code ?conceptURI
where
{
graph <http://publications.europa.eu/resource/authority/eu-programme>
{
?conceptURI dc:identifier ?code .
}
}
10 changes: 10 additions & 0 deletions ted_sws/resources/queries/accessibility.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
PREFIX dc: <http://purl.org/dc/elements/1.1/>

select ?code ?conceptURI
where
{
graph <http://publications.europa.eu/resource/authority/accessibility>
{
?conceptURI dc:identifier ?code .
}
}
10 changes: 10 additions & 0 deletions ted_sws/resources/queries/applicability.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
PREFIX dc: <http://purl.org/dc/elements/1.1/>

select ?code ?conceptURI
where
{
graph <http://publications.europa.eu/resource/authority/applicability>
{
?conceptURI dc:identifier ?code .
}
}
10 changes: 10 additions & 0 deletions ted_sws/resources/queries/change-corrig-justification.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
PREFIX dc: <http://purl.org/dc/elements/1.1/>

select ?code ?conceptURI
where
{
graph <http://publications.europa.eu/resource/authority/change-corrig-justification>
{
?conceptURI dc:identifier ?code .
}
}
10 changes: 10 additions & 0 deletions ted_sws/resources/queries/communication-justification.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
PREFIX dc: <http://purl.org/dc/elements/1.1/>

select ?code ?conceptURI
where
{
graph <http://publications.europa.eu/resource/authority/communication-justification>
{
?conceptURI dc:identifier ?code .
}
}
2 changes: 1 addition & 1 deletion ted_sws/resources/queries/country.rq
Original file line number Diff line number Diff line change
Expand Up @@ -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))

}
}
Empty file.
10 changes: 10 additions & 0 deletions ted_sws/resources/queries/dps-usage.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
PREFIX dc: <http://purl.org/dc/elements/1.1/>

select ?code ?conceptURI
where
{
graph <http://publications.europa.eu/resource/authority/dps-usage>
{
?conceptURI dc:identifier ?code .
}
}
10 changes: 10 additions & 0 deletions ted_sws/resources/queries/environmental-impact.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
PREFIX dc: <http://purl.org/dc/elements/1.1/>

select ?code ?conceptURI
where
{
graph <http://publications.europa.eu/resource/authority/environmental-impact>
{
?conceptURI dc:identifier ?code .
}
}
10 changes: 10 additions & 0 deletions ted_sws/resources/queries/framework-agreement.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
PREFIX dc: <http://purl.org/dc/elements/1.1/>

select ?code ?conceptURI
where
{
graph <http://publications.europa.eu/resource/authority/framework-agreement>
{
?conceptURI dc:identifier ?code .
}
}
10 changes: 10 additions & 0 deletions ted_sws/resources/queries/green-public-procurement-criteria.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
PREFIX dc: <http://purl.org/dc/elements/1.1/>

select ?code ?conceptURI
where
{
graph <http://publications.europa.eu/resource/authority/gpp-criteria>
{
?conceptURI dc:identifier ?code .
}
}
10 changes: 10 additions & 0 deletions ted_sws/resources/queries/innovative-acquisition.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
PREFIX dc: <http://purl.org/dc/elements/1.1/>

select ?code ?conceptURI
where
{
graph <http://publications.europa.eu/resource/authority/innovative-acquisition>
{
?conceptURI dc:identifier ?code .
}
}
17 changes: 7 additions & 10 deletions ted_sws/resources/queries/languages.rq
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX euvoc: <http://publications.europa.eu/ontology/euvoc#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>


select ?code ?conceptURI
where
SELECT DISTINCT ?code ?conceptURI
WHERE
{
graph <http://publications.europa.eu/resource/authority/language>
{

GRAPH <http://publications.europa.eu/resource/authority/language>
{
?conceptURI skos:notation ?code .

filter (datatype(?code)=euvoc:TED_SCHEMA)

FILTER (datatype(?code) IN (rdf:resource="http://publications.europa.eu/resource/authority/notation-type/ISO_639_3", euvoc:TED_SCHEMA))
}
}
}
10 changes: 0 additions & 10 deletions ted_sws/resources/queries/main_activity.rq
Original file line number Diff line number Diff line change
@@ -1,10 +0,0 @@
PREFIX dc: <http://purl.org/dc/elements/1.1/>

select ?code ?conceptURI
where
{
graph <http://publications.europa.eu/resource/authority/main-activity>
{
?conceptURI dc:identifier ?code .
}
}
12 changes: 12 additions & 0 deletions ted_sws/resources/queries/measurement-unit.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
PREFIX dc: <http://purl.org/dc/elements/1.1/>


select ?code ?conceptURI
where
{
graph <http://publications.europa.eu/resource/authority/measurement-unit>
{

?conceptURI dc:identifier ?code .
}
}
14 changes: 14 additions & 0 deletions ted_sws/resources/queries/missing-info-submission.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
PREFIX dc: <http://purl.org/dc/elements/1.1/>


select ?code ?conceptURI
where
{
graph <http://publications.europa.eu/resource/authority/missing-info-submission>
{

?conceptURI dc:identifier ?code .


}
}
10 changes: 10 additions & 0 deletions ted_sws/resources/queries/number-fixed.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
PREFIX dc: <http://purl.org/dc/elements/1.1/>

select ?code ?conceptURI
where
{
graph <http://publications.europa.eu/resource/authority/number-fixed>
{
?conceptURI dc:identifier ?code .
}
}
10 changes: 10 additions & 0 deletions ted_sws/resources/queries/number-threshold.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
PREFIX dc: <http://purl.org/dc/elements/1.1/>

select ?code ?conceptURI
where
{
graph <http://publications.europa.eu/resource/authority/number-threshold>
{
?conceptURI dc:identifier ?code .
}
}
10 changes: 10 additions & 0 deletions ted_sws/resources/queries/number-weight.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
PREFIX dc: <http://purl.org/dc/elements/1.1/>

select ?code ?conceptURI
where
{
graph <http://publications.europa.eu/resource/authority/number-weight>
{
?conceptURI dc:identifier ?code .
}
}
10 changes: 10 additions & 0 deletions ted_sws/resources/queries/other-place-service.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
PREFIX dc: <http://purl.org/dc/elements/1.1/>

select ?code ?conceptURI
where
{
graph <http://publications.europa.eu/resource/authority/other-place-service>
{
?conceptURI dc:identifier ?code .
}
}
10 changes: 10 additions & 0 deletions ted_sws/resources/queries/permission.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
PREFIX dc: <http://purl.org/dc/elements/1.1/>

select ?code ?conceptURI
where
{
graph <http://publications.europa.eu/resource/authority/permission>
{
?conceptURI dc:identifier ?code .
}
}
10 changes: 10 additions & 0 deletions ted_sws/resources/queries/requirement-stage.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
PREFIX dc: <http://purl.org/dc/elements/1.1/>

select ?code ?conceptURI
where
{
graph <http://publications.europa.eu/resource/authority/requirement-stage>
{
?conceptURI dc:identifier ?code .
}
}
10 changes: 10 additions & 0 deletions ted_sws/resources/queries/reserved-procurement.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
PREFIX dc: <http://purl.org/dc/elements/1.1/>

select ?code ?conceptURI
where
{
graph <http://publications.europa.eu/resource/authority/reserved-procurement>
{
?conceptURI dc:identifier ?code .
}
}
10 changes: 10 additions & 0 deletions ted_sws/resources/queries/selection-criterion.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
PREFIX dc: <http://purl.org/dc/elements/1.1/>

select ?code ?conceptURI
where
{
graph <http://publications.europa.eu/resource/authority/selection-criterion>
{
?conceptURI dc:identifier ?code .
}
}
10 changes: 10 additions & 0 deletions ted_sws/resources/queries/social-objective.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
PREFIX dc: <http://purl.org/dc/elements/1.1/>

select ?code ?conceptURI
where
{
graph <http://publications.europa.eu/resource/authority/social-objective>
{
?conceptURI dc:identifier ?code .
}
}
10 changes: 10 additions & 0 deletions ted_sws/resources/queries/subcontracting-indication.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
PREFIX dc: <http://purl.org/dc/elements/1.1/>

select ?code ?conceptURI
where
{
graph <http://publications.europa.eu/resource/authority/subcontracting-indication>
{
?conceptURI dc:identifier ?code .
}
}
10 changes: 10 additions & 0 deletions ted_sws/resources/queries/subcontracting-obligation.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
PREFIX dc: <http://purl.org/dc/elements/1.1/>

select ?code ?conceptURI
where
{
graph <http://publications.europa.eu/resource/authority/subcontracting-obligation>
{
?conceptURI dc:identifier ?code .
}
}
10 changes: 10 additions & 0 deletions ted_sws/resources/queries/timeperiod.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
PREFIX dc: <http://purl.org/dc/elements/1.1/>

select ?code ?conceptURI
where
{
graph <http://publications.europa.eu/resource/authority/timeperiod>
{
?conceptURI dc:identifier ?code .
}
}
10 changes: 10 additions & 0 deletions ted_sws/resources/queries/usage.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
PREFIX dc: <http://purl.org/dc/elements/1.1/>

select ?code ?conceptURI
where
{
graph <http://publications.europa.eu/resource/authority/usage>
{
?conceptURI dc:identifier ?code .
}
}

0 comments on commit 5273b4f

Please sign in to comment.