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

I can not run the program rightly! ! ! #5

Open
username123wy opened this issue Dec 25, 2019 · 3 comments
Open

I can not run the program rightly! ! ! #5

username123wy opened this issue Dec 25, 2019 · 3 comments
Labels
Bug Something isn't working

Comments

@username123wy
Copy link

Description

I got an exception when I use this tool. I want to know what happened.

Additional Context

The parameter of the command is "-i E:/demo -w E:/owldemo/owl.oml -o E:/owldemo"
The exception information is:
Exception in thread "main" java.lang.IllegalArgumentException: Unhandled parameter types: [null]
at io.opencaesar.ecore2oml.EcoreToOml.getIri(EcoreToOml.java:444)
at io.opencaesar.ecore2oml.EcoreToOml._getIri(EcoreToOml.java:281)
at io.opencaesar.ecore2oml.EcoreToOml.getIri(EcoreToOml.java:437)
at io.opencaesar.ecore2oml.EcoreToOml._addToVocabulary(EcoreToOml.java:219)
at io.opencaesar.ecore2oml.EcoreToOml.addToVocabulary(EcoreToOml.java:416)
at io.opencaesar.ecore2oml.EcoreToOml.run(EcoreToOml.java:88)
at io.opencaesar.ecore2oml.App.run(App.java:145)
at io.opencaesar.ecore2oml.App.main(App.java:98)

Relevant screenshots

image

@melaasar melaasar transferred this issue from opencaesar/oml Feb 11, 2020
@melaasar
Copy link
Member

It looks like your Ecore file has some unsupported syntax. Is it possible to attach it here (or a subset of it) so I can debug this?

@username123wy
Copy link
Author

I have sloved this problem, Thanks. However, I'm having problems with the file import section. The screenshots below are the error message and the catalog file respectively. All my attempts have failed. I don't know how to solve it. I suspect it's the contents of the catalog file.
Snipaste_2021-06-21_20-25-34
Snipaste_2021-06-21_20-26-37
Snipaste_2021-06-21_20-27-02

@melaasar
Copy link
Member

melaasar commented Jul 23, 2021

I think your catalog entries are very narrow. Please use a wider mapping like with:
https://github.com/opencaesar/eclipse-vocabularies/blob/master/catalog.xml

Also, you did not specify what dependencies you declared in your project. In order to be able to resolve rdf-schema, you need to have the core-vocabularies mappable from the catalog. One way to ensure that is to declare a dependency on core-vocabularies from your gradle script. For example: https://github.com/opencaesar/eclipse-vocabularies/blob/70ba689a9037b4b8ff16fa0ff7e3f062bf00ada5/build.gradle#L29, and then have a task that downloads those dependencies to a folder in your prooject (e.g., build/oml) that is mapped from the catalog.xml. For example: https://github.com/opencaesar/eclipse-vocabularies/blob/master/eclipse-uml2/build.gradle#L12-L15.

I think you can follow the organization of the https://github.com/opencaesar/eclipse-vocabularies/eclipse-uml2 as an example. You do not have to use gradle subprojects though. You can merge its gradle.build with that of the root project.

@melaasar melaasar changed the title [QUESTION] -I can not run the program rightly! ! ! I can not run the program rightly! ! ! Mar 9, 2023
@melaasar melaasar added the Bug Something isn't working label Mar 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants