Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jervenbolleman/libretranslate-rdf4j
Translate literals inside an RDF4j custom function using libretranslate
https://github.com/jervenbolleman/libretranslate-rdf4j
Last synced: 19 days ago
JSON representation
Translate literals inside an RDF4j custom function using libretranslate
- Host: GitHub
- URL: https://github.com/jervenbolleman/libretranslate-rdf4j
- Owner: JervenBolleman
- Created: 2023-06-26T08:28:01.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-06-26T08:40:36.000Z (over 1 year ago)
- Last Synced: 2024-05-18T07:42:14.952Z (8 months ago)
- Language: Java
- Size: 3.91 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Conceptual prototype for using a custom [RDF4j](https://rdf4j.eclipse.org/) function and [libretranslate](https://github.com/LibreTranslate/LibreTranslate) on demand to "auto" translate language tagged literals.
```sparql
PREFIX translate :
SELECT ?litJp ?lit
WHERE {
VALUES (?lit) {( "goedemorgen"@nl )}
BIND(translate:translate(?lit, "ja") AS ?litJp)
}
```This should implement caching and be configured to use a non demo translation endpoint.