Skip to content

Observatory ProtocolSDK quickstarts

From a clone to a conformance report.

The reference library validates documents against the protocol's schemas, computes canonical digests, reads the registers and runs the conformance suite. Any JSON Schema 2020-12 library in any language can check the same documents.

Version
0.1.0-draft
Status
Draft specification
Specification
CC BY 4.0
Code
Apache-2.0
Steward
GCRI Canada
Source
obsp-0.1-foundation

Step by step with the reference library.

The library reads the schemas, registers and suite of the repository it sits in.

  1. Read the schemas on this site

    The source repository is not open yet. Until it is, the schemas and examples are on this site, and any JSON Schema 2020-12 validator can use them. The clone and install steps appear here when the repository opens.

  2. Install the library and run the suite

    The reference library, the fixtures and the conformance suite live in the source repository, which is not open yet, so their commands are not shown here. The day it opens they appear on this step. Until then the checker on this site runs the same schema checks in your browser, and the onboarding check runs the protocol's conformance cases on your documents.

The same checks, in your own code.

The library as a module, or any JSON Schema 2020-12 validator against the published schemas.

from obsp import SchemaSet, digest

schemas = SchemaSet.load()
errors = schemas.validate(document, "time-quality")   # [] when valid
print(digest(document))                                # sha256:<64 hex>
// any JSON Schema 2020-12 validator; the schemas are plain files in schemas/json
const schema = JSON.parse(await readFile("schemas/json/time-quality.schema.json", "utf8"));
const errors = validate(schema, document);   // your validator of choice

The checker on this site runs the same schemas in your browser.

One open binding per plane.

What an implementation speaks on the wire.

Control
TLS 1.3 with mutual authentication; protobuf messages over gRPC or HTTP/2.
Data, in the field
MQTT 5 with Sparkplug B; connectors for LoRaWAN, OPC UA and instrument buses.
Data, site to upstream
At-least-once publication with repeat-safe keys over the control channel or NATS JetStream; QUIC MAY be used on lossy links.
Events
Event envelopes mapped to CloudEvents 1.0; channels described in AsyncAPI 3.
Exchange
OpenAPI 3.1; the OGC API family; SensorThings; STAC; WIS 2.0.
Evidence
DSSE-signed in-toto statements; SLSA provenance; SCITT transparency receipts.
Telemetry
OpenTelemetry OTLP.

Where to go next.