Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kenda/cda2rdf
Converter from the CDA document format to rdf and the other way round
https://github.com/kenda/cda2rdf
Last synced: 25 days ago
JSON representation
Converter from the CDA document format to rdf and the other way round
- Host: GitHub
- URL: https://github.com/kenda/cda2rdf
- Owner: kenda
- Created: 2012-12-12T17:27:04.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2013-10-21T12:50:26.000Z (about 11 years ago)
- Last Synced: 2023-03-31T03:57:34.412Z (almost 2 years ago)
- Language: Java
- Size: 21.9 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# CDA2RDF Converter (and the other way round)
## Installation
* MavenIf you want to build the sources on your own you can use Maven to install the dependecies and build the project.
* standalone jarThere is also a standalone jar `cda2rdf-0.1-jar-with-dependencies.jar` including all dependencies. This requires no installation.
## Usage
### Webservice`java -jar cda2rdf-0.1-jar-with-dependencies.jar --webservice`
The server runs by default on port 8080. It provides two endpoints:
* /cda2rdf
* /rdf2cda
It requires in both cases the parameter *input* with the given CDA or RDF document.
### CLI
`java -jar cda2rdf-0.1-jar-with-dependencies.jar --cda2rdf --input=""`
`java -jar cda2rdf-0.1-jar-with-dependencies.jar --rdf2cda --input=""`## Demo
You can take a look at the output by querying the server like this:curl --data "input=$(cat Arztbrief-4\ I01873200709201640.xml|sed -e "s/\"/\'/g")" http://localhost:8080/cda2rdf
or by calling the program directly, e.g.:
java -jar cda2rdf-0.1-jar-with-dependencies.jar --cda2rdf --input="$(cat Arztbrief-4\ I01873200709201640.xml|sed -e "s/\"/\'/g")"