This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-rdf.git


The following commit(s) were added to refs/heads/master by this push:
     new 044d9db2 Add org.apache.commons.rdf.api.RDFSyntaxTest.testIri()
044d9db2 is described below

commit 044d9db200b5baa90094d31b170aea2b87fe376f
Author: Gary D. Gregory <garydgreg...@gmail.com>
AuthorDate: Fri May 16 21:07:23 2025 -0400

    Add org.apache.commons.rdf.api.RDFSyntaxTest.testIri()
---
 .../test/java/org/apache/commons/rdf/api/RDFSyntaxTest.java  | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git 
a/commons-rdf-api/src/test/java/org/apache/commons/rdf/api/RDFSyntaxTest.java 
b/commons-rdf-api/src/test/java/org/apache/commons/rdf/api/RDFSyntaxTest.java
index f633e02b..248673d3 100644
--- 
a/commons-rdf-api/src/test/java/org/apache/commons/rdf/api/RDFSyntaxTest.java
+++ 
b/commons-rdf-api/src/test/java/org/apache/commons/rdf/api/RDFSyntaxTest.java
@@ -114,6 +114,18 @@ public class RDFSyntaxTest {
         assertTrue(RDFSyntax.TURTLE.fileExtensions().contains(".ttl"));
     }
 
+    @Test
+    public void testIri() throws Exception {
+        assertEquals("<http://www.w3.org/ns/formats/JSON-LD>", 
RDFSyntax.JSONLD.iri().toString());
+        assertEquals("<http://www.w3.org/ns/formats/N-Quads>", 
RDFSyntax.NQUADS.iri().toString());
+        assertEquals("<http://www.w3.org/ns/formats/N-Triples>", 
RDFSyntax.NTRIPLES.iri().toString());
+        assertEquals("<http://www.w3.org/ns/formats/RDFa>", 
RDFSyntax.RDFA.iri().toString());
+        assertEquals("<http://www.w3.org/ns/formats/RDF_XML>", 
RDFSyntax.RDFXML.iri().toString());
+        assertEquals("<http://www.w3.org/ns/formats/TriG>", 
RDFSyntax.TRIG.iri().toString());
+        assertEquals("<http://www.w3.org/ns/formats/Turtle>", 
RDFSyntax.TURTLE.iri().toString());
+        assertEquals("<http://www.w3.org/ns/formats/JSON-LD>", 
RDFSyntax.JSONLD.iri().toString());
+    }
+
     @Test
     public void testMediaType() throws Exception {
         assertEquals("application/ld+json", RDFSyntax.JSONLD.mediaType());

Reply via email to