Open akuckartz opened 9 years ago
Note that the proposed opengov:
namespaced terms are camelCase - it's just the JSON serialization that switches case.
Yes, this question is a result of #105 and fortunately only concerns non-LD JSON.
I do not have a good idea on what to do regarding JSON. I would like JSON serializations to be implementable without additional effort. It might make sense to (again) declare that out of scope for OpenGovLD. I am certainly open for suggestions.
A property (serialization
?) can be used to indicate the JSON serialization variant. And we can decide that one of the variants is the default.
Profiles can be used to determine different JSON serialisations, but that mechanism perhaps is to complicated.
The 'profile' Link Relation Type https://www.ietf.org/rfc/rfc6906.txt
Profiles could be (examples):
https://www.w3.org/ns/opengov/profile/popolo
https://popoloproject.com/json-profile
http://www.popoloproject.com/specs/#serialization
https://www.w3.org/ns/opengov/profile/oparl
https://oparl.org/json-profile
That could help to avoid spending effort on discussing different application/json
serializations. I am not that interested in application/json
anyway ;-)
See also:
The Profile URI Registry https://datatracker.ietf.org/doc/rfc7284/
schema.org prefers CamelCase:
Note on naming conventions Schema.org uses the following naming convention. We request that you follow this naming convention for your extensions as well.
- Types and Enumerations start with a capital letter and are CamelCase.
- Properties start with a lower case letter and are also camelCase.
The last draft of OParl uses CamelCase (reason: compatibility with RDF conventions). Popolo prefers snaked_case (reason: compatibility with ORMs):