Skip to content

Instantly share code, notes, and snippets.

@thiloplanz
thiloplanz / FusekiExample.java
Created March 20, 2015 01:52
Example how to access the Apache Jena Fuseki server via the Java API: Upload model, run select query
// Written in 2015 by Thilo Planz
// To the extent possible under law, I have dedicated all copyright and related and neighboring rights
// to this software to the public domain worldwide. This software is distributed without any warranty.
// http://creativecommons.org/publicdomain/zero/1.0/
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import com.hp.hpl.jena.query.DatasetAccessor;