herminiogg / ShExML

A heterogeneous data mapping language based on Shape Expressions
http://shexml.herminiogarcia.com
MIT License
15 stars 2 forks source link

Feature request: Support imports in ShExML #152

Closed andrawaag closed 4 months ago

andrawaag commented 10 months ago

I often deal with extensive lists of FIELD and MATCHER sections, resulting in lengthy configurations. It would be beneficial to enhance manageability and readability by enabling the storage of these extensive sections in separate files. This not only streamlines the main files but also facilitates reuse, particularly for MATCHER sections across multiple ShExML files. For instance, I am currently handling a MATCHER segment with over 20,000 match rules. Improving readability and maintenance could be achieved by storing these mappings in a distinct file and importing them into the primary ShExML file. This approach would not only aid in better organization and understanding but also permit collaborative maintenance, enabling different individuals to utilize and contribute to these mappings in their respective ShExML files.

herminiogg commented 10 months ago

Very good idea, relates to #18

herminiogg commented 4 months ago

Hi Andra,

An import functionality has been added to the latest version of ShExML released today (v0.5.2). You can see the specific syntax here: https://shexml.herminiogarcia.com/spec/#import.

I hope this is useful for your use cases.

Best, Herminio