-
Notifications
You must be signed in to change notification settings - Fork 11
Schema Grouping #18
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
Comments
Technically, this would be not a problem but I'm not sure about the benefits of such an additional model layer. Duplicated identifiers for schemas are avoided on protocol level. This would be also required for collections. Also the direct association based on collection and schema id is not guaranteed as both identifiers are user provided and there are no semantic requirements. If it's about grouping I could imagine an additional attribute in the schema record representing some kind of tag. This could also be included into queries easily. |
I see 2 problems in it:
I would prefer the solution with the tags. You are much more flexibel and it may be possible to support more than one tag per schema: For accessing it would be possible to encode the schemaID on client side. (I have to document this) I have to admit that this does not look nice but would be easy for a client to handle. |
... Or to jump on the hashcode train from the other issue, the identifier could also be the hash of the schema URL which is enforced on client side and which is unique. This is of course not human readable, but this should be not in focus as the user should not have work with the interface directly. |
My thought with groups/collections was that if someone is working with several standards describing the same domain, it is very likely that there will be two schemas (not necessarily the same) describing the same concept and therefore have the same name. (Grouping by a tag is a good idea, but would not solve this problem.) If a collection exists, schemas that are uploaded using the collection ID are added to the collection, if the collection does not exits it is created. So the duplicate ID detection only needs to verify that the schema ID is unique within a collection. I think the problem with a dummy collection for all schemas not belonging to a collection is an implementation problem and should not effect the user (it must be avoided to reflect this problem to the URL!). |
This might be to some extend related to #29 |
It would be a great enhancement if it is possible to create groups/collections of schemas.
This would avoid name conflicts between different schemas from different standards and allows an user to directly associate a schema with a standard by looking at the schema url.
Example:
http://example.org/api/v1/schemas/{collection}/{id}
The text was updated successfully, but these errors were encountered: