You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pr@jena.apache.org by "sverholen (via GitHub)" <gi...@apache.org> on 2023/04/06 12:27:51 UTC

[GitHub] [jena] sverholen commented on a diff in pull request #1832: improvement: JENA-2350 Pass JsonLdOptions to titanium for json-ld 1.1

sverholen commented on code in PR #1832:
URL: https://github.com/apache/jena/pull/1832#discussion_r1159732119


##########
jena-arq/src/test/java/org/apache/jena/riot/lang/TestLangJSONLD11.java:
##########
@@ -0,0 +1,60 @@
+package org.apache.jena.riot.lang;
+
+import static org.junit.Assert.assertEquals;
+
+import java.net.URI;
+
+import org.apache.jena.riot.Lang;
+import org.apache.jena.riot.RDFParserBuilder;
+import org.apache.jena.sparql.util.Context;
+import org.junit.Test;
+
+import com.apicatalog.jsonld.JsonLdError;
+import com.apicatalog.jsonld.JsonLdOptions;
+import com.apicatalog.jsonld.document.Document;
+import com.apicatalog.jsonld.loader.DocumentLoader;
+import com.apicatalog.jsonld.loader.DocumentLoaderOptions;
+import com.apicatalog.jsonld.loader.HttpLoader;
+
+public class TestLangJSONLD11 {
+	
+	private static final Lang LANG = Lang.JSONLD11;
+	private static final String CONTENT = "";
+
+	@Test
+	public void testGetJsonLdOptions() {
+		RDFParserBuilder.create()
+			.context(setupContext())
+			.forceLang(LANG)

Review Comment:
   Indeed. We tend to use forceLang because some use-cases we support do net set the correct mime type.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: pr-unsubscribe@jena.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@jena.apache.org
For additional commands, e-mail: pr-help@jena.apache.org