Class JSONLDExtractor

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

    public class JSONLDExtractor
    extends BaseRDFExtractor
    Concrete implementation of Extractor.ContentExtractor handling JSON-LD format.
    • 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
      JSONLDExtractor()  
      JSONLDExtractor​(boolean verifyDataType, boolean stopAtFirstError)
      Deprecated.
      since 2.4.
    • Constructor Detail

      • JSONLDExtractor

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

        public JSONLDExtractor()
    • Method Detail

      • getDescription

        public org.apache.any23.extractor.ExtractorDescription getDescription()
      • 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
      • 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
      • 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