EcoStruxure / OLGA

an Ontology SDK
MIT License
39 stars 18 forks source link

Unable to generate jar file for Fiesta-iot ontology #33

Open madhumithajanarthanan opened 2 years ago

madhumithajanarthanan commented 2 years ago

Facing Compilation error while trying to generate jar file for fiesta ontology using OLGA

Steps to reproduce the behavior:

  1. Download fiesta-iot.owl from https://github.com/fiesta-iot/ontology
  2. Download and Unzip the OLGA Repo Master branch.
  3. Install the CORE and CLI packages,

Open command prompt from OLGA folder and give this command java -jar OLGA-Cli/target/OLGA-Cli-0.0.6-with-dependencies.jar --code java --library rdf4j --name Fiesta --path OLGA-Cli/target/fiesta-iot.owl

I get the following error [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /G:/OLGA-master/OLGA-master/OLGA/fiesta-RDF4J-java/src/main/java/fiesta/rdf/model/Metadata.java:[17,8] class MetaData is public, should be declared in a file named MetaData.java [ERROR] /G:/OLGA-master/OLGA-master/OLGA/fiesta-RDF4J-java/src/main/java/fiesta/rdf/model/IMetadata.java:[9,8] interface IMetaData is public, should be declared in a file named IMetaData.java [INFO] 2 errors [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE

Could someone please take a look on this and provide solution as soon as possible, it will be very much helpful. Thanks in advance.