Package org.apache.any23.extractor.html
Class EmbeddedJSONLDExtractor
- java.lang.Object
-
- org.apache.any23.extractor.html.EmbeddedJSONLDExtractor
-
- All Implemented Interfaces:
org.apache.any23.extractor.Extractor<Document>
,org.apache.any23.extractor.Extractor.TagSoupDOMExtractor
public class EmbeddedJSONLDExtractor extends Object implements org.apache.any23.extractor.Extractor.TagSoupDOMExtractor
This extractor represents the HTML script tags used to embed blocks of data in documents. This way, JSON-LD content can be easily embedded in HTML by placing it in a script element with the type attribute set to application/ld+json according the JSON-LD specification.
-
-
Constructor Summary
Constructors Constructor Description EmbeddedJSONLDExtractor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.any23.extractor.ExtractorDescription
getDescription()
void
run(org.apache.any23.extractor.ExtractionParameters extractionParameters, org.apache.any23.extractor.ExtractionContext extractionContext, Document in, org.apache.any23.extractor.ExtractionResult out)
-
-
-
Method Detail
-
run
public void run(org.apache.any23.extractor.ExtractionParameters extractionParameters, org.apache.any23.extractor.ExtractionContext extractionContext, Document in, org.apache.any23.extractor.ExtractionResult out) throws IOException, org.apache.any23.extractor.ExtractionException
- Specified by:
run
in interfaceorg.apache.any23.extractor.Extractor<Document>
- Throws:
IOException
org.apache.any23.extractor.ExtractionException
-
getDescription
public org.apache.any23.extractor.ExtractorDescription getDescription()
- Specified by:
getDescription
in interfaceorg.apache.any23.extractor.Extractor<Document>
-
-