-
Notifications
You must be signed in to change notification settings - Fork 5
/
query_14.txt
68 lines (62 loc) · 2.7 KB
/
query_14.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
Budget volume in percentage of contracts awarded by each of the procedures provided for in the legislation.
PREFIX pproc: <http://contsem.unizar.es/def/sector-publico/pproc#>
PREFIX pc: <http://purl.org/procurement/public-contracts#>
PREFIX gr: <http://purl.org/goodrelations/v1#>
SELECT ?openPrice*100/?totalPrice as ?OpenProcedures ?negotiatedPrice*100/?totalPrice as ?NegotiatedProcedures ?minorPrice*100/?totalPrice as ?MinorProcedures
{
{SELECT SUM(distinct ?impAdjudicacionConIVA) as ?totalPrice
WHERE {
?uriCont a pproc:Contract;
pproc:contractProcedureSpecifications ?procedureType;
pc:tender ?tender.
?procedureType pproc:procedureType ?procedure.
?tender pproc:formalizedDate ?formalizedDate.
?uriCont pproc:contractObject/pproc:contractEconomicConditions ?cce.
?cce pproc:budgetPrice ?priceVAT .
?priceVAT gr:hasCurrencyValue ?impAdjudicacionConIVA;
gr:valueAddedTaxIncluded "true"^^xsd:boolean.
FILTER (regex(?formalizedDate, "2014") AND ?procedure IN (pproc:RegularOpen, pproc:Negotiated, pproc:Minor))
}}
{SELECT SUM(distinct ?impAdjudicacionConIVA) as ?openPrice
WHERE {
?uriCont a pproc:Contract;
pproc:contractProcedureSpecifications ?procedureType;
pc:tender ?tender.
?tender pproc:formalizedDate ?formalizedDate.
?procedureType pproc:procedureType ?procedure.
?uriCont pproc:contractObject/pproc:contractEconomicConditions ?cce.
?cce pproc:budgetPrice ?priceVAT .
?priceVAT gr:hasCurrencyValue ?impAdjudicacionConIVA;
gr:valueAddedTaxIncluded "true"^^xsd:boolean.
FILTER (regex(?formalizedDate, "2014")
AND (?procedure = pproc:RegularOpen) )
}}
{SELECT SUM(distinct ?impAdjudicacionConIVA) as ?negotiatedPrice
WHERE {
?uriCont a pproc:Contract;
pproc:contractProcedureSpecifications ?procedureType;
pc:tender ?tender.
?tender pproc:formalizedDate ?formalizedDate.
?procedureType pproc:procedureType ?procedure.
?uriCont pproc:contractObject/pproc:contractEconomicConditions ?cce.
?cce pproc:budgetPrice ?priceVAT .
?priceVAT gr:hasCurrencyValue ?impAdjudicacionConIVA;
gr:valueAddedTaxIncluded "true"^^xsd:boolean.
FILTER (regex(?formalizedDate, "2014")
AND (?procedure = pproc:Negotiated) )
}}
{SELECT SUM(distinct ?impAdjudicacionConIVA) as ?minorPrice
WHERE {
?uriCont a pproc:Contract;
pproc:contractProcedureSpecifications ?procedureType;
pc:tender ?tender.
?tender pproc:formalizedDate ?formalizedDate.
?procedureType pproc:procedureType ?procedure.
?uriCont pproc:contractObject/pproc:contractEconomicConditions ?cce.
?cce pproc:budgetPrice ?priceVAT .
?priceVAT gr:hasCurrencyValue ?impAdjudicacionConIVA;
gr:valueAddedTaxIncluded "true"^^xsd:boolean.
FILTER (regex(?formalizedDate, "2014")
AND (?procedure = pproc:Minor) )
}}
}