python-odml icon indicating copy to clipboard operation
python-odml copied to clipboard

Terminology access

Open mpsonntag opened this issue 7 years ago • 2 comments

How can the terminology be accessed/stored besides the url in the document.

mpsonntag avatar Jul 11 '17 16:07 mpsonntag

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)

mpsonntag avatar Jul 11 '17 16:07 mpsonntag

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.

mpsonntag avatar Jul 11 '17 16:07 mpsonntag