Anthelion 是一个用于在 HTML 页面中爬取语义注释的 Apache Nutch 插件。
### Usage and Development As mentioned in the beginning of the document this project contains the complete Nutch 1.6 code, including the plugin. If you download the complete project, there is no need for any changes and settings. If you want to download only the plugin, please download only the nutch-anth.zip from the root of the folder and go to step 2 of the configuration. If you want to contribute to the plugin and/or want to use the sources with another version of Nutch, please follow the following instructions: 1. Download and copy the /src/plugin/parse-anth folder into your Nutch's plugins directory. 2. Enable the plugin in conf/nutch-site.xml by adding *parse-anth* in the *plugin.includes* property. 3. Copy the properties from nutch-anth.xml to conf/nutch-site.xml. 3.1. Download the baseline.properties file and set the property *anth.scoring.classifier.PropsFilePath* conf/nutch-site.xml to point to the file. This file contains all configurations for the online classifier. 4. In order for ant to compile and deploy the plugin you need to edit the src/plugin/build.xml, by adding the following line in the *deploy* target: ```xml ``` 5. Add the following lines in conf/parse-plugins.xml: ```xml ``` 6. Add the following line in the *alias* property in conf/parse-plugins.xml: ```xml ``` 7. Copy the *lib* folder into the root of the Nutch distribution. 8. Run `mvn package` inside the *anthelion* folder. This will create the jar "Anthelion-1.0.0-jar-with-dependencies.jar". Copy the jar to src/plugin/parse-anth/lib. 9. Add the following field in conf/schema.xml (also add it to the Solr schema.xml, if you are using Solr): ```xml ``` 10. Run ant in the root of your folder. ### Some Results In order to evaluate the focused crawler we measure the precision of the crawled pages, i.e., the ratio of the number of crawled web pages that contain semantic data and the total number of crawled web pages. So far, we have evaluated using three different seeds sample, and several different configurations. An overview is given in the following table. #seeds nutch options standard scoring anthelion scoring #total pages #sem pages precision #total pages #sem pages precision 2 -depth 3 -topN 15 17 2 0.12 22 7 0.32 10 -depth 8 -topN 15 99 2 0.02 49 11 0.22 1000 -depth 4 -topN 1000 3200 212 0.07 2910 1469 0.50 1000 -depth 5 -topN 2000 8240 511 0.06 9781 7587 0.78 The pairwise comparison is given in the following chart:
### 3rd Party Libraries The Anthelion plugin uses several 3rd party open source libraries and tools. Here we summarize the tools used, their purpose, and the licenses under which they're released. 1. This project includes the sources of Apache Nutch 1.6 (Apache License 2.0 - http://www.apache.org/licenses/LICENSE-2.0) * http://nutch.apache.org/ 2. Apache Any23 1.2 (Apache License 2.0 - http://www.apache.org/licenses/LICENSE-2.0) * Used for extraction of semantic annotation from HTML. * https://any23.apache.org/ * More information about the 3rd party dependencies used in the any23 library can be found [here](https://any23.apache.org/) 3. The classes com.yahoo.research.parsing.WdcParser and com.yahoo.research.parsing.FilterableTripleHandler are modified versions of existing Nutch plugins (Apache License 2.0 - http://www.apache.org/licenses/LICENSE-2.0) * Used for parsing the crawled web pages * Hellman et al. [2]; https://www.assembla.com/spaces/commondata/subversion/source/HEAD/extractorNutch 4. For the libraries and tools used in Anthelion, please check the Anthelion [README file] (https://github.com/yahoo/anthelion/blob/master/anthelion/README.md). Anthelion --------- For more details about the Anthelion project please check the Anthelion [README file] (https://github.com/yahoo/anthelion/blob/master/anthelion/README.md). References ---------- [1]. Meusel, Robert, Peter Mika, and Roi Blanco. "Focused Crawling for Structured Data." Proceedings of the 23rd ACM International Conference on Conference on Information and Knowledge Management. ACM, 2014. [2]. Hellmann, Sebastian, et al. "Knowledge Base Creation, Enrichment and Repair." Linked Open Data--Creating Knowledge Out of Interlinked Data. Springer International Publishing, 2014. 45-69. ###Troubleshooting (TODO)
暂无开放 Issues,或尚未同步最近议题。