weso / hermes

A ShExCSV to ShExC Translator.
MIT License
0 stars 1 forks source link

ADR: Separate prefixes and shapes in different files #5

Open thewillyhuman opened 4 years ago

thewillyhuman commented 4 years ago

Separate prefixes and shapes in different files

This ADR focuses on choosing an option regarding whether prefixes and shapes are combined in a single file or if they are separated into different files.

Context

An architectural decission that has to be made is if the prefixes are within the same CSV file as the shape expressions. The main gal of separating them is to apply the single resposability principle. That is, each file contains only one piece of the context and therefore we acchieve cleaner files. But with that said if we separate the prefixes from the shapes file then we will not be able to use some features like prefix override.