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.

@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix vs: <http://www.w3.org/2003/06/sw-vocab-status/ns#> .
@prefix o: <http://omeka.org/s/vocabs/o#> .
@prefix myprefix: <https://omekas.aws.ldas.jp/omeka4/ns/myprefix/> .

<https://omekas.aws.ldas.jp/omeka4/ns/myprefix/> a owl:Ontology ;
    dcterms:title "My label" ;
    dcterms:description "A specific ontology for my documents." .

myprefix:mySpecificProperty a rdf:Property ;
    rdfs:label "My specific property" ;
    rdfs:comment "A property to use for my specific documents." ;
    rdfs:domain o:Resource ;
    vs:term_status "experimental" .

Updating a Vocabulary

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

Rewrite the downloaded TTL file as follows.

@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix vs: <http://www.w3.org/2003/06/sw-vocab-status/ns#> .
@prefix o: <http://omeka.org/s/vocabs/o#> .
@prefix myprefix: <https://omekas.aws.ldas.jp/omeka4/ns/myprefix/> .

<https://omekas.aws.ldas.jp/omeka4/ns/myprefix/> a owl:Ontology ;
    dcterms:title "My label" ;
    dcterms:description "A specific ontology for my documents." .

myprefix:mySpecificProperty a rdf:Property ;
    rdfs:label "私のプロパティ" ; # ここを変更しています!
    rdfs:comment "A property to use for my specific documents." ;
    rdfs:domain o:Resource ;
    vs:term_status "experimental" .

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.