Skip to content

Commit

Permalink
Merge pull request #12 from OP-TED/feature/TED-1432
Browse files Browse the repository at this point in the history
checking queries correctness
  • Loading branch information
duprijil authored Nov 14, 2023
2 parents 70f270d + 2b2cb36 commit 1a8ca5d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
20 changes: 9 additions & 11 deletions notebooks/query_cellar_R.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,14 @@
"?AwardedValueCurrency\n",
"WHERE {\n",
" VALUES ?NoticePublicationDate {\n",
" '20230921'\n",
" \"20230905\"\n",
" }\n",
" FILTER(LANG(?WinnerLegalName) = 'en')\n",
" ?NoticeId a epo:ResultNotice;\n",
" epo:hasPublicationDate ?NoticePublicationDate;\n",
" epo:refersToLot ?Lot.\n",
" ?Lot a epo:Lot.\n",
" ?LotAwardOutcome epo:describesLot ?Lot;\n",
" a epo:LotAwardOutcome;\n",
" ?Notice a epo:Notice;\n",
" epo:hasPublicationDate ?NoticePublicationDate ;\n",
" epo:refersToLot ?Lot .\n",
" ?LotAwardOutcome epo:describesLot ?Lot ;\n",
" epo:hasAwardedValue ?MonetaryValue ;\n",
" epo:comprisesTenderAwardOutcome ?TenderAwardOutcome.\n",
" ?TenderAwardOutcome a epo:TenderAwardOutcome;\n",
" epo:indicatesAwardOfLotToWinner / epo:playedBy ?Winner.\n",
Expand All @@ -70,10 +69,9 @@
" OPTIONAL {\n",
" ?Winner cccev:registeredAddress / epo:hasCountryCode ?WinnerCountryCode.\n",
" }\n",
" ?LotAwardOutcome epo:hasAwardedValue ?LotAwardedValue.\n",
" ?LotAwardedValue a epo:MonetaryValue;\n",
" epo:hasAmountValue ?AwardedValue;\n",
" epo:hasCurrency ?AwardedValueCurrency.\n",
" ?MonetaryValue a epo:MonetaryValue;\n",
" epo:hasAmountValue ?AwardedValue;\n",
" epo:hasCurrency ?AwardedValueCurrency .\n",
"}\n",
"\""
]
Expand Down
3 changes: 2 additions & 1 deletion queries/SMEs_by_country.rq
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ WHERE {
}
?Notice epo:hasPublicationDate ?NoticePublicationDate .
?Notice epo:announcesRole ?Buyer .
?Buyer epo:playedBy ?Organization .
?Buyer a epo:Winner ;
epo:playedBy ?Organization .
?Organization epo:hasBusinessSize ?BusinessSize .
?Organization cccev:registeredAddress / epo:hasCountryCode ?CountryCode .
}
3 changes: 2 additions & 1 deletion queries/notices_by_buyers_country.rq
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ WHERE {
}
?Notice epo:hasPublicationDate ?PublicationDate .
?Notice epo:announcesRole ?Buyer .
?Buyer epo:playedBy ?Organization .
?Buyer a epo:Buyer ;
epo:playedBy ?Organization .
?Organization cccev:registeredAddress / epo:hasCountryCode ?countryCode .
?Organization epo:hasLegalName ?LegalName .
}

0 comments on commit 1a8ca5d

Please sign in to comment.