https://github.com/TRIPLE-CHIST-ERA/VoIDToJava
Generate a java package for data described using VoID (ReadOnly-ORM for SPARQL)
https://github.com/TRIPLE-CHIST-ERA/VoIDToJava
Last synced: 20 days ago
JSON representation
Generate a java package for data described using VoID (ReadOnly-ORM for SPARQL)
- Host: GitHub
- URL: https://github.com/TRIPLE-CHIST-ERA/VoIDToJava
- Owner: TRIPLE-CHIST-ERA
- License: mit
- Created: 2024-10-24T07:36:28.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-10-24T07:50:41.000Z (6 months ago)
- Last Synced: 2024-10-25T03:44:41.189Z (6 months ago)
- Language: Java
- Size: 56.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-java-rdf - VoIDToJava
- awesome-java-rdf - VoIDToJava
README
# Generate Java code to wrap SPARQL endpoints.
SPARQL is a lovely query language, but not everyone is comfortable with it.
Many java programmers would like to just access the data without needing to understand the details of one more query language.This project is a code generator *in progress* that aims to use the given/descovered schema of data available in a SPARQL endpoint,
and generate matching documented java code to access such data.## STATUS
Extremely early code. Still a lot to do, but one can test it out now as we have valid java code that runs the right kind of SPARQL queries.
## GOAL
Imagine a small team, presenting a small open research dataset to the world. They might have some capabilities in their team to make
a website, a rest API in one language. But certainly not all the languages. The code in this repository shows how people could access
this valuable data without learning SPARQL, in this case the people would be in the java community. However, the ideas here are an example
for other ecosystems.## USE
First make the program (there are no releases yet)
```
git clone https://github.com/TRIPLE-CHIST-ERA/VoIDToJava.git
cd VoIDToJava
mvn package
java -jar target/VoIDToJava.jar ${inputVoidFile} ${outputJavaCodeDirectory}
```The `${inputVoidFile}` can be generated e.g. with the [`void-generator`](https://github.com/JervenBolleman/void-generator).
## BACKGROUND
[See this presentation](https://docs.google.com/presentation/d/17w6wOagyE_bFuRr5zL5Ru66IBEmxeZBVKhSpZUQ0-qM/edit#slide=id.g337e9433fa7_0_34) for some related background,
and http://www.w3.org/TR/void/ to learn more about the VoID Vocabulary which this project is based on.