Skip to content

Commit

Permalink
[CI] Publish Documentation for 265f6ca
Browse files Browse the repository at this point in the history
  • Loading branch information
NPJ-OP-LUX committed Dec 2, 2024
1 parent 644c665 commit b6b05c7
Show file tree
Hide file tree
Showing 21 changed files with 6,832 additions and 6,617 deletions.
33 changes: 32 additions & 1 deletion ODS/latest/samples/advanced-1.html
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,38 @@ <h3 class="title"><a href="../index.html">TED Open Data</a></h3>
<h1 class="page">List the named graphs published on a specified period</h1>
<div class="listingblock">
<div class="content">
<pre class="highlightjs highlight"><code class="language-sparql hljs" data-lang="sparql">Unresolved include directive in modules/samples/pages/advanced-1.adoc - include::../queries/mets-packages.sparql[]</code></pre>
<pre class="highlightjs highlight"><code class="language-sparql hljs" data-lang="sparql">SELECT ?date ?journalNumber ?metsNamedGraph ?noticeNamedGraph ?accessUrl ?xmlSource
WHERE {

FILTER (?date &gt;= "2024-11-04T00:00:00"^^xsd:dateTime &amp;&amp;
?date &lt;= "2024-11-05T23:59:59"^^xsd:dateTime)

GRAPH ?metsNamedGraph {
?s a cdm:procurement_public .
?s cdm:procurement_public_number_document_in_official-journal ?journalNumber .
?s cdm:work_date_document ?date .

# Construct the target URI based on date and journal number
BIND(IRI(CONCAT(
"http://data.europa.eu/a4g/resource/",
STR(YEAR(xsd:dateTime(?date))), "/",
?journalNumber, "_",
STR(YEAR(xsd:dateTime(?date)))
)) AS ?noticeNamedGraph)

BIND(IRI(CONCAT(
"https://ted.europa.eu/en/notice/-/detail/",
?journalNumber, "-",
STR(YEAR(xsd:dateTime(?date)))
)) AS ?accessUrl)

BIND(IRI(CONCAT(
"https://ted.europa.eu/en/notice/",
?journalNumber, "-",
STR(YEAR(xsd:dateTime(?date))), "/xml"
)) AS ?xmlSource)
}
}</code></pre>
</div>
</div>
<hr>
Expand Down
14 changes: 13 additions & 1 deletion ODS/latest/samples/advanced-2.html
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,19 @@ <h3 class="title"><a href="../index.html">TED Open Data</a></h3>
<h1 class="page">Retrieve the RDF of a chosen notice</h1>
<div class="listingblock">
<div class="content">
<pre class="highlightjs highlight"><code class="language-sparql hljs" data-lang="sparql">Unresolved include directive in modules/samples/pages/advanced-2.adoc - include::../queries/notice-per-publication-number.sparql[]</code></pre>
<pre class="highlightjs highlight"><code class="language-sparql hljs" data-lang="sparql">CONSTRUCT {
?s ?p ?o .
}
WHERE {
FILTER (?publicationNumber = "00665936-2024")
GRAPH ?g {
?Notice a epo:Notice ;
epo:hasNoticePublicationNumber ?publicationNumber .
}
GRAPH ?g {
?s ?p ?o .
}
}</code></pre>
</div>
</div>
<hr>
Expand Down
31 changes: 30 additions & 1 deletion ODS/latest/samples/query-1.html
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,36 @@ <h2 id="_query"><a class="anchor" href="#_query"></a>Query</h2>
</div>
<div class="listingblock">
<div class="content">
<pre class="highlightjs highlight"><code class="language-sparql hljs" data-lang="sparql">Unresolved include directive in modules/samples/pages/query-1.adoc - include::../queries/notices-per-day.sparql[]</code></pre>
<pre class="highlightjs highlight"><code class="language-sparql hljs" data-lang="sparql">SELECT ?publicationNumber ?procedureType ?noticeType ?formType
WHERE {
FILTER (?publicationDate = "2024-11-06"^^xsd:date)
GRAPH ?g {
?notice a epo:Notice ;
epo:hasPublicationDate ?publicationDate ;
epo:hasNoticePublicationNumber ?publicationNumber ;
epo:hasNoticeType ?noticeTypeUri ;
epo:hasFormType ?formTypeUri ;
epo:refersToProcedure [
a epo:Procedure ;
epo:hasProcedureType ?procedureTypeUri
] .
}

# Retrieve the label in english for noticeTypeUri
?noticeTypeUri a skos:Concept ;
skos:prefLabel ?noticeType .
FILTER (lang(?noticeType) = "en")

# Retrieve the label in english for formTypeUri
?formTypeUri a skos:Concept ;
skos:prefLabel ?formType .
FILTER (lang(?formType) = "en")

# Retrieve the label in english for procedureTypeUri
?procedureTypeUri a skos:Concept ;
skos:prefLabel ?procedureType .
FILTER (lang(?procedureType) = "en")
}</code></pre>
</div>
</div>
<div class="ulist">
Expand Down
24 changes: 23 additions & 1 deletion ODS/latest/samples/query-2.html
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,29 @@ <h2 id="_query"><a class="anchor" href="#_query"></a>Query</h2>
</div>
<div class="listingblock">
<div class="content">
<pre class="highlightjs highlight"><code class="language-sparql hljs" data-lang="sparql">Unresolved include directive in modules/samples/pages/query-2.adoc - include::../queries/contracts-per-day.sparql[]</code></pre>
<pre class="highlightjs highlight"><code class="language-sparql hljs" data-lang="sparql">SELECT ?contractTitle ?conclusionDate ?lotUri ?amount ?currency
WHERE {
FILTER (?publicationDate = "2024-11-04"^^xsd:date)
FILTER (?currencyUri = &lt;http://publications.europa.eu/resource/authority/currency/EUR&gt;)
?noticeUri a epo:Notice ;
epo:refersToLot ?lotUri ;
epo:hasPublicationDate ?publicationDate ;
epo:hasNoticePublicationNumber ?publicationNumber .
?contractUri a epo:Contract ;
dct:title ?contractTitle ;
epo:hasContractConclusionDate ?conclusionDate ;
epo:includesTender [
a epo:Tender ;
epo:isSubmittedForLot ?lotUri ;
epo:hasFinancialOfferValue [
a epo:MonetaryValue ;
epo:hasAmountValue ?amount ;
epo:hasCurrency ?currencyUri
]
] .
?currencyUri dc:identifier ?currency .
}
ORDER BY DESC(?amount)</code></pre>
</div>
</div>
<div class="ulist">
Expand Down
35 changes: 34 additions & 1 deletion ODS/latest/samples/query-3.html
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,40 @@ <h2 id="_query"><a class="anchor" href="#_query"></a>Query</h2>
</div>
<div class="listingblock">
<div class="content">
<pre class="highlightjs highlight"><code class="language-sparql hljs" data-lang="sparql">Unresolved include directive in modules/samples/pages/query-3.adoc - include::../queries/awarded-tender-amounts.sparql[]</code></pre>
<pre class="highlightjs highlight"><code class="language-sparql hljs" data-lang="sparql">SELECT ?publicationNumber ?lotUri ?legalName ?amount
WHERE {
FILTER (?publicationDate = "2024-11-04"^^xsd:date)
FILTER (?currencyUri = &lt;http://publications.europa.eu/resource/authority/currency/EUR&gt;)
?noticeUri a epo:Notice ;
epo:hasPublicationDate ?publicationDate ;
epo:hasNoticePublicationNumber ?publicationNumber ;
epo:announcesAwardDecision [
a epo:AwardDecision ;
epo:comprisesAwardOutcome [
a epo:LotAwardOutcome ;
epo:hasAwardStatus &lt;http://publications.europa.eu/resource/authority/winner-selection-status/selec-w&gt; ;
epo:concernsLot ?lotUri ;
epo:comprisesTenderAwardOutcome [
a epo:TenderAwardOutcome ;
epo:concernsTender [
a epo:Tender ;
epo:isSubmitedBy [
a epo:Tenderer ;
epo:playedBy [
epo:hasLegalName ?legalName
]
] ;
epo:hasFinancialOfferValue [
a epo:MonetaryValue ;
epo:hasAmountValue ?amount ;
epo:hasCurrency ?currencyUri
]
]
]
]
] .
}
ORDER BY DESC(?amount)</code></pre>
</div>
</div>
<div class="ulist">
Expand Down
41 changes: 40 additions & 1 deletion ODS/latest/samples/query-4.html
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,46 @@ <h2 id="_query"><a class="anchor" href="#_query"></a>Query</h2>
</div>
<div class="listingblock">
<div class="content">
<pre class="highlightjs highlight"><code class="language-sparql hljs" data-lang="sparql">Unresolved include directive in modules/samples/pages/query-4.adoc - include::../queries/winners-per-day.sparql[]</code></pre>
<pre class="highlightjs highlight"><code class="language-sparql hljs" data-lang="sparql">SELECT ?publicationNumber ?winnerLegalName ?amount ?currency WHERE {

FILTER (?publicationDate = "2024-11-04"^^xsd:date )
FILTER (?currencyUri = &lt;http://publications.europa.eu/resource/authority/currency/EUR&gt; )
FILTER (?rank = 1 )
FILTER (?awardStatusUri = &lt;http://publications.europa.eu/resource/authority/winner-selection-status/selec-w&gt; ) # was selected

?noticeUri a epo:Notice ;
epo:hasPublicationDate ?publicationDate ;
epo:hasNoticePublicationNumber ?publicationNumber ;
epo:announcesAwardDecision [
a epo:AwardDecision ;
epo:comprisesAwardOutcome [
a epo:LotAwardOutcome ;
epo:hasAwardStatus ?awardStatusUri ;
epo:concernsLot ?lotUri ;
epo:comprisesTenderAwardOutcome [
a epo:TenderAwardOutcome ;
epo:hasAwardRank ?rank ;
epo:concernsTender [
a epo:Tender ;
epo:isSubmitedBy [
a epo:Tenderer ;
epo:playedBy ?winnerUri
] ;
epo:hasFinancialOfferValue [
a epo:MonetaryValue ;
epo:hasAmountValue ?amount ;
epo:hasCurrency ?currencyUri ;

]
] ;
]
]
] .

?winnerUri epo:hasLegalName ?winnerLegalName .
?currencyUri dc:identifier ?currency .

} ORDER BY DESC(?amount)</code></pre>
</div>
</div>
<div class="ulist">
Expand Down
22 changes: 21 additions & 1 deletion ODS/latest/samples/query-5.html
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,27 @@ <h2 id="_query"><a class="anchor" href="#_query"></a>Query</h2>
</div>
<div class="listingblock">
<div class="content">
<pre class="highlightjs highlight"><code class="language-sparql hljs" data-lang="sparql">Unresolved include directive in modules/samples/pages/query-5.adoc - include::../queries/notices-per-buyer-country.sparql[]</code></pre>
<pre class="highlightjs highlight"><code class="language-sparql hljs" data-lang="sparql">SELECT DISTINCT ?publicationNumber ?legalName ?country
WHERE {
FILTER (?publicationDate = "2024-11-04"^^xsd:date)
GRAPH ?g {
?notice a epo:Notice ;
epo:hasPublicationDate ?publicationDate ;
epo:hasNoticePublicationNumber ?publicationNumber ;
epo:announcesRole [
a epo:Buyer ;
epo:playedBy [
epo:hasLegalName ?legalName ;
cccev:registeredAddress [
epo:hasCountryCode ?countryUri
]
]
] .
}
?countryUri a skos:Concept ;
skos:prefLabel ?country .
FILTER (lang(?country) = "en")
}</code></pre>
</div>
</div>
<div class="ulist">
Expand Down
31 changes: 30 additions & 1 deletion ODS/latest/samples/query-6.html
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,36 @@ <h2 id="_query"><a class="anchor" href="#_query"></a>Query</h2>
</div>
<div class="listingblock">
<div class="content">
<pre class="highlightjs highlight"><code class="language-sparql hljs" data-lang="sparql">Unresolved include directive in modules/samples/pages/query-6.adoc - include::../queries/competition-notices.sparql[]</code></pre>
<pre class="highlightjs highlight"><code class="language-sparql hljs" data-lang="sparql">SELECT DISTINCT ?publicationNumber ?legalName ?procedureType ?country
WHERE {
FILTER (?publicationDate = "2024-11-04"^^xsd:date)
FILTER (?formType = &lt;http://publications.europa.eu/resource/authority/form-type/competition&gt;)

GRAPH ?g {
?notice
epo:hasPublicationDate ?publicationDate ;
epo:refersToProcedure [
epo:hasProcedureType ?procedureTypeUri ;
a epo:Procedure
] ;
epo:hasNoticePublicationNumber ?publicationNumber ;
epo:hasFormType ?formType ;
epo:announcesRole [
a epo:Buyer ;
epo:playedBy [
epo:hasLegalName ?legalName ;
cccev:registeredAddress [
epo:hasCountryCode ?countryUri
]
]
]
}
?procedureTypeUri a skos:Concept ;
skos:prefLabel ?procedureType.
FILTER (lang(?procedureType) = "en")

?countryUri dc:identifier ?country.
}</code></pre>
</div>
</div>
<div class="ulist">
Expand Down
Loading

0 comments on commit b6b05c7

Please sign in to comment.