Allow to set vocabulary when hydrating class and property#2429
Allow to set vocabulary when hydrating class and property#2429
Conversation
|
Hmm... enabling this would make it easy to, say, update a member by moving it from one vocab to another. I'm not sure whether we want to improve the api stuff for vocabs and members individually, or instead push the RDF importer via the API and have that be the intended entry point like it is for the UI. I haven't looked closely at this in a while but if I remember correctly these will work through the API, just only if edited/created via their parent vocab. |
Running the following will delete all existing properties, replacing them with the "Foo" property.
For a |
|
Well it's how patch works everywhere we have it. Patch an item with one file and you'll delete the others, etc. Though yes, that the output doesn't include these may make it a more likely mistake. The design of what we have is based on the assumption that you'll create the vocab all at once with its members. In that case it's not really an issue, but editing/adding after the fact, it doesn't offer much for that. If creation of new members is the main concern we could hydrate the vocab only on create, that's an option. |
See #2428
This change makes it possible to assign a vocabulary to a resource class or property via the API.