python-odml
python-odml copied to clipboard
Terminology access
How can the terminology be accessed/stored besides the url in the document.
This is touches actually an interesting, more general point: Are Terminology
and Document
the same?
As far as I understand it so far, they are actually two different concepts. Maybe we should therefore also keep them semantically separate. So I would suggest using odml:Document
and odml:Terminology
as rdf types respectively.
Arbitrary example: an exported document could have one odml:Document
and e.g. two different odml:Teminologies
, connected via an odml:Hub
.
odml:Hub - hasDocument - odml:Document (id:1)
odml:Hub - hasTerminology - odml:Terminology (id:2)
odml:Hub - hasTerminology - odml:Terminology (id:3)
odml:Document - hasSection - odml:Section (id:4)
odml:Document - terminology - odml:Terminology(3)
odml:Section(4) - terminology - odml:Terminology(2)
Now addressing the original question: Access is via the predicate terminology
from document to terminology.
This could also help, if the same template is used in multiple odml files. When it has the same id in the different odml documents, they would still point to the same template, if multiple odml rdf documents will be merged into one larger graph.