Skip to content

mautini/pickaxe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pickaxe

Extract Schema.org structured data from HTML page

Overview

Pickaxe is a Java Libray that parse HTML page in order to extract schema.org vocabulary.

Note that this library is still in active development and no stable version has been released yet. The API can change at anytime.

Quick Start

You can check the content of the test to know how to use the library, basically you can parse an HTML page like this :

Scraper scraper = new Scraper();
List<Thing> thingList = scraper.extract("https://github.com/");

Input / Output

Currently, the library accepts an HTML file or an URL in input. It will fetch it if needed, parse it (using jsoup) and convert the schema.org vocabulary found (in Microdata or in JSON-LD) into Java schema.org entities.

The output format use the Google schemaorg-java library. Note that I repackage this library to host it on Maven Central. The fork can be found here.

Known Limitations

  • Support only the JSON-LD and Microdata format (RDFa support is coming)
  • For limitations concerning the JSON-LD parsing, check the limitation of the Google schemaorg-java library
  • In Microdata, all the value use the datatype com.google.schemaorg.core.datatype.Text
  • The library is not available on Maven Central (it will be with the release of the first stable version)

Links

About

Extract Schema.org structured data from HTML page

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published