Repository navigation
Major resynch with SOSA 2023 - #9
Merged
rob-metalinkage merged 11 commits intoOct 26, 2026
Merged
rob-metalinkage merged 11 commits into
rob-metalinkage merged 11 commits into
Conversation
Regenerate _sources/spec-examples from the current SOSA/SSN document and split it into child blocks (observations, observation-collections, samplings, deployments, ...). Each block $refs its target SOSA properties bblock, so its Turtle examples are validated against the target's SHACL. A ttl-to-jsonld python transform frames each example's root resource with the target context, and output profile validation checks the result against the target bblock. Adds the 9 document examples that were missing (OCrule1-5, AgeOfAir/CO2InAir i-adopt, ex6, ex7). Fix sosa-ssn.jsonld: hasSimpleResult is a literal, not an @id, and resultTime/startTime/endTime are coerced to xsd:dateTime to match the schemas' format: date-time. Fix features examples that used "resultTime": "1999", which is not a valid xsd:dateTime. Fix the sh: prefix in spec-examples/examples.yaml. Add project skills spec-examples-check (doc vs bblocks sync check) and spec-examples-jsonld (classify, generate blocks, install transform, summarise results). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
closures/<base>.ttl (or <stem>.ttl for all roots of a multi-root example) under _sources/spec-examples/ is added as that example's snippet shacl-closure. It applies to the Turtle validation and, with opengeospatial/bblocks-postprocess#94, to the transform output profile validation. The transform does not merge it into its output. Closures are for facts about related resources only, not the example's own missing mandatory fields. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The Turtle-to-JSON transform's output context now references the target bblock's generated context, plus only the example's own prefixes and literal coercions, so featureType and other terms map to SOSA. - XSD times become plain date-time strings; only complex times such as intervals stay as objects, via a time context scoped to phenomenonTime in sosa-ssn.jsonld. - Execution schemas reject incomplete objects: feature of interest, time, observedProperty and exactly one result are required, date-times must match a pattern, references must be non-empty, and featureType is checked. Collections validate embedded members against a member variant. - Adds observation tests for the stricter rules. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
SOSA collection rules 3 and 5 let a collection have several values for a property, such as several features of interest or phenomenonTime intervals. Collection properties now accept a single value or a non-empty array, each value as strict as for an individual execution. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A time is required on an execution or a collection it belongs to. - At most one resultTime and phenomenonTime: a member's own value, or the nearest collection's when that collection has a single value. - A member's value must be one of the collection's values (rules 2-3), or fall within one of its intervals (rules 4-5); Instants match equal literal times, and dateTimeStamp, date and start/end times are handled. - observedProperty may be inherited from an enclosing collection, so a nested collection no longer has to state its own. - SPARQL VALUES clauses replaced with FILTER IN, which SHACL allows. - Adds collection tests covering each rule. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- observedProperty is not required of actuations and samplings (typed, with actuation/sampling properties, or in their collections) - a result may be given from the result's side with sosa:isResultOf - a collection's observedProperty may be one its members inherit from another collection Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The transform reads the snippet's shacl-closure from its context and copies single-valued execution properties from the nearest containing collection (SOSA collection rule 2) into its output, so outputs validate without closure support in output profile validation. Adds closures for 14 spec examples that lack times, features of interest or observed properties. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The examples use relative IRIs, which resolve against the example's URL: the closures set @base to it, and the transform parses the example with it. Closures may now also give an example resource values directly (results, or several values of a collection property), which the transform copies into its output. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Snippet closures are now also added when validating transform outputs, where members that supply a closure collection's observedProperty may be absent. The dht22 and ip68 closure collections now state their members' values. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
w3c/sdw-sosa-ssn#561 removes Observation_235754 from the spec example, so its closure collection and root example are no longer needed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Completes schema coverage for new concepts, updates all spec examples for testing, refined and linted shacl rule and examples