weso / shex-lite

Scala implementation of a compiler for a subset of the Shape Expressions Compact Syntax.
Other
8 stars 9 forks source link

[SLI-0118] Make all java generated objects to implement a single interface #118

Open thewillyhuman opened 4 years ago

thewillyhuman commented 4 years ago

Introduction

In the framework of the ASIO project of the University of Murcia, the company IZERTIS proposes that the objects generated in java, through a parameter, can implement a common interface.

Proposed by: @rgavilan

Motivation

The IZERTIS company is in charge of realizing the domain model in java for the data intances of an ontology. Therefore they use shex-lite to translate shapes expressions from the ontology to java objects. However, a problem that appears to them is that they have the need for the generated objects to implement an empty interface, without methods.

Proposed solution

As a proposal, they indicate that they can configure some parameter in the CLI or in the API to indicate the name of the interface that they want all the generated classes to implement. Regarding the code generation, it would only be necessary to modify that if this parameter were present, implements <<INTERFACE_NAME>> should be added and, of course, carry out the corresponding import.

thewillyhuman commented 4 years ago

This proposal has been scheduled for review for June 15...June 26, 2020.