1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.apache.any23.extractor.html;
19
20 import java.util.Arrays;
21
22 import org.apache.any23.extractor.ExtractorDescription;
23 import org.apache.any23.extractor.ExtractorFactory;
24 import org.apache.any23.extractor.SimpleExtractorFactory;
25 import org.apache.any23.rdf.PopularPrefixes;
26 import org.apache.any23.rdf.Prefixes;
27
28
29
30
31 public class EmbeddedJSONLDExtractorFactory extends SimpleExtractorFactory<EmbeddedJSONLDExtractor>
32 implements ExtractorFactory<EmbeddedJSONLDExtractor> {
33
34 public static final String NAME = "html-embedded-jsonld";
35
36 public static final Prefixes PREFIXES = PopularPrefixes.createSubset("jsonld");
37
38 private static final ExtractorDescription descriptionInstance = new EmbeddedJSONLDExtractorFactory();
39
40 public EmbeddedJSONLDExtractorFactory() {
41 super(EmbeddedJSONLDExtractorFactory.NAME, EmbeddedJSONLDExtractorFactory.PREFIXES,
42 Arrays.asList("text/html;q=0.02", "application/xhtml+xml;q=0.02"), "example-embedded-jsonld.html");
43 }
44
45 @Override
46 public EmbeddedJSONLDExtractor createExtractor() {
47 return new EmbeddedJSONLDExtractor();
48 }
49
50 public static ExtractorDescription getDescriptionInstance() {
51 return descriptionInstance;
52 }
53 }