The Shared Desktop Ontologies were written with a very broad purpose in mind. That being said, they are still cases that are often not covered by it. In that case there are two possible options for extending the ontologies
Most of the ontologies are written in the trig syntax.
In order to install an ontology, the follow files are required -
ontology-name.trigThe TriG file containing the ontology
ontology-name.ontology.inA file describing the ontology
In order to ease the process of creating custom ontologies a template ontology is provided in kdeexamples/nepomuk/ontology