forked from pproc/pproc-sparql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathquery_13.txt
64 lines (62 loc) · 2.95 KB
/
query_13.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
A list of all contracts awarded by the City, classified by type and amount, indicating the object, the amount of the bid, the award and the final cost, the procedure for the award, the instruments through which have been published where appropriate, the number of participating tenders, the awarded tenders, the duration or timing of planned and actual implementation, modifications, and any other information of special interest to the public.
PREFIX pproc: <http://contsem.unizar.es/def/sector-publico/pproc#>
PREFIX s: <http://schema.org/>
PREFIX pc: <http://purl.org/procurement/public-contracts#>
PREFIX gr: <http://purl.org/goodrelations/v1#>
PREFIX dcterms: <http://purl.org/dc/terms/>
SELECT DISTINCT ?contrato ?nombreContrato ?type ?adjudicatario ?duracion
?impLicitacionSinIVA ?impLicitacionConIVA ?impAdjudicacionSinIVA
?impAdjudicacionConIVA ?procedimiento ?instrumentos ?numLicitadores
WHERE {
{
SELECT DISTINCT ?contrato ?nombreContrato ?type ?adjudicatario ?duracion
?impLicitacionSinIVA ?impLicitacionConIVA ?impAdjudicacionSinIVA
?impAdjudicacionConIVA ?procedimiento ?instrumentos
WHERE {
?contrato a pproc:Contract;
a ?type;
dcterms:title ?nombreContrato;
pproc:contractObject ?contractObject;
pc:contractingAuthority ?contractingAuthority;
pc:tender ?tender;
pproc:duration ?duracion.
?tender a pproc:FormalizedTender;
pproc:formalizedDate ?formalizedDate;
pproc:supplier ?supplier.
?supplier s:name ?adjudicatario.
?contractObject pproc:contractEconomicConditions ?contractEconomicConditions.
?contractEconomicConditions pproc:budgetPrice ?budgetPriceNOVAT;
pproc:budgetPrice ?budgetPriceVAT.
?budgetPriceNOVAT gr:hasCurrencyValue ?impLicitacionSinIVA;
gr:valueAddedTaxIncluded "false"^^xsd:boolean.
?budgetPriceVAT gr:hasCurrencyValue ?impLicitacionConIVA;
gr:valueAddedTaxIncluded "true"^^xsd:boolean.
?tender pproc:offeredPrice ?offeredPriceNOVAT;
pproc:offeredPrice ?offeredPriceVAT.
?offeredPriceNOVAT gr:hasCurrencyValue ?impAdjudicacionSinIVA;
gr:valueAddedTaxIncluded "false"^^xsd:boolean.
?offeredPriceVAT gr:hasCurrencyValue ?impAdjudicacionConIVA;
gr:valueAddedTaxIncluded "true"^^xsd:boolean.
?contrato pproc:contractProcedureSpecifications ?procedureType.
?procedureType pproc:procedureType ?procedimiento.
OPTIONAL {
?procedureType pproc:notice ?instrumentos
}.
FILTER (regex(?formalizedDate, "2014") AND
(?type = pproc:ServicesContract OR
?type = pproc:WorksContract OR ?type = pproc:SuppliesContract))
}
}
{
SELECT DISTINCT ?contrato count(?tender) AS ?numLicitadores
WHERE {
?contrato a pproc:Contract;
a ?type;
pc:tender ?tender.
FILTER ((?type = pproc:ServicesContract OR
?type = pproc:WorksContract OR
?type = pproc:SuppliesContract))
}
GROUP BY ?contrato
}
}