Skip to content

Commit d251039

Browse files
author
mfontsan
committed
20180226Mo - First commit version 2.0.0
1 parent bf100bb commit d251039

File tree

63 files changed

+17094
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+17094
-0
lines changed

.project

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>eprocurementontology</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
</buildSpec>
9+
<natures>
10+
</natures>
11+
</projectDescription>

v2.0.0/.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Target html files are skipped and pushed appart from local to the 'eprocurement-everis.github.io' repository
2+
07-Asciidoc/target
3+
4+
# Other resources, such as ppt with raw drawings, etc.
5+
07-Asciidoc/src/main/asciidoc/rscs
6+
7+
# IntelliJ files
8+
.idea
9+
*.iml

v2.0.0/.project

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>O3PO</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
</buildSpec>
9+
<natures>
10+
</natures>
11+
</projectDescription>

v2.0.0/01_Resources/README

Whitespace-only changes.
21.5 KB
Binary file not shown.
Binary file not shown.

v2.0.0/02_IR_DED/xlst/Glossary.html

Lines changed: 1204 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,146 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<xsl:stylesheet version="2.0"
3+
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
5+
xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0"
6+
xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0"
7+
xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0"
8+
xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0"
9+
xmlns:ccts="urn:un:unece:uncefact:documentation:2"
10+
xmlns:epo="http://data.europa.eu/ePO/ontology#"
11+
xmlns:math="http://exslt.org/math"
12+
extension-element-prefixes="math">
13+
14+
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
15+
16+
<xsl:template match="/">
17+
<xsl:call-template name="HTMLHeader"/>
18+
<xsl:call-template name="beginBody"/>
19+
<xsl:text disable-output-escaping="yes">&lt;tr&gt;</xsl:text>
20+
<xsl:text disable-output-escaping="yes">&lt;td&gt;</xsl:text>
21+
<xsl:apply-templates/>
22+
<xsl:text disable-output-escaping="yes">&lt;/td&gt;</xsl:text>
23+
<xsl:text disable-output-escaping="yes">&lt;tr&gt;</xsl:text>
24+
<xsl:call-template name="endBody"/>
25+
</xsl:template>
26+
27+
<xsl:template match="epo:DictionaryEntry">
28+
<xsl:apply-templates select="xsd:annotation"/>
29+
</xsl:template>
30+
31+
<xsl:template match="xsd:annotation">
32+
<xsl:apply-templates select="xsd:documentation"/>
33+
</xsl:template>
34+
35+
<xsl:template match="xsd:documentation">
36+
<xsl:variable name="examples" select="ccts:Examples"/>
37+
<xsl:variable name="source" select="epo:Sources"/>
38+
<xsl:variable name="usedIn" select="ccts:UsageRule"/>
39+
40+
<xsl:variable name="entryPos">
41+
<xsl:number count="epo:DictionaryEntry" format="1"/>
42+
</xsl:variable>
43+
44+
<xsl:variable name="Entry" select="upper-case(substring(ccts:DictionaryEntryName/text(), 1,1))"/>
45+
<xsl:variable name="nextEntry" select="upper-case(substring(../../../epo:DictionaryEntry[$entryPos + 1]/xsd:annotation/xsd:documentation/ccts:DictionaryEntryName/text(), 1,1))"/>
46+
47+
<xsl:if test="$entryPos = 1">
48+
<div class="nqa">
49+
<hr style="height: 10px; border-style: solid; border-color: #8c8b8b; border-width: 1px 0 0 0; border-radius: 30px;"/>
50+
<entry_letter>
51+
<xsl:value-of select="$Entry"/>
52+
<a href="#index" style="text-decoration:none;"> ↑ </a>
53+
</entry_letter>
54+
</div>
55+
</xsl:if>
56+
57+
<div class="qa">
58+
<xsl:text disable-output-escaping="yes">&lt;input type="checkbox" id="qa</xsl:text><xsl:value-of select="$entryPos"/><xsl:text disable-output-escaping="yes">"/&gt;</xsl:text>
59+
<xsl:text disable-output-escaping="yes">&lt;label for="qa</xsl:text><xsl:value-of select="$entryPos"/><xsl:text disable-output-escaping="yes">"&gt;</xsl:text><entry><xsl:value-of select="ccts:DictionaryEntryName"/></entry><xsl:text disable-output-escaping="yes">&lt;/label&gt;</xsl:text>
60+
<div>
61+
<definition><xsl:value-of select="ccts:Definition"/></definition>
62+
<br>
63+
<xsl:if test="$examples !=''"><examples><bn>Ex.: </bn><xsl:value-of select="$examples"/></examples></xsl:if>
64+
<xsl:if test="$source !=''"><sources><br><bn>Source: </bn><xsl:value-of select="$source"/></br></sources></xsl:if>
65+
<xsl:if test="$usedIn !=''"><usedIn><br><bn>Used in: </bn><xsl:value-of select="$usedIn"/></br></usedIn></xsl:if>
66+
</br>
67+
</div>
68+
</div>
69+
70+
<xsl:if test="$Entry != $nextEntry">
71+
<div class="nqa">
72+
<hr style="height: 10px; border-style: solid; border-color: #8c8b8b; border-width: 1px 0 0 0; border-radius: 30px;"/>
73+
<entry_letter>
74+
<xsl:text disable-output-escaping="yes">&lt;div id="</xsl:text><xsl:value-of select="$nextEntry"/><xsl:text disable-output-escaping="yes">"&gt;</xsl:text><xsl:text disable-output-escaping="yes">&lt;/div&gt;</xsl:text>
75+
<xsl:value-of select="$nextEntry"/>
76+
<a href="#index" style="text-decoration:none;"> ↑ </a>
77+
</entry_letter>
78+
</div>
79+
</xsl:if>
80+
81+
</xsl:template>
82+
83+
<xsl:template name="HTMLHeader">
84+
<xsl:text disable-output-escaping="yes">&lt;html&gt;</xsl:text>
85+
<head>
86+
<meta charset="UTF-8"/>
87+
<title>eProcurement Ontology (ePO) Glossary</title>
88+
<link rel = "stylesheet" type = "text/css" href = "./css/Glossary.css"/>
89+
</head>
90+
</xsl:template>
91+
92+
<xsl:template name="beginBody">
93+
94+
<xsl:text disable-output-escaping="yes">&lt;table width=70%" align="center"&gt;</xsl:text>
95+
<xsl:text disable-output-escaping="yes">&lt;tr&gt;</xsl:text>
96+
<xsl:text disable-output-escaping="yes">&lt;td&gt;</xsl:text>
97+
<xsl:text disable-output-escaping="yes">&lt;body&gt;</xsl:text>
98+
<h1 class="title_font">eProcurement Ontology (ePO) Glossary</h1>
99+
<div class="normal_font">
100+
<p>The following list of eProcurement concepts have been detected through an analysis of the new procurement forms (<b>eForms</b>) to be used soon by all tenderers in the EU.</p>
101+
<p><b>eForms</b> are one of the actions in the Single Market Strategy, where the European Commission has committed to "facilitate the collection, consolidation, management and analysis of procurement data, supporting Member States’ efforts towards better governance in public procurement".</p>
102+
<p>Please review the proposed definitions, as well as the link of each concept with the proposed Use Cases and eProcurement phases.</p>
103+
<p>In the Github section <a href="https://github.com/eProcurement-everis/ePO/wiki/Glossary-Management" style="text-decoration:none">Glossary Management</a> you will find instructions of how to contribute to the enrichment and improvement of the EPO Glossary.</p>
104+
</div>
105+
106+
<p>
107+
<a class="anchor" href="#index"/>
108+
<div class="index" id="index">
109+
<a href="#A" style="text-decoration:none;">A </a>
110+
<a href="#B" style="text-decoration:none;"> B </a>
111+
<a href="#C" style="text-decoration:none;"> C </a>
112+
<a href="#D" style="text-decoration:none;"> D </a>
113+
<a href="#E" style="text-decoration:none;"> E </a>
114+
<a href="#F" style="text-decoration:none;"> F </a>
115+
<a href="#G" style="text-decoration:none;"> G </a>
116+
<a href="#H" style="text-decoration:none;"> H </a>
117+
<a href="#I" style="text-decoration:none;"> I </a>
118+
<a href="#J" style="text-decoration:none;"> J </a>
119+
<a href="#K" style="text-decoration:none;"> K </a>
120+
<a href="#L" style="text-decoration:none;"> L </a>
121+
<a href="#M" style="text-decoration:none;"> M </a>
122+
<a href="#N" style="text-decoration:none;"> N </a>
123+
<a href="#O" style="text-decoration:none;"> O </a>
124+
<a href="#P" style="text-decoration:none;"> P </a>
125+
<a href="#Q" style="text-decoration:none;"> Q </a>
126+
<a href="#R" style="text-decoration:none;"> R </a>
127+
<a href="#S" style="text-decoration:none;"> S </a>
128+
<a href="#T" style="text-decoration:none;"> T </a>
129+
<a href="#U" style="text-decoration:none;"> U </a>
130+
<a href="#V" style="text-decoration:none;"> V </a>
131+
<a href="#W" style="text-decoration:none;"> W </a>
132+
<a href="#X" style="text-decoration:none;"> X </a>
133+
<a href="#Y" style="text-decoration:none;"> Y </a>
134+
<a href="#Z" style="text-decoration:none;"> Z </a>
135+
</div>
136+
</p>
137+
<xsl:text disable-output-escaping="yes">&lt;/td&gt;</xsl:text>
138+
<xsl:text disable-output-escaping="yes">&lt;tr&gt;</xsl:text>
139+
</xsl:template>
140+
141+
<xsl:template name="endBody">
142+
<xsl:text disable-output-escaping="yes">&lt;/table&gt;</xsl:text>
143+
<xsl:text disable-output-escaping="yes">&lt;/body&gt;</xsl:text>
144+
</xsl:template>
145+
146+
</xsl:stylesheet>
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- edited with XMLSpy v2010 rel. 3 (x64) (http://www.altova.com) by everis Spain, S.L. (everis Spain, S.L.) -->
3+
<xsl:stylesheet version="2.0"
4+
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
5+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
6+
xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0"
7+
xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0"
8+
xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0"
9+
xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0"
10+
xmlns:ccts="urn:un:unece:uncefact:documentation:2"
11+
xmlns:epo="http://data.europa.eu/ePO/ontology#">
12+
13+
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
14+
15+
<xsl:template match="/">
16+
<xsl:apply-templates/>
17+
</xsl:template>
18+
19+
<xsl:template match="office:body">
20+
<!-- output ISO 11179 root element starting tag -->
21+
<DataElementDictionary xmlns:epo="http://data.europa.eu/ePO/ontology#" xmlns:ccts="urn:un:unece:uncefact:documentation:2">
22+
<xsl:apply-templates select="office:spreadsheet/table:table"/>
23+
<!-- output ISO 11179 root element closing tag -->
24+
</DataElementDictionary>
25+
</xsl:template>
26+
27+
<xsl:template match="office:spreadsheet/table:table">
28+
<xsl:if test="@table:name='ePO-Glossary'">
29+
<xsl:apply-templates select="table:table-row"/>
30+
</xsl:if>
31+
</xsl:template>
32+
33+
<xsl:function name="epo:getCellContent">
34+
<xsl:param name="node"/>
35+
<xsl:param name="colpos"/>
36+
<xsl:value-of select="$node/table:table-cell[sum(preceding-sibling::*/@table:number-columns-repeated) + position() - count(preceding-sibling::*/@table:number-columns-repeated) &lt;= $colpos][last()]/text:p/text()"/>
37+
</xsl:function>
38+
39+
<xsl:template match="table:table-row">
40+
<xsl:if test="position() >3">
41+
<epo:DictionaryEntry>
42+
<xsl:call-template name="createComponent"/>
43+
</epo:DictionaryEntry>
44+
</xsl:if>
45+
</xsl:template>
46+
47+
<xsl:template name="createComponent">
48+
49+
<xsl:variable name="CONCEPT" select="1"/>
50+
<xsl:variable name="DEFINITION" select="2"/>
51+
<xsl:variable name="EXAMPLES" select="3"/>
52+
<xsl:variable name="SYNONYMS" select="4"/>
53+
<xsl:variable name="SOURCE" select="5"/>
54+
<!-- Phases -->
55+
<xsl:variable name="E-NOTIFICATION" select="6"/>
56+
<xsl:variable name="E-ACCESS" select="7"/>
57+
<xsl:variable name="E-SUBMISSION" select="8"/>
58+
<xsl:variable name="E-EVALUATION" select="9"/>
59+
<xsl:variable name="E-AWARDING" select="10"/>
60+
<xsl:variable name="E-REQUEST" select="11"/>
61+
<xsl:variable name="E-ORDERING" select="12"/>
62+
<xsl:variable name="E-FULFILMENT" select="13"/>
63+
<xsl:variable name="E-INVOICING" select="14"/>
64+
<xsl:variable name="E-PAYMENT" select="15"/>
65+
66+
<xsl:variable name="examplesNotEmpy" select="epo:getCellContent(., $EXAMPLES)"/>
67+
<xsl:variable name="synonymsNotEmpty" select="epo:getCellContent(., $SYNONYMS)"/>
68+
<xsl:variable name="sourceNotEmpty" select="epo:getCellContent(., $SOURCE)"/>
69+
70+
<xsd:annotation>
71+
<xsd:documentation xml:lang="en">
72+
<ccts:DictionaryEntryName><xsl:value-of select="epo:getCellContent(., $CONCEPT)"/></ccts:DictionaryEntryName>
73+
<ccts:Definition><xsl:value-of select="epo:getCellContent(., $DEFINITION)"/></ccts:Definition>
74+
<xsl:if test="$examplesNotEmpy != ''"><ccts:Examples><xsl:value-of select="$examplesNotEmpy"/></ccts:Examples></xsl:if>
75+
<xsl:if test="$synonymsNotEmpty!= ''"><ccts:AlternativeTerm><xsl:value-of select="$synonymsNotEmpty"/></ccts:AlternativeTerm></xsl:if>
76+
<xsl:if test="$sourceNotEmpty!= ''"><epo:Sources><xsl:value-of select="$sourceNotEmpty"/></epo:Sources></xsl:if>
77+
78+
<xsl:variable name="a" select="epo:getCellContent(., $E-NOTIFICATION)"/> <xsl:variable name="b" select="epo:getCellContent(., $E-ACCESS)"/>
79+
<xsl:variable name="c" select="epo:getCellContent(., $E-SUBMISSION)"/>
80+
<xsl:variable name="d" select="epo:getCellContent(., $E-EVALUATION)"/>
81+
<xsl:variable name="e" select="epo:getCellContent(., $E-AWARDING)"/>
82+
<xsl:variable name="f" select="epo:getCellContent(., $E-REQUEST)"/>
83+
<xsl:variable name="g" select="epo:getCellContent(., $E-ORDERING)"/>
84+
<xsl:variable name="h" select="epo:getCellContent(., $E-FULFILMENT)"/>
85+
<xsl:variable name="i" select="epo:getCellContent(., $E-INVOICING)"/>
86+
<xsl:variable name="j" select="epo:getCellContent(., $E-PAYMENT)"/>
87+
88+
<xsl:if test="$a != '' or $b != '' or $c != '' or $d != '' or $e != '' or $f != '' or $g != '' or $h != '' or $i != '' or $j != ''">
89+
<ccts:UsageRule>
90+
<xsl:if test="$a != ''">| e-Notification </xsl:if>
91+
<xsl:if test="$b !=''">| e-Access </xsl:if>
92+
<xsl:if test="$c !=''">| e-Submission </xsl:if>
93+
<xsl:if test="$d !=''">| e-Evaluation </xsl:if>
94+
<xsl:if test="$e !=''">| e-Awarding </xsl:if>
95+
<xsl:if test="$f !=''">| e-Request </xsl:if>
96+
<xsl:if test="$g !=''">| e-Ordering </xsl:if>
97+
<xsl:if test="$h !=''">| e-Fulfilment </xsl:if>
98+
<xsl:if test="$i !=''">| e-Invoicing </xsl:if>
99+
<xsl:if test="$j !=''">| e-Payment </xsl:if>|</ccts:UsageRule>
100+
</xsl:if>
101+
</xsd:documentation>
102+
</xsd:annotation>
103+
</xsl:template>
104+
</xsl:stylesheet>

0 commit comments

Comments
 (0)