These are the morph extractors for transforming structured data sources into GraphSON for alignment into the Stucco knowledge graph.
Tests can be run with mvn test
New extractors will need to extend the Extractor
class, and implement the extract(ValueNode)
method, which is how they will receive input.
Extractors use the Morph DSL, so please refer to the Morph documentation.
The easiest way to test any new extractors is to add new test cases for them when you begin, instead of passing them input by some other means and writing test cases later.
Larger tests should add their data to ./testData/
(but do not add excessively large test datasets to this repo.)
master: [![Build Status] (https://travis-ci.org/stucco/extractors.png?branch=master)] (https://travis-ci.org/stucco/extractors)