protegeproject / protege

Protege Desktop
http://protege.stanford.edu
Other
1.01k stars 231 forks source link

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

Open tinglion opened 1 year ago

tinglion commented 1 year ago

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 commented 1 year ago

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