any23-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lewi...@apache.org
Subject [1/2] any23 git commit: Deprecate unused RDFa parser.
Date Mon, 02 Jul 2018 21:03:38 GMT
Repository: any23
Updated Branches:
  refs/heads/master 3475ebd67 -> 99f3f0ad9


Deprecate unused RDFa parser.

Signed-of-by: Julio Caguano


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

Branch: refs/heads/master
Commit: 66be7fb6d845982490b385abd7bdc2a3f7e6e667
Parents: 3475ebd
Author: Julio Caguano <julio.caguanob@gmail.com>
Authored: Thu Jun 28 22:20:48 2018 -0500
Committer: Julio Caguano <julio.caguanob@gmail.com>
Committed: Thu Jun 28 22:20:48 2018 -0500

----------------------------------------------------------------------
 .../any23/extractor/rdfa/RDFa11Parser.java      | 29 ++++++++++----------
 1 file changed, 15 insertions(+), 14 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/any23/blob/66be7fb6/core/src/main/java/org/apache/any23/extractor/rdfa/RDFa11Parser.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/any23/extractor/rdfa/RDFa11Parser.java b/core/src/main/java/org/apache/any23/extractor/rdfa/RDFa11Parser.java
index 8f0cca5..4bc931e 100644
--- a/core/src/main/java/org/apache/any23/extractor/rdfa/RDFa11Parser.java
+++ b/core/src/main/java/org/apache/any23/extractor/rdfa/RDFa11Parser.java
@@ -17,13 +17,23 @@
 
 package org.apache.any23.extractor.rdfa;
 
-import org.apache.any23.extractor.IssueReport;
+import java.io.IOException;
+import java.net.MalformedURLException;
+import java.net.URISyntaxException;
+import java.net.URL;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.Stack;
+import javax.xml.transform.TransformerException;
 import org.apache.any23.extractor.ExtractionResult;
+import org.apache.any23.extractor.IssueReport;
 import org.apache.any23.extractor.html.DomUtils;
 import org.apache.any23.rdf.RDFUtils;
+import org.eclipse.rdf4j.model.IRI;
 import org.eclipse.rdf4j.model.Literal;
 import org.eclipse.rdf4j.model.Resource;
-import org.eclipse.rdf4j.model.IRI;
 import org.eclipse.rdf4j.model.Value;
 import org.eclipse.rdf4j.model.vocabulary.RDF;
 import org.slf4j.Logger;
@@ -33,21 +43,12 @@ import org.w3c.dom.NamedNodeMap;
 import org.w3c.dom.Node;
 import org.w3c.dom.NodeList;
 
-import javax.xml.transform.TransformerException;
-import java.io.IOException;
-import java.net.MalformedURLException;
-import java.net.URISyntaxException;
-import java.net.URL;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.Stack;
-
 /**
  * This parser is able to extract <a href="http://www.w3.org/TR/rdfa-syntax/">RDFa
1.0</a> and
  * <a href="http://www.w3.org/TR/rdfa-core/">RDFa 1.1</a> statements from any
<i>(X)HTML</i> document.
- *
+ * @deprecated since 2.3 the {@link org.eclipse.rdf4j.rio.Rio} implementations 
+ * are used to parse RDFa. Look at {@link org.apache.any23.extractor.rdf.RDFParserFactory#getRDFa10Parser}
+ * and {@link org.apache.any23.extractor.rdf.RDFParserFactory#getRDFa11Parser}.
  * @author Michele Mostarda (mostarda@fbk.eu)
  */
 public class RDFa11Parser {


Mime
View raw message