Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/greendelta/olca-proto
An implementation of the olca-schema format with protocol buffers
https://github.com/greendelta/olca-proto
Last synced: 25 days ago
JSON representation
An implementation of the olca-schema format with protocol buffers
- Host: GitHub
- URL: https://github.com/greendelta/olca-proto
- Owner: GreenDelta
- License: mpl-2.0
- Created: 2020-07-08T16:24:59.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-03-06T10:28:55.000Z (almost 2 years ago)
- Last Synced: 2024-06-11T16:19:45.501Z (7 months ago)
- Language: Java
- Size: 1.17 MB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# olca-proto
`olca-proto` is a [Protocol Buffers](https://developers.google.com/protocol-buffers)
implementation of the [olca-schema format](https://github.com/GreenDelta/olca-schema).
It also defines a [gRPC](https://grpc.io/) service interface for calling
[openLCA](https://www.openlca.org) functions.## Usage
If you use Maven, just add the following dependency:```xml
org.openlca
olca-proto
2.0.0```
For the gRPC service interface, add this:
```xml
org.openlca
olca-grpc
2.0.0```
## Building from source
The Java source code is generated from proto3 files in the `proto` folder of
this project. The `olca.proto` file contains the definition of the openLCA
schema format and is generated via the `osch` tool of the [olca-schema project](
https://github.com/GreenDelta/olca-schema).To generate the Java source code, we use the
[protobuf-maven-plugin](https://github.com/xolstice/protobuf-maven-plugin):```bash
mvn compile
```You need to have the `protoc` compiler with the gRPC plugin for Java installed.
One way to install it, is to just put the binaries of these tools into your
system path. The `protoc` binary can be downloaded from its GitHub release page:
https://github.com/protocolbuffers/protobuf/releases. The gRPC Java plugin
can be downloaded from the Maven Central Repository:
https://repo1.maven.org/maven2/io/grpc/protoc-gen-grpc-java/. You may need to
rename the plugin to `protoc-gen-grpc-java` and set the executable flags:```bash
chmod +x protoc-gen-grpc-java
```