Knowledge Representation and Digital Scholarly Editions in Theory and Practice