Overview

Custom Ontology is a module that allows you to add custom vocabularies when standard ontologies such as LOV, schema.org, and W3C are not available. Its usage is introduced below.

https://nakamura196.hatenablog.com/entry/2021/07/24/235050

The above article covers vocabulary creation, but does not address how to update existing vocabularies. This article explains how to update existing vocabularies.

Creating a Vocabulary

As an example, we will create the following vocabulary.

https://omekas.aws.ldas.jp/omeka4/ns/myprefix/

Accessing the above URL will download the following TTL file. Here, we have added a custom property called myprefix:mySpecificProperty.

@@@@@@@<mppppppphyrrrrrrrtpeeeeeeetrfffffffpdderrrviiiiiiisccfdddsxxxxxxx:ttifff:/eexssstdorrvom/rr::::ecwdds:yommmlcdrtlff:pmssyaoome::s<re::Sbmm_r:<hektdpemasm<<htfaieeleitshh<ttistscnna:tthtpx.lci"tttttp::aerfMou<ppt:wiiy":sh::p<s"pcARt/:oh.MtPse"t/wmtlyirppsepww/wetdooerox:wwwwkpalnpcoup/www.assaeipre/..ww.:.b"rfecrpww.3o/jeAtireiu33w.r/plyctmr..3og/"sy;eloo.rmopapn.rrogsem;erttoggr//kecrooar//g2vakidplg21/0osaffeu"/0920c.4i:rsd0903aa/cPte.c290/bwnry///00sssoo"ft00/6./npoe720olmte;rr/1s#dyorm2/w>apltmsw2r-sroyy/l-dv.eg>#rfojfy;s>d-cpipfsa/xfe-cbo/ocsh-m>riyesefnmtkamitaaayca#t4ox>u/wdd-snloon/s:ccsn/Ouu#smnmm>#ytee>ponnrltteossfg..iy""x/;.;>

Updating a Vocabulary

This time, we will change the label of myprefix:mySpecificProperty to 私のプロパティ.

Rewrite the downloaded TTL file as follows.

@@@@@@@<mppppppphyrrrrrrrtpeeeeeeetrfffffffpdderrrviiiiiiisccfdddsxxxxxxx:ttifff:/eexssstdorrvom/rr::::ecwdds:yommmlcdrtlff:pmssyaoome::s<re::Sbmm_r:<hektdpemasm<<htfaieeleitshh<ttistscnna:tthtpx.lci"tttttp::aerfou<ppt:wii":sh::p<s"pcARt/:oh.MtPe"t/wmtlyirpsepww/wetdoorox:wwwwkpalnpoup/www.assae"pre/..ww.:.b"recrpww.3o/jeAt;reiu33w.r/plytmr..3og/"s#y;eloo.rmopan.rrogsem;ettoggr//kecroar//g2vakidlg21/0osaffu"/0920c.4i:sd0903aa/cPe.c290/bwnr///00sssooft00/6./npoe720olmterr/1s#dyorm2/w>apltmsw2r-sroyy/l-dv.eg>#rfojfy;s>d-cpipfsa/xfe-cbo/ocsh-m>riyesefnmtkamitaaayca#t4ox>u/wdd-snloon/s:ccsn/Ouu#smnmm>#ytee>ponnrltteossfg..iy""x/;.;>

Then, in the Omeka S admin screen, click the edit button for the vocabulary you want to update.

Select the modified file as follows.

On the next screen, you can confirm what changes will be made.

After approval, you can update the content of the registered vocabulary as follows.

Summary

Updating vocabularies requires going through an RDF file, which involves a somewhat complex procedure as described above. I hope you find this helpful.