You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2016/10/03 10:35:44 UTC
[12/41] jena git commit: Details
Details
Project: http://git-wip-us.apache.org/repos/asf/jena/repo
Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/66f604c4
Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/66f604c4
Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/66f604c4
Branch: refs/heads/master
Commit: 66f604c417a7886fc6316329b14596b5164dc529
Parents: 1c613ae
Author: Franc\u0327ois-Paul Servant <fp...@semanlink.net>
Authored: Fri May 6 15:11:06 2016 +0200
Committer: Franc\u0327ois-Paul Servant <fp...@semanlink.net>
Committed: Fri May 6 15:11:06 2016 +0200
----------------------------------------------------------------------
.../src/main/java/org/apache/jena/riot/out/JsonLDWriter.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/jena/blob/66f604c4/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 b08a3c5..1b7a94e 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
@@ -81,8 +81,6 @@ import com.github.jsonldjava.utils.JsonUtils ;
*/
public class JsonLDWriter extends WriterDatasetRIOTBase
{
-// /** value: the context expected by JSON-LD JsonLdProcessor.compact and flatten */
-// public static final Symbol JSONLD_CONTEXT = Symbol.create("JSONLD_CONTEXT");
/** Expected value: the value of the "@context" (a JSON String) */
public static final Symbol JSONLD_CONTEXT = Symbol.create("JSONLD_CONTEXT");
@@ -204,7 +202,7 @@ public class JsonLDWriter extends WriterDatasetRIOTBase
//
/** Get the (jsonld) context from the jena context, or create one */
- protected Object getJsonldContext(DatasetGraph dataset, PrefixMap prefixMap, Context jenaContext) throws JsonParseException, IOException {
+ private static Object getJsonldContext(DatasetGraph dataset, PrefixMap prefixMap, Context jenaContext) throws JsonParseException, IOException {
Object ctx = null;
boolean isCtxDefined = false; // to allow jenaContext to set ctx to null. Useful?
@@ -214,7 +212,7 @@ public class JsonLDWriter extends WriterDatasetRIOTBase
Object o = jenaContext.get(JSONLD_CONTEXT);
if (o != null) {
// I won't assume it is a string, to leave the possibility to pass
- // the context expected by JSON-LD JsonLdProcessor.compact and flatten
+ // the context object expected by JSON-LD JsonLdProcessor.compact and flatten
// (should not be useful)
if (o instanceof String) {
String jsonString = (String) jenaContext.get(JSONLD_CONTEXT);
@@ -244,6 +242,8 @@ public class JsonLDWriter extends WriterDatasetRIOTBase
}
// useful to help people wanting to create their own context?
+ // It is used in TestJsonLDWriter (marginally) (TestJsonLDWriter which happens to be in another package,
+ // so either I remove the test, or this has to be public)
public static Object createJsonldContext(Graph g) {
return createJsonldContext(g, PrefixMapFactory.create(g.getPrefixMapping()));
}