Open SvenLieber opened 5 years ago
@SvenLieber, while WIDOCO publishes an htcaccess for a particular version of an ontology, it does not not address linking to previous versions of the ontology automatically in an htaccess. The "previousVersion" flag is used to create a changelog with the differences of previous versions.
At the moment you would have to invoke WIDOCO independently for each version on a different folder. What I do is to have a redirect to the latest version in an external htaccess file (e.g., w3id.org).
Supporting this functionality would be nice indeed.
How could the publishing workflow for new ontology versions look like via the commandline? The documentation regarding initial and subsequent calls was not clear to me.
Assuming I have
https://example.org/ns/my-ontology#
as namespace and furthermore specify within the ontology fileowl:versionIRI <https://example.org/ns/my-ontology/0.1#
>.For the initial version I would like to have the documentation and ontology serializations under
/ns/my-ontology/0.1
as well as under/ns/my-ontology
(related questions: should there be a/ns/my-ontology/latest
, and if how to configure it with widoco respectively .htaccess?)For each new ontology version I would like to have an updated version under the main URI (or a redirect from latest? not sure what the recommended way is)
https://example.org/ns/my-ontology#
, as well as a corresponding versionhttps://example.org/ns/my-ontology/0.2
.How do I have to wire things together to have resolvable links for the initial and latest version and other versions?
Based on my previous trials (see below) I assume I have to call widoco multiple times with different output folders and manual copying of previously generated documentation and serializations.
Calling widoco the following way does not create a subfolder for the ontology version.
A subsequent call with the following command on an updated ontology file with new
owl:versionIRI
and recommendedowl:previousVersion <https://example.org/ns/my-ontology/0.1> .
also does not produce documentation of the specified version in a subdirectory.