Github user JulioCCBUcuenca commented on a diff in the pull request:

    https://github.com/apache/any23/pull/104#discussion_r203591665
  
    --- Diff: 
core/src/main/java/org/apache/any23/extractor/rdf/RDFParserFactory.java ---
    @@ -124,6 +124,27 @@ public RDFParser getRDFa11Parser(
             configureParser(parser, verifyDataType, stopAtFirstError, 
extractionContext, extractionResult);
             return parser;
         }
    +    
    +    /**
    +     * Returns a new instance of a configured RDFaParser using the librdfa 
library.
    +     *
    +     * @param verifyDataType data verification enable if <code>true</code>.
    +     * @param stopAtFirstError the parser stops at first error if 
<code>true</code>.
    +     * @param extractionContext the extraction context where the parser is 
used.
    +     * @param extractionResult the output extraction result.
    +     * @return a new instance of a configured RDFXML parser.
    +     */
    +    public RDFParser getRDFaLibrdfaParser(
    +            final boolean verifyDataType,
    +            final boolean stopAtFirstError,
    +            final ExtractionContext extractionContext,
    +            final ExtractionResult extractionResult
    +    ) {
    +        final RDFParser parser = new LibrdfaRDFaParser();
    --- End diff --
    
    We should try a better approach to maintain two parser for the same format.


---

Reply via email to