Skip to content

Commit

Permalink
Removed status from naming, marked as in development.
Browse files Browse the repository at this point in the history
  • Loading branch information
rob-metalinkage committed Feb 1, 2024
1 parent ded374a commit 43333d4
Show file tree
Hide file tree
Showing 10 changed files with 61 additions and 58 deletions.
2 changes: 1 addition & 1 deletion _sources/bblock.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
}
],
"maturity": "development",
"scope": "unstable",
"scope": "development",
"tags": [
"sosa",
"ssn",
Expand Down
4 changes: 2 additions & 2 deletions _sources/features/observation/bblock.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
}
],
"maturity": "development",
"scope": "unstable",
"scope": "development",
"dependsOn": [
"ogc.unstable.sosa.properties.observation"
"ogc.sosa.properties.observation"
],
"tags": [
"sosa",
Expand Down
2 changes: 1 addition & 1 deletion _sources/features/observationCollection/bblock.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
}
],
"maturity": "development",
"scope": "unstable",
"scope": "development",
"tags": [
"sosa",
"ssn",
Expand Down
2 changes: 1 addition & 1 deletion _sources/properties/observation/bblock.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
}
],
"maturity": "development",
"scope": "unstable",
"scope": "development",
"tags": [
"sosa",
"ssn",
Expand Down
71 changes: 36 additions & 35 deletions _sources/properties/observation/rules.shacl
Original file line number Diff line number Diff line change
Expand Up @@ -11,47 +11,50 @@
sh:targetClass sosa:Observation ;
sh:targetSubjectsOf sosa:hasResult, sosa:hasSimpleResult ;
sh:message "sosa:resultTime or sosa:phenomenonTime is required, and no more than 1 of each is allowed" ;
sh:or ( [ sh:path ( [ sh:zeroOrMorePath
[ sh:oneOrMorePath
[ sh:inversePath
sosa:hasMember ] ] ] sosa:phenomenonTime ) ;
sh:or ( [ sh:path ( [ sh:zeroOrMorePath [ sh:oneOrMorePath [ sh:inversePath sosa:hasMember ] ] ]
sosa:phenomenonTime ) ;
sh:minCount 1 ;
sh:maxCount 1 ; ]
[ sh:path ( [ sh:zeroOrMorePath
[ sh:oneOrMorePath
[ sh:inversePath
geojson:features ] ] ] sosa:phenomenonTime ) ;
sh:minCount 1 ;
sh:maxCount 1 ; ]
[ sh:path ( [ sh:zeroOrMorePath
[ sh:oneOrMorePath
[ sh:inversePath sosa:hasMember ] ] ] sosa:resultTime ) ;
sh:minCount 1 ;
sh:maxCount 1 ; ]
[ sh:path ( [ sh:zeroOrMorePath
[ sh:oneOrMorePath
[ sh:inversePath geojson:features ] ] ] sosa:resultTime ) ;
sh:minCount 1 ;
sh:maxCount 1 ; ] ) ;
sh:maxCount 1 ; ] [ sh:path ( [ sh:zeroOrMorePath [ sh:oneOrMorePath [ sh:inversePath
geojson:features ] ] ]
sosa:phenomenonTime ) ;
sh:minCount 1 ;
sh:maxCount 1 ; ] [ sh:path ( [ sh:zeroOrMorePath [ sh:oneOrMorePath
[ sh:inversePath
sosa:hasMember ] ] ]
sosa:resultTime ) ;
sh:minCount 1 ;
sh:maxCount 1 ; ] [ sh:path ( [ sh:zeroOrMorePath
[ sh:oneOrMorePath
[ sh:inversePath
geojson:features ] ] ]
sosa:resultTime ) ;
sh:minCount 1 ;
sh:maxCount 1 ; ] ) ;
.

<#testObservedProperty>
a sh:NodeShape ;
sh:targetClass sosa:Observation ;
sh:targetSubjectsOf sosa:hasResult, sosa:hasSimpleResult ;
sh:message "Exactly 1 of sosa:observedProperty is required" ;
sh:property [ sh:path ( [ sh:zeroOrMorePath
[ sh:oneOrMorePath
[ sh:alternativePath ([ sh:inversePath geojson:features ] [sh:inversePath sosa:hasMember] ) ] ] ] sosa:observedProperty ) ;
sh:property [ sh:path ( [ sh:zeroOrMorePath [ sh:oneOrMorePath [ sh:alternativePath ( [ sh:inversePath
geojson:features ]
[ sh:inversePath
sosa:hasMember ] ) ] ] ]
sosa:observedProperty ) ;
sh:minCount 1 ;
sh:maxCount 1 ; ] ;
.


<#testFeatureOfInterest>
a sh:NodeShape ;
sh:targetClass sosa:Observation ;
sh:targetSubjectsOf sosa:hasResult, sosa:hasSimpleResult ;
sh:property [ sh:path ( [ sh:zeroOrMorePath [ sh:oneOrMorePath [ sh:alternativePath ([ sh:inversePath geojson:features ] [sh:inversePath sosa:hasMember] ) ] ] ]
sh:property [ sh:path ( [ sh:zeroOrMorePath [ sh:oneOrMorePath [ sh:alternativePath ( [ sh:inversePath
geojson:features ]
[ sh:inversePath
sosa:hasMember ] ) ] ] ]
[ sh:alternativePath ( sosa:hasFeatureOfInterest [ sh:inversePath
sosa:isFeatureOfInterestOf ] ) ] ) ;
sh:minCount 1 ;
Expand All @@ -60,13 +63,13 @@
.

<#testResult>
a sh:NodeShape ;
sh:targetClass sosa:Observation ;
a sh:NodeShape ;
sh:targetClass sosa:Observation ;
sh:targetSubjectsOf sosa:hasResult, sosa:hasSimpleResult ;
sh:property [ sh:path [ sh:alternativePath ( sosa:hasResult sosa:hasSimpleResult ) ] ;
sh:minCount 1 ;
sh:maxCount 1 ; ] ;
sh:message "Exactly one of sosa:hasResult or sosa:hasSimpleResult is required per observation" ;
sh:property [ sh:path [ sh:alternativePath ( sosa:hasResult sosa:hasSimpleResult ) ] ;
sh:minCount 1 ;
sh:maxCount 1 ; ] ;
sh:message "Exactly one of sosa:hasResult or sosa:hasSimpleResult is required per observation" ;
.


Expand All @@ -81,14 +84,12 @@
a sh:NodeShape ;
sh:targetSubjectsOf sosa:hasResult-Disabled ;
sh:message "sosa:hasResult not a blank node" ;
sh:sparql [
sh:select """
sh:sparql [ sh:select """
PREFIX geojson: <https://purl.org/geojson/vocab#>
SELECT $this (sosa:hasResult as ?path) ?value
WHERE {
$this sosa:hasResult ?value .
FILTER NOT EXISTS { ?value ?p ?o }
}
""" ;
]
""" ; ]
.
2 changes: 1 addition & 1 deletion _sources/properties/observationCollection/bblock.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
}
],
"maturity": "development",
"scope": "unstable",
"scope": "development",
"tags": [
"sosa",
"observations",
Expand Down
24 changes: 13 additions & 11 deletions _sources/properties/observationCollection/examples.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
- title: Example of SOSA ObservationCollection
- title: Spec Examples OC1 for SOSA ObservationCollection
comment:
This class is a target for the SOSA v 1.1 update.
RDF only processing - to validate specification RDF examples and OGCAPI-SOSA SHACL constraints.

snippets:
- language: ttl
ref: https://raw.githubusercontent.com/w3c/sdw-sosa-ssn/update-examples-2/ssn/examples/OC1.ttl

- language: ttl
ref: https://raw.githubusercontent.com/w3c/sdw-sosa-ssn/update-examples-2/ssn/examples/OC2.ttl


- title: Test remote fail-test
snippets:
- language: json
code: |-
{
"hasMember": [
"_:a1"
],
"observedProperty": "_:p1",
"resultTime": "2022-05-01T22:33:44Z"
}
base-uri: http://example.com/
ref: https://raw.githubusercontent.com/opengeospatial/ogcapi-sosa/master/_sources/properties/observation/tests/non-simpleresult-fail.jsonld


- title: Example of SOSA ObservationCollection
snippets:
Expand Down
2 changes: 1 addition & 1 deletion _sources/properties/platform/bblock.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
}
],
"maturity": "development",
"scope": "unstable",
"scope": "development",
"tags": [
"sosa",
"ssn",
Expand Down
2 changes: 1 addition & 1 deletion _sources/properties/sensor/bblock.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
}
],
"maturity": "development",
"scope": "unstable",
"scope": "development",
"tags": [
"sosa",
"ssn",
Expand Down
8 changes: 4 additions & 4 deletions bblocks-config.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
identifier-prefix: ogc.unstable.sosa.
identifier-prefix: ogc.sosa.

name: JSON Schemas for OGC/W3C Observations models (SOSA)
name: Observations (ISO 19156, OGC/W3C SOSA)
abstract: Building blocks for implementation of OGC Observations Measurements and Samples (ISO 19156 aka OMS) using the OGC API Features schema and the OGC/W3C SOSA ontology
description: |
Each building block defines a reusable JSON schema that is mapped to the equivalent OMS concept.
Each building block defines a reusable JSON schema that is mapped to the equivalent SOSA concept (and transitively mapped to OMS requirements via SOSA).
Each fragment allows for transparent and validatable use of JSON-LD contexts to map schema elements to equivalent terms from the SOSA ontology.
Each fragment allows for transparent and validatable use of JSON-LD contexts to map schema elements to equivalent terms from the SOSA ontology.
_These components are under review by the OMS SWG as candidate canonical implementations._
Expand Down

0 comments on commit 43333d4

Please sign in to comment.