jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [06/41] jena git commit: details
Date Mon, 03 Oct 2016 10:35:38 GMT
details

Project: http://git-wip-us.apache.org/repos/asf/jena/repo
Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/0029b900
Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/0029b900
Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/0029b900

Branch: refs/heads/master
Commit: 0029b90048c1d06a86a2be08f6670e4cd8897d22
Parents: a5f2e06
Author: Franc╠žois-Paul Servant <fps@semanlink.net>
Authored: Fri May 6 01:17:48 2016 +0200
Committer: Franc╠žois-Paul Servant <fps@semanlink.net>
Committed: Fri May 6 01:17:48 2016 +0200

----------------------------------------------------------------------
 .../org/apache/jena/riot/out/JsonLDWriter.java     | 17 +++++++----------
 1 file changed, 7 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/0029b900/jena-arq/src/main/java/org/apache/jena/riot/out/JsonLDWriter.java
----------------------------------------------------------------------
diff --git a/jena-arq/src/main/java/org/apache/jena/riot/out/JsonLDWriter.java b/jena-arq/src/main/java/org/apache/jena/riot/out/JsonLDWriter.java
index c6e834d..85a26b6 100644
--- a/jena-arq/src/main/java/org/apache/jena/riot/out/JsonLDWriter.java
+++ b/jena-arq/src/main/java/org/apache/jena/riot/out/JsonLDWriter.java
@@ -108,6 +108,13 @@ public class JsonLDWriter extends WriterDatasetRIOTBase
         serialize(out, dataset, prefixMap, baseURI, context) ;
     }
 
+    @Override
+    public void write(OutputStream out, DatasetGraph dataset, PrefixMap prefixMap, String
baseURI, Context context) {
+        Writer w = new OutputStreamWriter(out, Chars.charsetUTF8) ;
+        write(w, dataset, prefixMap, baseURI, context) ;
+        IO.flush(w) ;
+    }
+
     private JSONLD_FORMAT getOutputFormat() {
 	  		if ((RDFFormat.JSONLD_COMPACT_PRETTY.equals(format)) || (RDFFormat.JSONLD_COMPACT_FLAT.equals(format)))
return JSONLD_FORMAT.COMPACT;
 	  		if ((RDFFormat.JSONLD_EXPAND_PRETTY.equals(format)) || (RDFFormat.JSONLD_EXPAND_FLAT.equals(format)))
return JSONLD_FORMAT.EXPAND;
@@ -138,13 +145,6 @@ public class JsonLDWriter extends WriterDatasetRIOTBase
 	  		return opts;
     }
 
-    @Override
-    public void write(OutputStream out, DatasetGraph dataset, PrefixMap prefixMap, String
baseURI, Context context) {
-        Writer w = new OutputStreamWriter(out, Chars.charsetUTF8) ;
-        write(w, dataset, prefixMap, baseURI, context) ;
-        IO.flush(w) ;
-    }
-
     private void serialize(Writer writer, DatasetGraph dataset, PrefixMap prefixMap, String
baseURI, Context jenaContext) {
         try {
         		JsonLdOptions opts = getJsonLdOptions(baseURI, jenaContext) ;
@@ -257,9 +257,6 @@ public class JsonLDWriter extends WriterDatasetRIOTBase
                 String x = p.getLocalName() ;
 
                 if ( ctx.containsKey(x) ) {
-                    // Check different URI
-                    // pmap2.remove(x) ;
-                    // dups.add(x) ;
                 } else if ( o.isBlank() || o.isURI() ) {
                     // add property as a property (the object is an IRI)
                     Map<String, Object> x2 = new LinkedHashMap<>() ;


Mime
View raw message