Skip to content

Commit

Permalink
Merge branch 'main' of github.com:GAIA-X4PLC-AAD/ontology-management-…
Browse files Browse the repository at this point in the history
…base into 125-create-metadata-descirption-for-models-fmus
  • Loading branch information
heuerfin committed Jan 8, 2025
2 parents bc46788 + 84c7e3b commit b0aac3e
Show file tree
Hide file tree
Showing 8 changed files with 325 additions and 16 deletions.
6 changes: 3 additions & 3 deletions CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@
/ositrace @robertschubert
/ositrace @pmai

# simulated-sensor directory (Rhea)
/simulated-sensor @telina

# leakage-test directory (Selcan AND Robert Or Lena)
/leakage-test @selcan-k
/leakage-test @robertschubert @lenasauermann

# marketplace-info directory (Robert AND Johannes)
/marketplace-info @robertschubert
/marketplace-info @jtdemer



8 changes: 4 additions & 4 deletions scenario/VARIABLES.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
| ContentShape | scenario | abstractionLevel | | 1 | Pegasus type of scenario | <http://www.w3.org/2001/XMLSchema#string> | scenario_shacl.ttl |
| ContentShape | scenario | timeDate | 0 | 1 | Time of the scenario if applicaple. Either time of recording or if synthetic the time it happens. | <http://www.w3.org/2001/XMLSchema#dateTime> | scenario_shacl.ttl |
| ContentShape | scenario | aim | 0 | 1 | Purpose of this scenario. | <http://www.w3.org/2001/XMLSchema#string> | scenario_shacl.ttl |
| ContentShape | scenario | usedStandardFunctions | 0 | | Use of the functionalities from the standard. E.g. which Actions are used. | <http://www.w3.org/2001/XMLSchema#string> | scenario_shacl.ttl |
| ContentShape | scenario | usedStandardFunctions | 0 | 1 | Use of the functionalities from the standard. E.g. which Actions are used. | <http://www.w3.org/2001/XMLSchema#string> | scenario_shacl.ttl |
| ContentShape | scenario | movementDescription | | 1 | Type of movement used by traffic participants according to the OpenSCENARIO standard. | <http://www.w3.org/2001/XMLSchema#string> | scenario_shacl.ttl |
| ContentShape | scenario | customCommands | 0 | 1 | Scenario/domain specific commands or actions | <http://www.w3.org/2001/XMLSchema#string> | scenario_shacl.ttl |
| ContentShape | scenario | catalogs | 0 | | Link to Catalogs | <http://www.w3.org/2001/XMLSchema#anyURI> | scenario_shacl.ttl |
| ContentShape | scenario | EnvironmentModels | 0 | | Link to environment models | <http://www.w3.org/2001/XMLSchema#anyURI> | scenario_shacl.ttl |
| ContentShape | scenario | trafficSpace | 0 | 1 | Link to traffic space | <http://www.w3.org/2001/XMLSchema#anyURI> | scenario_shacl.ttl |
| ContentShape | scenario | catalogs | 0 | | Link to Catalogs | | scenario_shacl.ttl |
| ContentShape | scenario | environmentModels | 0 | | Link to environment models | | scenario_shacl.ttl |
| ContentShape | scenario | trafficSpace | 0 | 1 | Link to traffic space | | scenario_shacl.ttl |
| ContentShape | scenario | sunAzimuth | 0 | | Azimuth of the sun in degrees | <http://www.w3.org/2001/XMLSchema#float> | scenario_shacl.ttl |
| ContentShape | scenario | countrySpecificSign | 0 | 1 | Country specific traffic signs | <http://www.w3.org/2001/XMLSchema#string> | scenario_shacl.ttl |
| ContentShape | scenario | countrySpecificTrafficParticipants | 0 | 1 | Country specific traffic participants | <http://www.w3.org/2001/XMLSchema#string> | scenario_shacl.ttl |
Expand Down
8 changes: 5 additions & 3 deletions scenario/scenario_instance.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@
}
},
"scenario:content": {
"@type": "undefined",
"scenario:catalogs": {
"@type": "scenario:Content",
"scenario:catalogs": [
{
"@type": "manifest:Link",
"manifest:path": {
"@value": "https://inavlid.link.com/my_pedestrian_catalog.xosc",
Expand All @@ -56,7 +57,8 @@
"manifest:type": "assetData",
"manifest:format": "other",
"manifest:accessRole": "owner"
},
}
],
"scenario:abstractionLevel": "Logical",
"scenario:country": {
"@value": "Germany",
Expand Down
10 changes: 4 additions & 6 deletions scenario/scenario_shacl.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ scenario:ScenarioShape a sh:NodeShape ;
sh:path scenario:format ],
[ sh:maxCount 1 ;
sh:minCount 1 ;
sh:node scenario:Content ;
sh:node scenario:ContentShape ;
sh:name "content object" ;
sh:description "content object with properties for scenario intrinsic attributes" ;
sh:order 3 ;
Expand Down Expand Up @@ -118,6 +118,7 @@ scenario:ContentShape a sh:NodeShape ;
sh:datatype xsd:string ;
sh:description "Use of the functionalities from the standard. E.g. which Actions are used."@en ;
sh:message "Validation of usedStandardFunctions failed!"@en ;
sh:maxCount 1 ;
sh:minCount 0 ;
sh:name "used functions in the standard"@en ;
sh:order 4 ;
Expand All @@ -140,7 +141,6 @@ scenario:ContentShape a sh:NodeShape ;
sh:order 6 ;
sh:path scenario:customCommands ],
[ skos:example "http://mywebsite.de/Catalogs" ;
sh:datatype xsd:anyURI ;
sh:description "Link to Catalogs"@en ;
sh:message "Validation of catalogs failed!"@en ;
sh:minCount 0 ;
Expand All @@ -149,16 +149,14 @@ scenario:ContentShape a sh:NodeShape ;
sh:order 7 ;
sh:path scenario:catalogs ],
[ skos:example "http://mywebsite.de/myModel.fbx" ;
sh:datatype xsd:anyURI ;
sh:description "Link to environment models"@en ;
sh:message "Validation of environment failed!"@en ;
sh:minCount 0 ;
sh:name "3d models"@en ;
sh:node manifest:LinkShape ;
sh:order 8 ;
sh:path scenario:EnvironmentModels ],
sh:path scenario:environmentModels ],
[ skos:example "http://mywebsite.de/map.xodr" ;
sh:datatype xsd:anyURI ;
sh:description "Link to traffic space"@en ;
sh:maxCount 1 ;
sh:message "Validation of trafficSpace failed!"@en ;
Expand Down Expand Up @@ -288,4 +286,4 @@ scenario:DataSourceShape a sh:NodeShape ;
sh:name "source description"@en ;
sh:order 2 ;
sh:path scenario:sourceDescription ] ;
sh:targetClass scenario:DataSource .
sh:targetClass scenario:DataSource .
26 changes: 26 additions & 0 deletions simulated-sensor/VARIABLES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Variables of SHACL Files in this folder

## Prefixes

- simulated-sensor: <https://github.com/GAIA-X4PLC-AAD/ontology-management-base/tree/main/simulated-sensor/>

## List of SHACL Properties

| Shape | Property prefix | Property | MinCount | MaxCount | Description | Datatype/NodeKind | Filename |
| --- | --- | --- | --- | --- | --- | --- | --- |
| SimulatedSensorShape | simulated-sensor | sensorType | 1 | 1 | Perception and other relevant sensors for autonomous driving | | simulated-sensor_shacl.ttl |
| SimulatedSensorShape | simulated-sensor | sensorIdentifier | 0 | 1 | Name/Identifier of the sensor in the simulator | <http://www.w3.org/2001/XMLSchema#string> | simulated-sensor_shacl.ttl |
| SimulatedSensorShape | simulated-sensor | mountingPosition | 0 | 1 | Possible mounting positions of the radar | <http://www.w3.org/2001/XMLSchema#string> | simulated-sensor_shacl.ttl |
| RadarShape | simulated-sensor | numberOfBeams | 0 | 1 | Number of beams sent by the radar sensor | <http://www.w3.org/2001/XMLSchema#integer> | simulated-sensor_shacl.ttl |
| RadarShape | simulated-sensor | distance | 0 | 1 | Covered distance or range in meters | <http://www.w3.org/2001/XMLSchema#float> | simulated-sensor_shacl.ttl |
| RadarShape | simulated-sensor | fieldOfView | 0 | 1 | Field of view angles, supporting up to three values (e.g., horizontal, upper, and lower FoV) | | simulated-sensor_shacl.ttl |
| LidarShape | simulated-sensor | numberOfBeams | 0 | 1 | Number of beams sent by the lidar sensor | <http://www.w3.org/2001/XMLSchema#integer> | simulated-sensor_shacl.ttl |
| LidarShape | simulated-sensor | distance | 0 | 1 | Covered distance or range in meters | <http://www.w3.org/2001/XMLSchema#float> | simulated-sensor_shacl.ttl |
| LidarShape | simulated-sensor | fieldOfView | 0 | 1 | Field of view angles, supporting up to three values (e.g., horizontal, upper, and lower FoV) | | simulated-sensor_shacl.ttl |
| CameraShape | simulated-sensor | rgbFlag | 0 | 1 | If true, camera is RGB camera | <http://www.w3.org/2001/XMLSchema#boolean> | simulated-sensor_shacl.ttl |
| CameraShape | simulated-sensor | 3dflag | 0 | 1 | If true, camera is 3D camera | <http://www.w3.org/2001/XMLSchema#boolean> | simulated-sensor_shacl.ttl |
| CameraShape | simulated-sensor | depthFlag | 0 | 1 | If true, camera is depth camera | <http://www.w3.org/2001/XMLSchema#boolean> | simulated-sensor_shacl.ttl |
| CameraShape | simulated-sensor | fieldOfView | 0 | 1 | Field of view angles, supporting up to three values (e.g., horizontal, upper, and lower FoV) | | simulated-sensor_shacl.ttl |
| FieldOfViewShape | simulated-sensor | fovAngle1 | 1 | 1 | FoV angle 1 (mandatory if FoV attribute is used) | <http://www.w3.org/2001/XMLSchema#float> | simulated-sensor_shacl.ttl |
| FieldOfViewShape | simulated-sensor | fovAngle2 | 0 | 1 | FoV angle 2 (optional, depending on simulator and sensor type) | <http://www.w3.org/2001/XMLSchema#float> | simulated-sensor_shacl.ttl |
| FieldOfViewShape | simulated-sensor | fovAngle3 | 0 | 1 | FoV angle 3 (optional, depending on simulator and sensor type) | <http://www.w3.org/2001/XMLSchema#float> | simulated-sensor_shacl.ttl |
34 changes: 34 additions & 0 deletions simulated-sensor/simulated-sensor_instance.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"@context": {
"xsd": "http://www.w3.org/2001/XMLSchema#",
"skos": "http://www.w3.org/2004/02/skos/core#",
"simulated-sensor": "https://github.com/GAIA-X4PLC-AAD/ontology-management-base/tree/main/simulated-sensor/",
"sh": "http://www.w3.org/ns/shacl#"
},
"@id": "did:web:registry.gaia-x.eu:SimulatedSensor:B6gYmAU2PiHe8c3aqSbazCkrE7sUfCkRPFv2",
"@type": "simulated-sensor:SimulatedSensor",
"simulated-sensor:sensorType": {
"@type": "simulated-sensor:Radar",
"simulated-sensor:numberOfBeams": {
"@value": "1500",
"@type": "xsd:integer"
},
"simulated-sensor:distance": {
"@value": "100.0",
"@type": "xsd:float"
},
"simulated-sensor:fieldOfView": {
"@type": "simulated-sensor:FieldOfView",
"simulated-sensor:fovAngle1": {
"@value": "60",
"@type": "xsd:float"
},
"simulated-sensor:fovAngle2": {
"@value": "30",
"@type": "xsd:float"
}
}
},
"simulated-sensor:sensorIdentifier": "sensor.other.radar",
"simulated-sensor:mountingPosition": "Front-mid"
}
37 changes: 37 additions & 0 deletions simulated-sensor/simulated-sensor_ontology.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix gax-core: <https://w3id.org/gaia-x/core#> .
@prefix gx: <https://registry.lab.gaia-x.eu/development/api/trusted-shape-registry/v1/shapes/jsonld/trustframework#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix simulated-sensor: <https://github.com/GAIA-X4PLC-AAD/ontology-management-base/tree/main/simulated-sensor/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix openlabel: <https://openlabel.asam.net/V1-0-0/ontologies/> .

simulated-sensor: a owl:Ontology ;
rdfs:label "Ontology definition for simulated_sensor"@en ;
dcterms:contributor "Rhea C. Rinaldo (IQZ), Aaron Blickle (IQZ), Johannes Heinrich (IQZ)" ;
dcterms:creator "The GAIA-X 4 PLC AAD Project Team" ;
dcterms:identifier "https://github.com/GAIA-X4PLC-AAD/ontology-management-base/tree/main/simulated-sensor/" ;
owl:versionIRI <https://github.com/GAIA-X4PLC-AAD/ontology-management-base/blob/simulated_sensor_uc1_2/simulated-sensor/simulated_sensor_ontology.ttl> ;
owl:versionInfo "0.1" .

simulated-sensor:SimulatedSensor a owl:Class ;
rdfs:label "class definition simulated sensor"@en ;
rdfs:comment "A sensor in an automotive driving simulator"@en ;
rdfs:subClassOf gx:DataResource .

simulated-sensor:Radar a owl:Class ;
rdfs:label "class definition for a simulated radar sensor"@en ;
rdfs:comment "A simulated RADAR sensor"@en .

simulated-sensor:Lidar a owl:Class ;
rdfs:label "class definition for a simulated lidar sensor"@en ;
rdfs:comment "A simulated LIDAR sensor"@en .

simulated-sensor:Camera a owl:Class ;
rdfs:label "class definition for a simulated camera sensor"@en ;
rdfs:comment "A simulated camera sensor"@en .

simulated-sensor:FieldOfView a owl:Class ;
rdfs:label "class definition for the Field of View (FoV) of a perception sensor"@en ;
rdfs:comment "A field of view as float angles"@en .
Loading

0 comments on commit b0aac3e

Please sign in to comment.