lobid/lodmill — pull request #35 by fsteeg (2013-03-20 11:08:51+00:00)
Title: Fix some issues with processing lobid-resources N-Triples

### Skip all triples with blank nodes in subject or object position

Before, only triples with blank nodes in subject positions were skipped. When we actually reference blank nodes in the object position and load the triples into a Jena model, the blank nodes in the object position can't be resolved, since the triples with blank nodes in the subject position were skipped.

This change fixes this by skipping all triples with blank nodes. To handle blank nodes, we could take a similar approach as for our other resolutions (e.g. resolve creator literals from GND triples).

### Surround objects with whitespace when writing N-Triples

Jena handled the triples without whitespace just fine, but whitespace between predicate and object is required by the spec (see http://www.w3.org/TR/rdf-testcases/#ntriples). Whitespace between object and dot is optional, but added for clarity.

### Update and expand scripts

Fix classpath issue caused by missing 'export', use 'enrich' HDFS directory in initial conversion, add updates script to illustrate our current usage (combine 'enrich' and 'hbzlod' for initial conversion, combine 'enrich' with 'update' for updates conversion).