Skip to content

Instantly share code, notes, and snippets.

@ocorcho
Created May 11, 2015 21:07
Show Gist options
  • Save ocorcho/88289d9be19c340dd4b2 to your computer and use it in GitHub Desktop.
Save ocorcho/88289d9be19c340dd4b2 to your computer and use it in GitHub Desktop.
Consulta para obtener contratos y su coste asociados a una empresa
SELECT DISTINCT ?uriCont ?formalizedDate xsd:float(?currency) WHERE {
{
SELECT DISTINCT ?uriCont ?formalizedDate xsd:string(?currencyValue) AS ?currency WHERE {
?uriCont a pproc:Contract;
pproc:contractObject/pproc:contractEconomicConditions/pproc:budgetPrice ?budgetPrice;
pc:tender ?tender.
?tender pproc:formalizedDate ?formalizedDate;
pc:supplier ?supplier;
pc:offeredPrice ?offeredPrice.
?supplier s:name ?name .
?offeredPrice gr:hasCurrencyValue ?currencyValue;
gr:valueAddedTaxIncluded "true"^^xsd:boolean.
FILTER (regex(?name, "TECNOLOGIA Y PRODUCTOS GRAFICOS S.A.", "i"))
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment