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

commit 7917cc42bea7fc3efc749ef2afa08d5cad50d249
Author: Gary D. Gregory <garydgreg...@gmail.com>
AuthorDate: Fri May 16 17:54:04 2025 -0400

    Close HTML tags
    
    Use longer lines
---
 .../org/apache/commons/rdf/api/W3CRDFSyntax.java   | 48 +++++++++-------------
 1 file changed, 20 insertions(+), 28 deletions(-)

diff --git 
a/commons-rdf-api/src/main/java/org/apache/commons/rdf/api/W3CRDFSyntax.java 
b/commons-rdf-api/src/main/java/org/apache/commons/rdf/api/W3CRDFSyntax.java
index 835aef20..14794a58 100644
--- a/commons-rdf-api/src/main/java/org/apache/commons/rdf/api/W3CRDFSyntax.java
+++ b/commons-rdf-api/src/main/java/org/apache/commons/rdf/api/W3CRDFSyntax.java
@@ -15,6 +15,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
+
 package org.apache.commons.rdf.api;
 
 import java.util.Arrays;
@@ -26,26 +27,24 @@ import java.util.Set;
 /**
  * W3C RDF 1.1 serialization syntax.
  * <p>
- * This defines the W3C standardized RDF 1.1 syntaxes like {@link #TURTLE} and
- * {@link #JSONLD}. Note the existence of other RDF syntaxes that are not
- * included here, e.g. <a href="http://www.w3.org/TeamSubmission/n3/";>N3</a> 
and
- * <a href="https://en.wikipedia.org/wiki/TriX_%28syntax%29";>TriX</a>.
+ * This defines the W3C standardized RDF 1.1 syntaxes like {@link #TURTLE} and 
{@link #JSONLD}. Note the existence of other RDF syntaxes that are not included
+ * here, e.g. <a href="http://www.w3.org/TeamSubmission/n3/";>N3</a> and <a 
href="https://en.wikipedia.org/wiki/TriX_%28syntax%29";>TriX</a>.
+ * </p>
  * <p>
- * This class is package-protected, its static constants are exposed through
- * {@link RDFSyntax}.
+ * This class is package-protected, its static constants are exposed through 
{@link RDFSyntax}.
+ * </p>
  *
  * @see RDFSyntax#w3cSyntaxes()
- * @see <a href="https://www.w3.org/TR/rdf11-primer/#section-graph-syntax";>RDF
- *      1.1 Primer</a>
+ * @see <a href="https://www.w3.org/TR/rdf11-primer/#section-graph-syntax";>RDF 
1.1 Primer</a>
  * @see org.apache.commons.rdf.experimental.RDFParser
  */
 class W3CRDFSyntax implements RDFSyntax {
 
     /**
-     * IRI representing a <a href="https://www.w3.org/ns/formats/";>W3C RDF
-     * format</a>.
+     * IRI representing a <a href="https://www.w3.org/ns/formats/";>W3C RDF 
format</a>.
      */
     private static final class FormatIRI implements IRI {
+
         private static final String BASE = "http://www.w3.org/ns/formats/";;
         private final String format;
 
@@ -94,7 +93,7 @@ class W3CRDFSyntax implements RDFSyntax {
     static final RDFSyntax RDFXML;
     static final RDFSyntax TRIG;
     static final Set<RDFSyntax> syntaxes;
-
+    
     static {
         // Initialize within static block to avoid inserting nulls
         JSONLD = new W3CRDFSyntax("JSON-LD", "JSON-LD 1.0", 
"application/ld+json", ".jsonld", true);
@@ -104,33 +103,28 @@ class W3CRDFSyntax implements RDFSyntax {
         RDFXML = new W3CRDFSyntax("RDF_XML", "RDF 1.1 XML Syntax", 
"application/rdf+xml", ".rdf", false);
         TRIG = new W3CRDFSyntax("TriG", "RDF 1.1 TriG", "application/trig", 
".trig", true);
         RDFA = new W3CRDFSyntax("RDFa", "HTML+RDFa 1.1", "text/html", ".html", 
false) {
-            private final Set<String> types = Collections.unmodifiableSet(new 
LinkedHashSet<>(
-                    Arrays.asList("text/html", "application/xhtml+xml")));
-            private final Set<String> extensions = 
Collections.unmodifiableSet(new LinkedHashSet<>(
-                            Arrays.asList(".html", ".xhtml")));
+
+            private final Set<String> types = Collections.unmodifiableSet(new 
LinkedHashSet<>(Arrays.asList("text/html", "application/xhtml+xml")));
+            private final Set<String> extensions = 
Collections.unmodifiableSet(new LinkedHashSet<>(Arrays.asList(".html", 
".xhtml")));
+
             @Override
             public Set<String> fileExtensions() {
                 return extensions;
             }
+
             @Override
             public Set<String> mediaTypes() {
                 return types;
             }
         };
-        syntaxes = Collections.unmodifiableSet(new LinkedHashSet<>(
-                Arrays.asList(JSONLD, NQUADS, NTRIPLES, RDFA, RDFXML, TRIG, 
TURTLE)));
+        syntaxes = Collections.unmodifiableSet(new 
LinkedHashSet<>(Arrays.asList(JSONLD, NQUADS, NTRIPLES, RDFA, RDFXML, TRIG, 
TURTLE)));
     }
-
+    
     private final String title;
-
     private final String mediaType;
-
     private final String fileExtension;
-
     private final boolean supportsDataset;
-
     private final String name;
-
     private final IRI iri;
 
     private W3CRDFSyntax(final String name, final String title, final String 
mediaType, final String fileExtension, final boolean supportsDataset) {
@@ -157,8 +151,7 @@ class W3CRDFSyntax implements RDFSyntax {
     /**
      * {@inheritDoc}
      * <p>
-     * {@link W3CRDFSyntax} always defines file extensions in lower case, so
-     * {@link String#toLowerCase(Locale)} need not be called.
+     * {@link W3CRDFSyntax} always defines file extensions in lower case, so 
{@link String#toLowerCase(Locale)} need not be called.
      */
     @Override
     public String fileExtension() {
@@ -178,8 +171,8 @@ class W3CRDFSyntax implements RDFSyntax {
     /**
      * {@inheritDoc}
      * <p>
-     * {@link W3CRDFSyntax} always defines media type in lower case, so
-     * {@link String#toLowerCase(Locale)} need not be called.
+     * {@link W3CRDFSyntax} always defines media type in lower case, so {@link 
String#toLowerCase(Locale)} need not be called.
+     * </p>
      */
     @Override
     public String mediaType() {
@@ -205,5 +198,4 @@ class W3CRDFSyntax implements RDFSyntax {
     public String toString() {
         return title;
     }
-
 }

Reply via email to