diff --git a/pom.xml b/pom.xml index f5d06bb..02bedfe 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 org.linkeddatafragments ldfserver - 0.2.1 + 0.2.2 war Linked Data Fragments Server http://linkeddatafragments.org @@ -20,7 +20,7 @@ https://github.com/LinkedDataFragments/Server.Java.git https://github.com/LinkedDataFragments/Server.Java.git - v0.2.1 + v0.2.2 https://github.com/LinkedDataFragments/Server.Java @@ -54,7 +54,7 @@ - 9.3.6.v20151106 + 9.4.9.v20180320 @@ -125,6 +125,16 @@ freemarker 2.3.25-incubating + + org.slf4j + slf4j-api + 1.7.21 + + + org.slf4j + slf4j-simple + 1.7.10 + diff --git a/src/main/java/org/linkeddatafragments/servlet/LinkedDataFragmentServlet.java b/src/main/java/org/linkeddatafragments/servlet/LinkedDataFragmentServlet.java index 6ca7743..5847d23 100644 --- a/src/main/java/org/linkeddatafragments/servlet/LinkedDataFragmentServlet.java +++ b/src/main/java/org/linkeddatafragments/servlet/LinkedDataFragmentServlet.java @@ -182,9 +182,7 @@ public void doGet(HttpServletRequest request, HttpServletResponse response) thro fragment = dataSource.getRequestProcessor() .createRequestedFragment( ldfRequest ); - System.out.println("here"); writer.writeFragment(response.getOutputStream(), dataSource, fragment, ldfRequest); - System.out.println("not here"); } catch (DataSourceNotFoundException ex) { try { diff --git a/src/main/java/org/linkeddatafragments/views/RdfWriterImpl.java b/src/main/java/org/linkeddatafragments/views/RdfWriterImpl.java index 99883c0..90da504 100644 --- a/src/main/java/org/linkeddatafragments/views/RdfWriterImpl.java +++ b/src/main/java/org/linkeddatafragments/views/RdfWriterImpl.java @@ -5,6 +5,8 @@ import java.util.Map; import javax.servlet.ServletOutputStream; import javax.servlet.http.HttpServletRequest; + +import org.apache.jena.query.ARQ; import org.apache.jena.rdf.model.Model; import org.apache.jena.rdf.model.ModelFactory; import org.apache.jena.riot.Lang; @@ -26,6 +28,7 @@ class RdfWriterImpl extends LinkedDataFragmentWriterBase implements ILinkedDataF public RdfWriterImpl(Map prefixes, HashMap datasources, String mimeType) { super(prefixes, datasources); this.contentType = RDFLanguages.contentTypeToLang(mimeType); + ARQ.init(); } @Override @@ -47,7 +50,6 @@ public void writeFragment(ServletOutputStream outputStream, IDataSource datasour output.add(fragment.getMetadata()); output.add(fragment.getTriples()); output.add(fragment.getControls()); - RDFDataMgr.write(outputStream, output, contentType); }