Several fixes and improvements to get it working on telematics XSD and railml XSD's#5
Several fixes and improvements to get it working on telematics XSD and railml XSD's#5MathiasVDA wants to merge 12 commits into
Conversation
…ouble, numeric, ...
…t type defining child element
… does not refer to a type
…lso need to have the @ prefix
|
@gatemezing |
|
Hi @MathiasVDA |
|
This is the first time I'm working with something that uses poetry. Could you give me a hint as to how I should use it to test the processing of an xsd file without compiling the code first? |
|
The dependencies are defined here, but I think you don't need to add any because they are already defined. For using poetry instead of requirements.txt: pip install poetry
poetry install See documentation here. If you want to build the package: |
|
Yes but how do I test the code without building? :) That's why I added the requirement file, I just consider the class as any other python class and call it from a test python script. |
|
|
|
It's removed. But I think the poetry pyproject.toml file is missing setuptools |
|
Poetry is the replacement of setuptools, it shouldn't be required asaik |
Hello @dachafra @andimou @xuemduan
I'm working on converting the Telematics XSD files into RDF (ontology, shacl, skos). I was trying to get the published version of xsd2shacl working but it failed. So I forked the project and started working on the code until it gave a valid output. This PR contains the fixes needed to both produce valid output for the TAF_TSI xsd files and the railml infrastructure 3.3 xsd file. It's likely I will find other issues later but for now, this is a nice improvement.
My commit messages should be clear enough as to why the change was done. But feel free to ask any questions here in this PR.