-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for isA for sensor data #272
Comments
Hi Dom, Testing with https://www.jsonschemavalidator.net/ , https://github.com/gs1/EPCIS/edit/master/JSON/WithSensorData/SensorDataExample1.jsonld appears to validate against https://github.com/gs1/EPCIS/edit/master/JSON/EPCIS-JSON-Schema.json probably because in SHACL and JSON Schema we're taking an 'open shape' approach to validation, so it doesn't throw a validation error if something additional / unexpected is present. Of course we could declare the "isA" or "type" aliases of @type within the "properties" of
For event types, such as For Looking at https://github.com/gs1/EPCIS/edit/master/JSON/WithSensorData/SensorDataExample1.jsonld I'm wondering whether we can actually eliminate the declarations "isA":"epcis:SensorElement" . We can probably reformulate the SHACL to use https://www.w3.org/TR/shacl/#targetObjectsOf instead of https://www.w3.org/TR/shacl/#targetClass so that instead of writing
we'd write:
I can do some further testing to determine if we can/should omit the "isA" declaration for "epcis:SensorElement" and if we should make adjustments to the SHACL file. |
Hi @mgh128, looks like we can remove the |
#278 on using |
Agreement to remove isA from examples (sensorReport, sensorMetadata), but not from the event type. |
Hi,
As we are progressing with our implementation we noticed that the
SensorDataExample1.jsonld
has aisA
property but this does not seem to be allowed according to the JSON schema:Is this an omission or an error in the example?
Happy to correct and submit a PR once answered.
The text was updated successfully, but these errors were encountered: