@@ -0,0 +1,1510 @@
+package de.dfki.km.json.jsonld.impl;%0A%0Aimport java.util.Iterator;%0A%0Aimport org.openrdf.model.Graph;%0Aimport org.openrdf.model.Literal;%0Aimport org.openrdf.model.Resource;%0Aimport org.openrdf.model.Statement;%0Aimport org.openrdf.model.URI;%0Aimport org.openrdf.model.Value;%0Aimport org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0A%0Apublic class SesameJSONLDSerializer extends de.dfki.km.json.jsonld.JSONLDSerializer%0A%7B%0A    private static final Logger LOG = LoggerFactory.getLogger(SesameJSONLDSerializer.class);%0A    %0A    public void importGraph(Graph model, Resource... contexts)%0A    %7B%0A        Iterator%3CStatement%3E statements = model.match(null, null, null, contexts);%0A        while(statements.hasNext())%0A        %7B%0A            Statement statement = statements.next();%0A            Resource subject = statement.getSubject();%0A            URI predicate = statement.getPredicate();%0A            Value object = statement.getObject();%0A            %0A            if(object instanceof Literal)%0A            %7B%0A                Literal literal = (Literal)object;%0A                String value = literal.getLabel();%0A                URI datatypeURI = literal.getDatatype();%0A                String language = literal.getLanguage();%0A                %0A                triple(subject.stringValue(), predicate.stringValue(), value, datatypeURI.stringValue(), language);%0A            %7D%0A            else%0A            %7B%0A                triple(subject.stringValue(), predicate.stringValue(), object.stringValue());%0A            %7D%0A        %7D%0A    %7D%0A    %0A%7D%0A

add JSONLDSerialiser.fromSesameGraph implementation