Skip to content

Commit

Permalink
[API Part1] Updated SOSA URIs and added CURIE options
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrobin committed Jun 5, 2024
1 parent 5db3311 commit d371d28
Show file tree
Hide file tree
Showing 12 changed files with 61 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"properties": {
"uid": "urn:x-ogc:deployments:D001",
"name": "Saildrone - 2017 Arctic Mission",
"featureType": "http://www.w3.org/ns/ssn/Deployment",
"featureType": "http://www.w3.org/ns/sosa/Deployment",
"description": "In July 2017, three saildrones were launched from Dutch Harbor, Alaska, in partnership with NOAA Research...",
"validTime": ["2017-07-17T00:00:00Z", "2017-09-29T00:00:00Z"],
"platform@link": {
Expand Down
2 changes: 1 addition & 1 deletion api/part1/openapi/examples/deployments/deployment-sml.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"type": "Deployment",
"id": "iv3f2kcq27gfi",
"definition": "http://www.w3.org/ns/ssn/Deployment",
"definition": "http://www.w3.org/ns/sosa/Deployment",
"uniqueId": "urn:x-saildrone:mission:2025",
"label": "Saildrone - 2017 Arctic Mission",
"description": "In July 2017, three saildrones were launched from Dutch Harbor, Alaska, in partnership with NOAA Research...",
Expand Down
2 changes: 1 addition & 1 deletion api/part1/openapi/examples/procedures/ins-sensor-sml.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"type": "PhysicalSystem",
"id": "INS001",
"definition": "http://www.w3.org/ns/sosa/ObservingProcedure",
"definition": "http://www.w3.org/ns/ssn-system/SensorKind",
"uniqueId": "urn:x-vectornav:sensor:vn200",
"label": "VectorNav VN-200",
"description": "Datasheet of VN-200 GNSS-aided inertial navigation system",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"uid": "urn:x-gill:datasheets:windmaster:v1",
"name": "Gill WindMaster",
"description": "Precision 3-axis ultrasonic anemometer",
"featureType": "http://www.w3.org/ns/sosa/ObservingProcedure"
"featureType": "http://www.w3.org/ns/ssn-system/SensorKind"
},
"links": [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"type": "PhysicalComponent",
"id": "iv3f2kcq27gfi",
"definition": "http://www.w3.org/ns/sosa/ObservingProcedure",
"definition": "http://www.w3.org/ns/ssn-system/SensorKind",
"uniqueId": "urn:osh:sensors:saildrone:S0004",
"label": "3D Ultrasonic Anemometer",
"description": "Precision 3-axis ultrasonic anemometer",
Expand Down
50 changes: 50 additions & 0 deletions api/part1/openapi/schemas/common/uris.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"SystemTypeUris": {
"type": "string",
"enum": [
"http://www.w3.org/ns/sosa/Sensor",
"http://www.w3.org/ns/sosa/Actuator",
"http://www.w3.org/ns/sosa/Platform",
"http://www.w3.org/ns/sosa/Sampler",
"http://www.w3.org/ns/sosa/System",
"sosa:Sensor",
"sosa:Actuator",
"sosa:Platform",
"sosa:Sampler",
"sosa:System"
]
},
"DeploymentTypeUris": {
"type": "string",
"enum": [
"http://www.w3.org/ns/sosa/Deployment",
"sosa:Deployment"
]
},
"ProcedureTypeUris": {
"type": "string",
"enum": [
"http://www.w3.org/ns/sosa/Procedure",
"http://www.w3.org/ns/sosa/ObservingProcedure",
"http://www.w3.org/ns/sosa/ActuatingProcedure",
"http://www.w3.org/ns/sosa/SamplingProcedure",
"http://www.w3.org/ns/ssn-system/SystemKind",
"http://www.w3.org/ns/ssn-system/SensorKind",
"http://www.w3.org/ns/ssn-system/ActuatorKind",
"http://www.w3.org/ns/ssn-system/SamplerKind",
"http://www.w3.org/ns/ssn-system/PlatformKind",
"sosa:Procedure",
"sosa:ObservingProcedure",
"sosa:ActuatingProcedure",
"sosa:SamplingProcedure",
"ssn:SystemKind",
"ssn:SensorKind",
"ssn:ActuatorKind",
"ssn:SamplerKind",
"ssn:PlatformKind"
]
}
}
}
2 changes: 1 addition & 1 deletion api/part1/openapi/schemas/geojson/deployment.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"required": [ "validTime" ],
"properties": {
"featureType": {
"const": "http://www.w3.org/ns/ssn/Deployment"
"$ref": "../common/uris.json#/definitions/DeploymentTypeUris"
},
"validTime": {
"description": "Time period during which the systems are deployed.",
Expand Down
8 changes: 1 addition & 7 deletions api/part1/openapi/schemas/geojson/procedure.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,7 @@
"properties": {
"properties": {
"featureType": {
"type": "string",
"enum": [
"http://www.w3.org/ns/sosa/ObservingProcedure",
"http://www.w3.org/ns/sosa/ActuationProcedure",
"http://www.w3.org/ns/sosa/SamplingProcedure",
"http://www.w3.org/ns/sosa/Procedure"
]
"$ref": "../common/uris.json#/definitions/ProcedureTypeUris"
}
}
}
Expand Down
9 changes: 1 addition & 8 deletions api/part1/openapi/schemas/geojson/system.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,7 @@
"properties": {
"properties": {
"featureType": {
"type": "string",
"enum": [
"http://www.w3.org/ns/sosa/Sensor",
"http://www.w3.org/ns/sosa/Actuator",
"http://www.w3.org/ns/sosa/Platform",
"http://www.w3.org/ns/sosa/Sampler",
"http://www.w3.org/ns/ssn/System"
]
"$ref": "../common/uris.json#/definitions/SystemTypeUris"
},
"assetType": {
"description": "Type of asset represented by this system.",
Expand Down
2 changes: 1 addition & 1 deletion api/part1/openapi/schemas/sensorml/deployment.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{
"properties": {
"definition": {
"const": "http://www.w3.org/ns/ssn/Deployment"
"$ref": "../common/uris.json#/definitions/DeploymentTypeUris"
},
"links": {
"description": "Links to related resources",
Expand Down
7 changes: 1 addition & 6 deletions api/part1/openapi/schemas/sensorml/procedure.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,7 @@
{
"properties": {
"definition": {
"enum": [
"http://www.w3.org/ns/sosa/ObservingProcedure",
"http://www.w3.org/ns/sosa/ActuationProcedure",
"http://www.w3.org/ns/sosa/SamplingProcedure",
"http://www.w3.org/ns/sosa/Procedure"
]
"$ref": "../common/uris.json#/definitions/ProcedureTypeUris"
},
"position": {
"not": {}
Expand Down
8 changes: 1 addition & 7 deletions api/part1/openapi/schemas/sensorml/system.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,7 @@
{
"properties": {
"definition": {
"enum": [
"http://www.w3.org/ns/ssn/System",
"http://www.w3.org/ns/sosa/Sensor",
"http://www.w3.org/ns/sosa/Actuator",
"http://www.w3.org/ns/sosa/Sampler",
"http://www.w3.org/ns/sosa/Platform"
]
"$ref": "../common/uris.json#/definitions/SystemTypeUris"
},
"links": {
"description": "Links to related resources",
Expand Down

0 comments on commit d371d28

Please sign in to comment.