How to progammatly create his own vocabulary (Like Dublin Core) in a module

Hello ! Everything is in the title !

I tried datatype, but is not what I need for our module…

Do you need more informations about our module ?

Thank you for any help !

GL

There are two ways.

The recommended way is to create the RDF vocabulary in Notation3 (or one of its subsets) and import it using Omeka’s Omeka\RdfImporter service. The Scripto module does this using this vocabulary file and this import code.

You can also do this using Omeka’s PHP API. Build out a vocabulary using the format accepted by the vocabulary adapter’s hydrate method, and pass it to the API’s create operation.

1 Like

Thank you.

I’ll check out those options.