@@ -68,7 +68,7 @@ class XPATHCoverageSummaryResult(PropertyBaseModel):
6868
6969
7070class XPATHCoverageSummaryReport (PropertyBaseModel ):
71- mapping_suite_identifier : Optional [str ]
71+ mapping_suite_identifier : Optional [str ] = None
7272 validation_result : Optional [XPATHCoverageSummaryResult ] = XPATHCoverageSummaryResult ()
7373
7474
@@ -85,8 +85,8 @@ class SPARQLSummaryCountReport(PropertyBaseModel):
8585
8686
8787class SPARQLSummaryResult (PropertyBaseModel ):
88- test_suite_identifier : Optional [str ]
89- mapping_suite_identifier : Optional [str ]
88+ test_suite_identifier : Optional [str ] = None
89+ mapping_suite_identifier : Optional [str ] = None
9090 aggregate : Optional [SPARQLSummaryCountReport ] = SPARQLSummaryCountReport ()
9191
9292
@@ -106,8 +106,8 @@ class SHACLSummaryResultSeverityReport(PropertyBaseModel):
106106
107107
108108class SHACLSummaryResult (PropertyBaseModel ):
109- test_suite_identifier : Optional [str ]
110- mapping_suite_identifier : Optional [str ]
109+ test_suite_identifier : Optional [str ] = None
110+ mapping_suite_identifier : Optional [str ] = None
111111 result_severity : Optional [SHACLSummaryResultSeverityReport ] = SHACLSummaryResultSeverityReport ()
112112
113113
@@ -140,11 +140,11 @@ class XPATHCoverageValidationAssertion(PropertyBaseModel):
140140 """
141141
142142 """
143- form_field : Optional [str ]
144- xpath : Optional [str ]
145- count : Optional [int ]
146- notice_hit : Optional [Dict [str , int ]]
147- query_result : Optional [bool ]
143+ form_field : Optional [str ] = None
144+ xpath : Optional [str ] = None
145+ count : Optional [int ] = None
146+ notice_hit : Optional [Dict [str , int ]] = None
147+ query_result : Optional [bool ] = None
148148
149149
150150class XPATHCoverageValidationResultBase (PropertyBaseModel ):
@@ -159,22 +159,22 @@ class XPATHCoverageValidationResult(XPATHCoverageValidationResultBase):
159159 """
160160 XPATHCoverageValidationResult for Notice
161161 """
162- notices : Optional [List [ReportNoticeData ]]
162+ notices : Optional [List [ReportNoticeData ]] = None
163163
164164
165165class XPATHCoverageValidationReport (XMLValidationManifestation ):
166166 """
167167 This is the model structure for Notice(s) XPATHs Coverage Report
168168 """
169169
170- validation_result : Optional [XPATHCoverageValidationResult ]
170+ validation_result : Optional [XPATHCoverageValidationResult ] = None
171171
172172
173173class XMLManifestation (Manifestation ):
174174 """
175175 Original XML Notice manifestation as published on the TED website.
176176 """
177- xpath_coverage_validation : XPATHCoverageValidationReport = None
177+ xpath_coverage_validation : Optional [ XPATHCoverageValidationReport ] = None
178178
179179 def add_validation (self , validation : Union [XPATHCoverageValidationReport ]):
180180 if type (validation ) == XPATHCoverageValidationReport :
@@ -200,15 +200,15 @@ class RDFValidationManifestation(ValidationManifestation):
200200
201201 """
202202 mapping_suite_identifier : str
203- test_suite_identifier : Optional [str ]
203+ test_suite_identifier : Optional [str ] = None
204204
205205
206206class SPARQLQuery (PropertyBaseModel ):
207207 """
208208 Stores SPARQL query details
209209 """
210- title : Optional [str ]
211- description : Optional [str ]
210+ title : Optional [str ] = None
211+ description : Optional [str ] = None
212212 xpath : Optional [List [str ]] = []
213213 query : str
214214
@@ -218,13 +218,13 @@ class SPARQLQueryResult(PropertyBaseModel):
218218 Stores SPARQL query execution result
219219 """
220220 query : SPARQLQuery
221- result : Optional [SPARQLQueryRefinedResultType ]
222- query_result : Optional [str ]
221+ result : Optional [SPARQLQueryRefinedResultType ] = None
222+ query_result : Optional [str ] = None
223223 fields_covered : Optional [bool ] = True
224224 missing_fields : Optional [List [str ]] = []
225- error : Optional [str ]
226- message : Optional [str ]
227- identifier : Optional [str ]
225+ error : Optional [str ] = None
226+ message : Optional [str ] = None
227+ identifier : Optional [str ] = None
228228
229229 class Config :
230230 use_enum_values = True
@@ -242,10 +242,10 @@ class QueriedSHACLShapeValidationResult(PropertyBaseModel):
242242 Queried SHACL Validation Report which contains the following variables
243243 ?focusNode ?message ?resultPath ?resultSeverity ?sourceConstraintComponent ?sourceShape ?value
244244 """
245- conforms : Optional [str ]
246- results_dict : Optional [dict ]
247- error : Optional [str ]
248- identifier : Optional [str ]
245+ conforms : Optional [str ] = None
246+ results_dict : Optional [dict ] = None
247+ error : Optional [str ] = None
248+ identifier : Optional [str ] = None
249249
250250
251251class SHACLTestSuiteValidationReport (RDFValidationManifestation ):
@@ -256,7 +256,7 @@ class SHACLTestSuiteValidationReport(RDFValidationManifestation):
256256
257257
258258class EntityDeduplicationReport (Manifestation ):
259- object_data : Optional [str ]
259+ object_data : Optional [str ] = None
260260 number_of_duplicates : int
261261 number_of_cets : int
262262 uries : List [str ]
@@ -266,10 +266,10 @@ class RDFManifestation(Manifestation):
266266 """
267267 Transformed manifestation in RDF format
268268 """
269- mapping_suite_id = "unknown_mapping_suite_id"
269+ mapping_suite_id : str = "unknown_mapping_suite_id"
270270 shacl_validations : List [SHACLTestSuiteValidationReport ] = []
271271 sparql_validations : List [SPARQLTestSuiteValidationReport ] = []
272- deduplication_report : Optional [EntityDeduplicationReport ]
272+ deduplication_report : Optional [EntityDeduplicationReport ] = None
273273
274274 def validation_exists (self , validation , validations ):
275275 """
0 commit comments