jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aj...@apache.org
Subject [04/50] jena git commit: toJsonLDJavaAPI: name and order of params changed
Date Tue, 14 Feb 2017 14:39:19 GMT
toJsonLDJavaAPI: name and order of params changed

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

Branch: refs/heads/ThreadPerGraphDataset
Commit: e0c7aaa00977e1b990991276346978848530b403
Parents: 872c289
Author: Franc╠žois-Paul Servant <fps@semanlink.net>
Authored: Thu Jan 26 02:16:32 2017 +0100
Committer: Franc╠žois-Paul Servant <fps@semanlink.net>
Committed: Thu Jan 26 02:16:32 2017 +0100

----------------------------------------------------------------------
 .../main/java/org/apache/jena/riot/writer/JsonLDWriter.java    | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/e0c7aaa0/jena-arq/src/main/java/org/apache/jena/riot/writer/JsonLDWriter.java
----------------------------------------------------------------------
diff --git a/jena-arq/src/main/java/org/apache/jena/riot/writer/JsonLDWriter.java b/jena-arq/src/main/java/org/apache/jena/riot/writer/JsonLDWriter.java
index cf3c335..4ec67a7 100644
--- a/jena-arq/src/main/java/org/apache/jena/riot/writer/JsonLDWriter.java
+++ b/jena-arq/src/main/java/org/apache/jena/riot/writer/JsonLDWriter.java
@@ -89,7 +89,7 @@ import com.github.jsonldjava.utils.JsonUtils ;
  * provides methods to set the values of these different Symbols that are used in controlling
the writing of JSON-LD.
  * 
  * Note that this class also provides a static method to convert jena RDF data to the corresponding
object in JsonLD API:
- * {@link #jsonLDJavaAPIObject(DatasetGraph, PrefixMap, String, org.apache.jena.riot.RDFFormat.JSONLDVariant,
Context)}
+ * {@link #toJsonLDJavaAPI(org.apache.jena.riot.RDFFormat.JSONLDVariant, DatasetGraph, PrefixMap,
String, Context)}
  */
 public class JsonLDWriter extends WriterDatasetRIOTBase
 {
@@ -175,7 +175,7 @@ public class JsonLDWriter extends WriterDatasetRIOTBase
 
     private void serialize(Writer writer, DatasetGraph dataset, PrefixMap prefixMap, String
baseURI, Context jenaContext) {
         try {
-            Object obj = jsonLDJavaAPIObject(dataset, prefixMap, baseURI, getVariant(), jenaContext);
+            Object obj = toJsonLDJavaAPI(getVariant(), dataset, prefixMap, baseURI, jenaContext);
             if (getVariant().isPretty()) {
                 JsonUtils.writePrettyPrint(writer, obj) ;
             } else {
@@ -193,7 +193,7 @@ public class JsonLDWriter extends WriterDatasetRIOTBase
     /**
      * the JsonLD-java API object corresponding to a dataset and a JsonLD format.
      */
-    static public Object jsonLDJavaAPIObject(DatasetGraph dataset, PrefixMap prefixMap, String
baseURI, RDFFormat.JSONLDVariant variant, Context jenaContext) throws JsonLdError, JsonParseException,
IOException {
+    static public Object toJsonLDJavaAPI(RDFFormat.JSONLDVariant variant, DatasetGraph dataset,
PrefixMap prefixMap, String baseURI, Context jenaContext) throws JsonLdError, JsonParseException,
IOException {
         JsonLdOptions opts = getJsonLdOptions(baseURI, jenaContext) ;
 
         // we can benefit from the fact we know that there are no duplicates in the jsonld
RDFDataset that we create


Mime
View raw message