Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using XSD with import statements #16

Open
dellard opened this issue Jun 22, 2017 · 5 comments
Open

using XSD with import statements #16

dellard opened this issue Jun 22, 2017 · 5 comments

Comments

@dellard
Copy link

dellard commented Jun 22, 2017

I have an XSD schema file that imports types from a different namespace. It seems like Ontmalizer ignores import statements: if I save the model as TTL, there's no mention of the elements with the imported types, and when I try to load a document, it fails.

Are imports supposed to work, or is this a known limitation?

@juandm
Copy link

juandm commented Feb 21, 2018

Ontmalizer ignores import tag as stated in the last part of this blog post (http://www.srdc.com.tr/projects/salus/blog/?p=189)..

Some Notes about Ontmalizer

The current implementation does not take into account xsd:import; yet only xsd:include is supported.

@dellard could you find a solution/workaround to this problem?

@dellard
Copy link
Author

dellard commented Feb 21, 2018

Our workaround was to copy the files we wanted to import into our schema and rename a lot of things. It was fairly awkward, but since our schema was mostly static, it was only awkward once.

I don't recall why we didn't use try to use xs:include instead. (There may have been problems with other tools as well.)

It would be a nice feature to have, because we anticipate that the schema will become significantly more complex in the next phase of development. (we don't need it, but it would be elegant)

@juandm
Copy link

juandm commented Feb 22, 2018

Put all in one XSD schema is not an option in my case, because is a standard XSD and there are chains of imports (so rename all namespaces could be a nigthmare). If i cant find another tool to do that i would try to create this feature here.

Thanks for the reply!

@crockct
Copy link

crockct commented Nov 4, 2018

My pull request that handles xsd:import was merged into master!

@dellard
Copy link
Author

dellard commented Nov 5, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants