greendelta / olca-conversion-service Goto Github PK
View Code? Open in Web Editor NEWA RESTful web-service for the openLCA data conversion functionalities
License: Mozilla Public License 2.0
A RESTful web-service for the openLCA data conversion functionalities
License: Mozilla Public License 2.0
to avoid writing the same files from multiple requests...
Add possibility to use a MySQL database for the conversion back-end.
The result of a conversion could be stored in a cache, so subsequent calls to convert the exact same object to the exact same target would be served from the cache for a certain period of time.
see here: https://stackoverflow.com/questions/28065963/how-to-handle-cors-using-jax-rs-with-jersey
This is just to allow to call the conversion API directly from an UI that is hosted on another server.
It should be possible to configure flow mappings (custom mapping files or no mappings at all for specific formats).
I am having an issue when building with the latest version (1.7.4) of olca-modules, built from GreenDelta/olca-modules. I have changed olca-conversion-service/pom.xml <olca.version> tag to 1.7.4.
There are some incompatible function names and types. Build log bellow:
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11.817 s
[INFO] Finished at: 2018-11-29T09:30:04-02:00
[INFO] Final Memory: 52M/285M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.jetbrains.kotlin:kotlin-maven-plugin:1.2.31:compile (compile) on project olca-conversion-service: Compilation failure: Compilation failure:
[ERROR] /home/amaral/Documents/ibict/sciv/olca-conversion-service/src/main/kotlin/app/model/ImportILCD.kt:[24,13] Unresolved reference: importProcess
[ERROR] /home/amaral/Documents/ibict/sciv/olca-conversion-service/src/main/kotlin/app/model/ImportSimaProCsv.kt:[22,40] Type mismatch: inferred type is File but Array<(out) File!>! was expected
[ERROR] /home/amaral/Documents/ibict/sciv/olca-conversion-service/src/main/kotlin/app/model/LcaRepo.kt:[16,1] Class 'LcaRepo' is not abstract and does not implement abstract member public abstract fun putMetaInfo(p0: JsonObject!): Unit defined in org.openlca.jsonld.EntityStore
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
nice to have
I get an error when launching mvn install
. I (think I correctly) installed the olca modules. mvn install
successed.
Here is the stack trace
[ERROR] Failed to execute goal org.jetbrains.kotlin:kotlin-maven-plugin:1.2.31:compile (compile) on project olca-conversion-service: Compilation failure: Compilation failure:
[ERROR] /home/gar/dev/olca-conversion-service/src/main/kotlin/app/RefSystem.kt:[16,32] Unresolved reference: restoreInMemory
[ERROR] /home/gar/dev/olca-conversion-service/src/main/kotlin/app/RefSystem.kt:[49,19] Unresolved reference: dump
[ERROR] /home/gar/dev/olca-conversion-service/src/main/kotlin/app/model/ConversionSetup.kt:[16,24] Type mismatch: inferred type is List<FlowMapEntry>? but String! was expected
[ERROR] /home/gar/dev/olca-conversion-service/src/main/kotlin/app/model/ConversionSetup.kt:[16,35] No value passed for parameter 'p1'
[ERROR] /home/gar/dev/olca-conversion-service/src/main/kotlin/app/model/ImportEcoSpold1.kt:[6,39] Unresolved reference: ImportConfig
[ERROR] /home/gar/dev/olca-conversion-service/src/main/kotlin/app/model/ImportEcoSpold1.kt:[12,22] Unresolved reference: ImportConfig
[ERROR] /home/gar/dev/olca-conversion-service/src/main/kotlin/app/model/ImportEcoSpold1.kt:[14,19] None of the following functions can be called with the arguments supplied:
[ERROR] public constructor EcoSpold01Import(p0: IDatabase!, p1: UnitMapping!) defined in org.openlca.io.ecospold1.input.EcoSpold01Import
[ERROR] public constructor EcoSpold01Import(p0: IDatabase!, p1: UnitMapping!, p2: Array<(out) File!>!) defined in org.openlca.io.ecospold1.input.EcoSpold01Import
[ERROR] /home/gar/dev/olca-conversion-service/src/main/kotlin/app/model/ImportEcoSpold2.kt:[23,35] Too many arguments for public constructor ImportConfig() defined in org.openlca.io.ecospold2.input.ImportConfig
[ERROR] /home/gar/dev/olca-conversion-service/src/main/kotlin/app/model/ImportEcoSpold2.kt:[24,16] Unresolved reference: flowMap
[ERROR] /home/gar/dev/olca-conversion-service/src/main/kotlin/app/model/ImportEcoSpold2.kt:[25,35] Type mismatch: inferred type is ImportConfig but IDatabase! was expected
[ERROR] /home/gar/dev/olca-conversion-service/src/main/kotlin/app/model/ImportILCD.kt:[22,9] Val cannot be reassigned
[ERROR] /home/gar/dev/olca-conversion-service/src/main/kotlin/app/model/ImportJSON.kt:[17,17] Too many arguments for public open fun run(): Unit defined in org.openlca.jsonld.input.JsonImport
[ERROR] /home/gar/dev/olca-conversion-service/src/main/kotlin/app/model/ImportJSON.kt:[17,36] Too many arguments for public open fun run(): Unit defined in org.openlca.jsonld.input.JsonImport
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.