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

pom.xml settings for java code generated by protege #1159

Open
tinglion opened this issue Jul 31, 2023 · 1 comment
Open

pom.xml settings for java code generated by protege #1159

tinglion opened this issue Jul 31, 2023 · 1 comment

Comments

@tinglion
Copy link

tinglion commented Jul 31, 2023

hi,
I have generated java code with protege (Tools > Generate Java Code). But I cannot use it in my project.
I've found code-generation 2.0.0, but it doesn't work, for "Cannot resolve symbol 'TOPDATAPROPERTY'" in Vocabulary.java.

        <dependency>
            <groupId>edu.stanford.protege</groupId>
            <artifactId>code-generation</artifactId>
            <version>2.0.0</version>
        </dependency>

Appreciating for helps.

@tinglion
Copy link
Author

tinglion commented Aug 1, 2023

I did the following steps and it seems work now:

  1. rm "DATA_PROPERTY_OWL:" and "Object_PROPERTY_OWL:"
  2. set "import com.guotu.ontology.*;" in .impl files, to solve conflicts of Object

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

1 participant