Class RDFa11Extractor

  • All Implemented Interfaces:
    org.apache.any23.extractor.Extractor<InputStream>, org.apache.any23.extractor.Extractor.ContentExtractor

    public class RDFa11Extractor
    extends BaseRDFExtractor
    Extractor implementation for RDFa 1.1 specification.
    Author:
    Michele Mostarda (mostarda@fbk.eu), Hans Brende (hansbrende@apache.org)
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.apache.any23.extractor.Extractor

        org.apache.any23.extractor.Extractor.BlindExtractor, org.apache.any23.extractor.Extractor.ContentExtractor, org.apache.any23.extractor.Extractor.TagSoupDOMExtractor
    • Constructor Summary

      Constructors 
      Constructor Description
      RDFa11Extractor()  
      RDFa11Extractor​(boolean verifyDataType, boolean stopAtFirstError)
      Deprecated.
      since 2.4.
    • Constructor Detail

      • RDFa11Extractor

        @Deprecated
        public RDFa11Extractor​(boolean verifyDataType,
                               boolean stopAtFirstError)
        Deprecated.
        since 2.4. This extractor has never supported these settings. Use RDFa11Extractor() instead.
        Parameters:
        verifyDataType - has no effect
        stopAtFirstError - has no effect
      • RDFa11Extractor

        public RDFa11Extractor()
    • Method Detail

      • setStopAtFirstError

        @Deprecated
        public void setStopAtFirstError​(boolean stopAtFirstError)
        Deprecated.
        since 2.4. This extractor has never supported this setting. Do not use.
        Specified by:
        setStopAtFirstError in interface org.apache.any23.extractor.Extractor.ContentExtractor
        Overrides:
        setStopAtFirstError in class BaseRDFExtractor
        Parameters:
        stopAtFirstError - has no effect
      • setVerifyDataType

        @Deprecated
        public void setVerifyDataType​(boolean verifyDataType)
        Deprecated.
        since 2.4. This extractor has never supported this setting. Do not use.
        Overrides:
        setVerifyDataType in class BaseRDFExtractor
        Parameters:
        verifyDataType - has no effect
      • getDescription

        public org.apache.any23.extractor.ExtractorDescription getDescription()
      • getParser

        @Deprecated
        protected org.eclipse.rdf4j.rio.RDFParser getParser​(org.apache.any23.extractor.ExtractionContext extractionContext,
                                                            org.apache.any23.extractor.ExtractionResult extractionResult)
        Deprecated.
        since 2.4. This extractor no longer wraps an RDF4J RDFParser. Do not use this method.
        Specified by:
        getParser in class BaseRDFExtractor
        Parameters:
        extractionContext - the extraction context
        extractionResult - the extraction result
        Returns:
        a RDFParser
      • run

        public void run​(org.apache.any23.extractor.ExtractionParameters extractionParameters,
                        org.apache.any23.extractor.ExtractionContext extractionContext,
                        InputStream in,
                        org.apache.any23.extractor.ExtractionResult extractionResult)
                 throws IOException,
                        org.apache.any23.extractor.ExtractionException
        Specified by:
        run in interface org.apache.any23.extractor.Extractor<InputStream>
        Overrides:
        run in class BaseRDFExtractor
        Throws:
        IOException
        org.apache.any23.extractor.ExtractionException