Package org.apache.any23.extractor.rdf
Class JSONLDExtractor
- java.lang.Object
-
- org.apache.any23.extractor.rdf.BaseRDFExtractor
-
- org.apache.any23.extractor.rdf.JSONLDExtractor
-
- All Implemented Interfaces:
org.apache.any23.extractor.Extractor<InputStream>,org.apache.any23.extractor.Extractor.ContentExtractor
public class JSONLDExtractor extends BaseRDFExtractor
Concrete implementation ofExtractor.ContentExtractorhandling JSON-LD format.
-
-
Constructor Summary
Constructors Constructor Description JSONLDExtractor()JSONLDExtractor(boolean verifyDataType, boolean stopAtFirstError)Deprecated.since 2.4.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.apache.any23.extractor.ExtractorDescriptiongetDescription()protected org.eclipse.rdf4j.rio.RDFParsergetParser(org.apache.any23.extractor.ExtractionContext extractionContext, org.apache.any23.extractor.ExtractionResult extractionResult)Deprecated.since 2.4.voidrun(org.apache.any23.extractor.ExtractionParameters extractionParameters, org.apache.any23.extractor.ExtractionContext extractionContext, InputStream in, org.apache.any23.extractor.ExtractionResult extractionResult)voidsetStopAtFirstError(boolean stopAtFirstError)Deprecated.since 2.4.voidsetVerifyDataType(boolean verifyDataType)Deprecated.since 2.4.-
Methods inherited from class org.apache.any23.extractor.rdf.BaseRDFExtractor
isStopAtFirstError, isVerifyDataType
-
-
-
-
Constructor Detail
-
JSONLDExtractor
@Deprecated public JSONLDExtractor(boolean verifyDataType, boolean stopAtFirstError)
Deprecated.since 2.4. This extractor has never supported these settings. UseJSONLDExtractor()instead.- Parameters:
verifyDataType- has no effectstopAtFirstError- 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:
runin interfaceorg.apache.any23.extractor.Extractor<InputStream>- Overrides:
runin classBaseRDFExtractor- Throws:
IOExceptionorg.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:
setStopAtFirstErrorin interfaceorg.apache.any23.extractor.Extractor.ContentExtractor- Overrides:
setStopAtFirstErrorin classBaseRDFExtractor- 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:
setVerifyDataTypein classBaseRDFExtractor- 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 RDF4JRDFParser. Do not use this method.- Specified by:
getParserin classBaseRDFExtractor- Parameters:
extractionContext- the extraction contextextractionResult- the extraction result- Returns:
- a
RDFParser
-
-