-
Notifications
You must be signed in to change notification settings - Fork 17
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
TDDs need to deal with missing @type #224
Comments
I believe generic TDDs are type agnostic. So this is probably not something that they need to worry about. |
The lack of the @type Thing was hindering the SHACL shape validation since the shape was defined for resources with that type. I think having it as default value is a good idea. Another scenario where missing the type could hinder some task is in discovery, if the type is not specified SPARQL queries could not retrieve resources that are td:Thing (unless inference is used). As a good practice I would always have the @type Thing in the json-ld of the thing descriptions, either automatically injected or provided by the user. |
The problem is RDF databases. Similarly to a missing |
Also an issue: what if we get a file with a different @type than we expect (eg a ThingModel). |
Proposal:
|
I suggest that A default |
Consensus (from 8 Nov meeting):
|
Seems resolution is NOT to add @type, but an implementation using SPARQL "injects" it when needed during implementation. We don't have to change the spec at this point; it's an implementation choice/detail. Would be good to be clearer about this in the next spec, since it might impact signing etc. if an |
Since @type is optional in TDs, if it is missing it should be inferred as "Thing". Perhaps this should be an official default value in the TD? Could also be part of canonicalization.
The text was updated successfully, but these errors were encountered: