Skip to content

Commit

Permalink
Merge pull request #129 from GAIA-X4PLC-AAD/128-possibility-in-ositra…
Browse files Browse the repository at this point in the history
…ce-to-link-a-validation-report

Added optional attribute for validation report
  • Loading branch information
heuerfin authored Jan 28, 2025
2 parents 1b68d7e + bc538e8 commit 179d630
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
2 changes: 2 additions & 0 deletions ositrace/VARIABLES.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
| QualityShape | ositrace | precision | 0 | 1 | Precision of measured road network (relative accuracy) | <http://www.w3.org/2001/XMLSchema#float> | ositrace_shacl.ttl |
| QualityShape | ositrace | accuracyLaneModel2d | 0 | 1 | Accuracy of lane modell 2d | <http://www.w3.org/2001/XMLSchema#float> | ositrace_shacl.ttl |
| QualityShape | ositrace | calibration | 0 | 1 | Description of any calibration steps performed prior to measurement | <http://www.w3.org/2001/XMLSchema#string> | ositrace_shacl.ttl |
| QualityShape | ositrace | validationReport | 0 | 1 | Link to OSI trace file validation report, if any exists. The report should be of type 'vv-report:VvReport' according to https://github.com/GAIA-X4PLC-AAD/ontology-management-base/tree/main/vv-report/. | <http://www.w3.org/2001/XMLSchema#anyURI> | ositrace_shacl.ttl |
| QualityShape | ositrace | validationReportType | 0 | 1 | Type of OSI trace validation report, if any exists. As mime-type | <http://www.w3.org/2001/XMLSchema#string> | ositrace_shacl.ttl |
| QuantityShape | ositrace | numberFrames | | 1 | Number of frames/messages in the trace file | <http://www.w3.org/2001/XMLSchema#unsignedInt> | ositrace_shacl.ttl |
| MovingObjectShape | ositrace | identifier | | | Moving object identifier in trace file | <http://www.w3.org/2001/XMLSchema#unsignedLong> | ositrace_shacl.ttl |
| MovingObjectShape | ositrace | description | | 1 | Description of moving object in the trace file | <http://www.w3.org/2001/XMLSchema#string> | ositrace_shacl.ttl |
Expand Down
10 changes: 9 additions & 1 deletion ositrace/ositrace_instance.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,15 @@
}
},
"ositrace:quality": {
"@type": "ositrace:Quality"
"@type": "ositrace:Quality",
"ositrace:validationReport": {
"@value": "https://github.com/mygroup/myproject/osi_trace_validation_report.xqar",
"@type": "xsd:anyURI"
},
"ositrace:validationReportType": {
"@value": "application/xqar",
"@type": "xsd:string"
}
},
"ositrace:quantity": {
"@type": "ositrace:Quantity",
Expand Down
20 changes: 19 additions & 1 deletion ositrace/ositrace_shacl.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,25 @@ ositrace:QualityShape a sh:NodeShape ;
sh:minCount 0 ;
sh:name "calibration"@en ;
sh:order 5 ;
sh:path ositrace:calibration ] ;
sh:path ositrace:calibration ],
[ skos:example "https://github.com/mygroup/myproject/osi_trace_validation_report.xqar" ;
sh:datatype xsd:anyURI ;
sh:description "Link to OSI trace file validation report, if any exists. The report should be of type 'vv-report:VvReport' according to https://github.com/GAIA-X4PLC-AAD/ontology-management-base/tree/main/vv-report/."@en ;
sh:maxCount 1 ;
sh:message "Validation of validationReport failed!"@en ;
sh:minCount 0 ;
sh:name "validation report"@en ;
sh:order 6 ;
sh:path ositrace:validationReport ],
[ skos:example "application/xqar" ;
sh:datatype xsd:string ;
sh:description "Type of OSI trace validation report, if any exists. As mime-type"@en ;
sh:maxCount 1 ;
sh:message "Validation of validationReportType failed!"@en ;
sh:minCount 0 ;
sh:name "validation report type"@en ;
sh:order 7 ;
sh:path ositrace:validationReportType ] ;
sh:targetClass ositrace:Quality .

ositrace:QuantityShape a sh:NodeShape ;
Expand Down

0 comments on commit 179d630

Please sign in to comment.