Provide a way to identify basic properties of the ontology governing a point in a document.
what is the ontology identifier
what is the default prefix for new entities
Probably this can be kept in a :properties: drawer.
This can be used, e.g., in tempo templates that introduce (org sections that define) new resources. The default prefix will be provided automatically.
Here's one possible way. In the top-level heading, containing subtrees that define an ontology, add the following to the property drawer. By coincidence, the Pizza ontology has pizza both as ontology localname and as prefix.
Using the ID property to identify much about the ELOT context would be pointless, since ID is commonly used. However, ELOT-context-NN is certainly going to be unique. In a future extension, ELOT-context-type might be reused, e.g., with ottr-library or other kinds of content with some supporting functions.
Provide a way to identify basic properties of the ontology governing a point in a document.
Probably this can be kept in a
:properties:
drawer.This can be used, e.g., in tempo templates that introduce (org sections that define) new resources. The default prefix will be provided automatically.
Here's one possible way. In the top-level heading, containing subtrees that define an ontology, add the following to the property drawer. By coincidence, the Pizza ontology has
pizza
both as ontology localname and as prefix.To retrieve these is simple.
Using the
ID
property to identify much about the ELOT context would be pointless, sinceID
is commonly used. However,ELOT-context-NN
is certainly going to be unique. In a future extension,ELOT-context-type
might be reused, e.g., withottr-library
or other kinds of content with some supporting functions.