Is your task related to a problem? Please describe.
Model elements can be placed in any file inside the correct models directory structure (com.mycompany.mynamespace/1.0.0/file.ttl). Currently models that make use of a model element defined in a different file can not be loaded using the aspect model loader.
Describe the solution you'd like
The behaviour should be similar to how the Java SDK and samm-cli behaves. When loading a file:
For each referenced model element:
see if it is defined in the current file (i.e., an RDF statement :element rdf:type anything exists). If yes, done
If no, check if any of the .ttl files in the same directy contains the rdf:type statement. If yes, load this file and merge it into the current one, done
If no, go to ../../the namespace part of the urn/the version part/
See if localname.ttl contains the rdf:type statement. If yes, load this file and merge it into the current one, done
If no, check if any of the .ttl files in this directy contains the rdf:type statement. If yes, load this file and merge it into the current one, done
Is your task related to a problem? Please describe. Model elements can be placed in any file inside the correct models directory structure (
com.mycompany.mynamespace/1.0.0/file.ttl
). Currently models that make use of a model element defined in a different file can not be loaded using the aspect model loader.Describe the solution you'd like The behaviour should be similar to how the Java SDK and samm-cli behaves. When loading a file:
:element rdf:type anything
exists). If yes, done