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.ContentExtractor
handling 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.ExtractorDescription
getDescription()
protected org.eclipse.rdf4j.rio.RDFParser
getParser(org.apache.any23.extractor.ExtractionContext extractionContext, org.apache.any23.extractor.ExtractionResult extractionResult)
Deprecated.since 2.4.void
run(org.apache.any23.extractor.ExtractionParameters extractionParameters, org.apache.any23.extractor.ExtractionContext extractionContext, InputStream in, org.apache.any23.extractor.ExtractionResult extractionResult)
void
setStopAtFirstError(boolean stopAtFirstError)
Deprecated.since 2.4.void
setVerifyDataType(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:
run
in interfaceorg.apache.any23.extractor.Extractor<InputStream>
- Overrides:
run
in classBaseRDFExtractor
- 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 interfaceorg.apache.any23.extractor.Extractor.ContentExtractor
- Overrides:
setStopAtFirstError
in 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:
setVerifyDataType
in 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:
getParser
in classBaseRDFExtractor
- Parameters:
extractionContext
- the extraction contextextractionResult
- the extraction result- Returns:
- a
RDFParser
-
-