Simple Apache Jena Fuseki embedded server to define custom SPARQL functions easily.
Try a federated query to resolve labels from the nanopublication network from our test endpoint
mvn clean package
java -jar target/fuseki-sparql-custom-functions-0.0.1-SNAPSHOT.jar
On Linux you can just:
./restart.sh
Try out with the URL http://localhost:3330/sparql?query=
Try it locally with this SPARQL query:
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX umtranslator: <https://w3id.org/um/translator/>
SELECT ?label WHERE { BIND(umtranslator:get_label("MONDO:0005146") as ?label) }
Build:
docker build -t fuseki-sparql-custom-functions .
Run on http://localhost:3330/sparql?query=
docker run -it --rm -p 3330:3330 fuseki-sparql-custom-functions