@@ -0,0 +1,1453 @@
+package de.dfki.km.json.jsonld.impl;%0A%0A%0Aimport org.openrdf.model.Resource;%0Aimport org.openrdf.model.Statement;%0Aimport org.openrdf.model.URI;%0Aimport org.openrdf.model.Value;%0Aimport org.openrdf.model.ValueFactory;%0Aimport org.openrdf.model.impl.ValueFactoryImpl;%0A%0Aimport de.dfki.km.json.jsonld.JSONLDTripleCallback;%0A%0Apublic class SesameTripleCallback implements JSONLDTripleCallback %7B%0A%0A    private ValueFactory vf = ValueFactoryImpl.getInstance();%0A%0A    @Override%0A%09public Object triple(String s, String p, String o) %7B%0A%09%09if (s == null %7C%7C p == null %7C%7C o == null) %7B%0A%09%09%09// TODO: i don't know what to do here!!!!%0A%09%09%09return null;%0A%09%09%7D%0A%09%09%0A%09%09// This method is always called with three URIs as subject predicate and object%0A%09%09return vf.createStatement(vf.createURI(s), vf.createURI(p), vf.createURI(o));%0A%09%7D%0A%0A%09@Override%0A%09public Object triple(String s, String p, String value, String datatype,%0A%09%09%09String language) %7B%0A%09%09%0A        if (s == null %7C%7C p == null %7C%7C value == null) %7B%0A            // TODO: i don't know what to do here!!!!%0A            return null;%0A        %7D%0A        %0A%09    URI subject = vf.createURI(s);%0A%09    %0A%09    URI predicate = vf.createURI(p);%0A%09%09%0A%09%09Value object;%0A%09%09if (language != null) %7B%0A%09%09%09object = vf.createLiteral(value, language);%0A%09%09%7D else if (datatype != null) %7B%0A%09%09%09object = vf.createLiteral(value, vf.createURI(datatype));%0A%09%09%7D else %7B%0A            object = vf.createLiteral(value);%0A%09%09%7D%0A%09%09%0A        return vf.createStatement(subject, predicate, object);%0A%09%7D%0A%0A%7D%0A

add SesameTripleCallback