[3.0.1] Create a property in a vocabulary with Rest api

Hi,

Is there a way to add a property to vocabulary with Rest api ?
I tried to add a property to an existing vocabulary the same way I add an item for example but I had an error : “A vocabulary must be set.”
In the Omekas backend I saw that you need a file to update a vocabulary, does it mean that I need to upload an rdf file ?

Thanks

Vocabularies are not intended to be edited piecemeal like that, the only supported method for modifying them is using the RDF import/update feature.

Thanks for the quick answer.
So can I import this file via Rest api in the same way I upload a media for example ?
If so, as I’m not very comfortable with RDF, where can I find a template for a custom vocabulary RDF file ?

This topic was automatically closed 250 days after the last reply. New replies are no longer allowed.