BI.xsd 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
  3. xmlns:gml="http://www.opengis.net/gml/3.2"
  4. xmlns:SystemObjects__x3A__BI="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/BI.xsd"
  5. xmlns:SystemObjects__x3A__BI_from="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/BI_from.xsd"
  6. xmlns:SystemObjects__x3A__BI_row="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/BI_row.xsd"
  7. xmlns:SystemObjects__x3A__BI_to="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/BI_to.xsd"
  8. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  9. xmlns:p5_tr_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd"
  10. xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
  11. xmlns:system_cache__resources_tree_generate_xsl_required_occurs_raport="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/resources_tree_generate_xsl_require_occurs_raport"
  12. xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
  13. xmlns:p5opr="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd"
  14. xmlns:p5_simpleSchema_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/p5_simpleSchema_map.xsd"
  15. elementFormDefault="qualified"
  16. targetNamespace="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/BI.xsd"
  17. vc:minVersion="1.1">
  18. <xs:annotation>
  19. <xs:documentation>@2018-03 Bindera: propozycja dla bazowych dziedziczen do tworzenia patternow dla silnik a BI.
  20. Silnik BI potrzebuje konfiguracji, które obiekty są początkowe, które są końcowe oraz które są pomiędzy.
  21. Jest też czasami konieczność aby znać kolejność wyszukanych elementów.
  22. Zatem należy zdefiniować OD (było pracownicy), DO (było Kontrahenci) oraz ROW (było BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row), ROW_object (było BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object) oraz ewentualna abstrakcyjna definicja BI (było BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA )</xs:documentation>
  23. </xs:annotation>
  24. <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/BI_from.xsd"
  25. schemaLocation="BI_from.xsd"/>
  26. <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/BI_to.xsd"
  27. schemaLocation="BI_to.xsd"/>
  28. <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/BI_row.xsd"
  29. schemaLocation="BI_row.xsd"/>
  30. <xs:complexType name="BI" id="ts__x3A__BI___d15e8755-1_BI">
  31. <xs:annotation>
  32. <xs:documentation> ewentualna abstrakcyjna definicja BI (było BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA )
  33. TODO jak rozroznic wyszukiwanie generalne dla wszystkich oraz dla niektorych? Moze lepiej aby bylo zawsze wiadome ktore elementy sa poddane analizie , a ktore nie, aby to kontrolowac - wiec zawsze bedzie ref</xs:documentation>
  34. </xs:annotation>
  35. </xs:complexType>
  36. <xs:complexType name="BI_instance" id="ts__x3A__BI___d15e8759-1_BI_instanc">
  37. <xs:annotation>
  38. <xs:documentation>Schema dla instancjonowania wyszukanych elementow</xs:documentation>
  39. </xs:annotation>
  40. <xs:complexContent id="ts__x3A__BI___d15e8763-1">
  41. <xs:extension base="SystemObjects__x3A__BI:BI" id="ts__x3A__BI___d15e8764-1">
  42. <xs:sequence id="ts__x3A__BI___d15e8765-1">
  43. <xs:element name="ID" type="xs:int" id="ts__x3A__BI___d15e8766-1_ID">
  44. <xs:annotation>
  45. <xs:documentation>Primary</xs:documentation>
  46. </xs:annotation>
  47. </xs:element>
  48. <xs:element minOccurs="0"
  49. name="BI_analiza_maxDepth"
  50. type="xs:int"
  51. id="ts__x3A__BI___d15e8770-1_BI_analiza">
  52. <xs:annotation>
  53. <xs:documentation>Mapowane do silnika BI dla glebokosci, uzyte w asserts dla unikalnych wyszukiwan typow</xs:documentation>
  54. </xs:annotation>
  55. </xs:element>
  56. </xs:sequence>
  57. <xs:attribute name="label" type="xs:string" id="ts__x3A__BI___d15e8774-1_label"/>
  58. <xs:assert test="label = concat('Analiza BI nr ', ID)"
  59. id="ts__x3A__BI___d15e8775-1">
  60. <xs:annotation>
  61. <xs:documentation>Przykładowy label z primary KEY</xs:documentation>
  62. </xs:annotation>
  63. </xs:assert>
  64. </xs:extension>
  65. </xs:complexContent>
  66. </xs:complexType>
  67. <xs:complexType name="BI_instance_depth_required"
  68. id="ts__x3A__BI___d15e8779-1_BI_instanc">
  69. <xs:annotation>
  70. <xs:documentation>Dla patternow ktore wymagaja podania limitu konca - kontrola unikalnosci</xs:documentation>
  71. </xs:annotation>
  72. <xs:complexContent id="ts__x3A__BI___d15e8783-1">
  73. <xs:restriction base="SystemObjects__x3A__BI:BI_instance">
  74. <xs:sequence id="ts__x3A__BI___d15e8785-1">
  75. <xs:element name="ID" type="xs:int" id="ts__x3A__BI___d15e8786-1_ID">
  76. <xs:annotation>
  77. <xs:documentation>Primary</xs:documentation>
  78. </xs:annotation>
  79. </xs:element>
  80. <xs:element minOccurs="1"
  81. name="BI_analiza_maxDepth"
  82. type="xs:int"
  83. id="ts__x3A__BI___d15e8790-1_BI_analiza">
  84. <xs:annotation>
  85. <xs:documentation>Mapowane do silnika BI dla glebokosci, uzyte w asserts dla unikalnych wyszukiwan typow</xs:documentation>
  86. </xs:annotation>
  87. </xs:element>
  88. </xs:sequence>
  89. <xs:assert test="SystemObjects__x3A__BI_row:BI_row/count(SystemObjects__x3A__BI_row_object:BI_row_object) &lt;= BI_analiza_maxDepth"
  90. id="ts__x3A__BI___d15e8794-1">
  91. <xs:annotation>
  92. <xs:documentation>Rekursywnosc - dlugosc wyszukiwania scisle zwiazana z parametrem MaxDepth</xs:documentation>
  93. </xs:annotation>
  94. </xs:assert>
  95. </xs:restriction>
  96. </xs:complexContent>
  97. </xs:complexType>
  98. <xs:element abstract="false"
  99. name="BI"
  100. type="SystemObjects__x3A__BI:BI_instance"
  101. id="ts__x3A__BI___d15e8798-1_BI">
  102. <xs:annotation>
  103. <xs:documentation>Abstrakcyjny przykladowy typowy model
  104. </xs:documentation>
  105. </xs:annotation>
  106. </xs:element>
  107. <xs:element name="BI_instance" id="ts__x3A__BI___d15e8802-1_BI_instanc">
  108. <xs:complexType id="ts__x3A__BI___d15e8803-1">
  109. <xs:complexContent id="ts__x3A__BI___d15e8804-1">
  110. <xs:extension base="SystemObjects__x3A__BI:BI_instance" id="ts__x3A__BI___d15e8805-1">
  111. <xs:sequence id="ts__x3A__BI___d15e8806-1">
  112. <xs:element maxOccurs="unbounded"
  113. ref="SystemObjects__x3A__BI_from:BI_from"
  114. id="ts__x3A__BI___d15e8807-1"/>
  115. <xs:element ref="SystemObjects__x3A__BI_row:BI_row"
  116. maxOccurs="unbounded"
  117. minOccurs="0"
  118. id="ts__x3A__BI___d15e8808-1">
  119. <xs:annotation>
  120. <xs:documentation>TODO chyba nie zawsze musi byc cokolwiek znaleizone?</xs:documentation>
  121. </xs:annotation>
  122. </xs:element>
  123. <xs:element maxOccurs="unbounded"
  124. minOccurs="0"
  125. ref="SystemObjects__x3A__BI_to:BI_to"
  126. id="ts__x3A__BI___d15e8812-1">
  127. <xs:annotation>
  128. <xs:documentation>Opcjonalne wskazanie namespace celu lub/i konkretnych instancji</xs:documentation>
  129. </xs:annotation>
  130. </xs:element>
  131. </xs:sequence>
  132. </xs:extension>
  133. </xs:complexContent>
  134. </xs:complexType>
  135. <xs:unique name="BI_from">
  136. <xs:annotation>
  137. <xs:documentation>Unikalność patternów - nie ma sensu aby kilkukrotnie definiować np PRACOWNICY jako OD</xs:documentation>
  138. </xs:annotation>
  139. <xs:selector xpath="SystemObjects__x3A__BI_from:BI_from"/>
  140. <xs:field xpath="targetNamespace"/>
  141. </xs:unique>
  142. <xs:unique name="BI_to">
  143. <xs:annotation>
  144. <xs:documentation>Cel szukania unikalny namespace jeden raz</xs:documentation>
  145. </xs:annotation>
  146. <xs:selector xpath="SystemObjects__x3A__BI_to:BI_to"/>
  147. <xs:field xpath="targetNamespace"/>
  148. </xs:unique>
  149. </xs:element>
  150. <xs:group name="BI">
  151. <xs:annotation>
  152. <xs:documentation>Abstrakcyjny przykladowy typowy model
  153. </xs:documentation>
  154. </xs:annotation>
  155. <xs:sequence id="ts__x3A__BI___d15e8832-1">
  156. <xs:element ref="SystemObjects__x3A__BI:BI" id="ts__x3A__BI___d15e8833-1"/>
  157. </xs:sequence>
  158. </xs:group>
  159. <xs:simpleType name="targetNamespace" id="ts__x3A__BI___d15e8834-1_targetName">
  160. <xs:restriction base="xs:string"/>
  161. </xs:simpleType>
  162. </xs:schema>