Skip to content

Commit

Permalink
more documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
mkroetzsch committed Feb 11, 2016
1 parent 6861e75 commit 74d5e75
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/examples/DataExtractionProcessor.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@
* identifier (property P227) who are also humans (P31 with value Q5), and
* extracts for each of them the id, GND value, as well as English and German
* labels and Wikipedia articles, if any. The results are written to a CSV file
* "extracted-data.csv". The property can be modified by changing the value for
* {@link DataExtractionProcessor#extractPropertyId}. The current code only
* extracts the first value for this property if many are given.
*
* "extracted-data.csv". The extracted property can be modified by changing the
* value for {@link DataExtractionProcessor#extractPropertyId}. The current code
* only extracts the first value for this property if many are given. The filter
* condition (P31::Q5) can also be changed in the code.
*
* @author Markus Kroetzsch
*
Expand Down Expand Up @@ -83,6 +83,7 @@ public DataExtractionProcessor() throws IOException {
public void processItemDocument(ItemDocument itemDocument) {
this.itemCount++;

// Check if the item matches our filter conditions:
if (!itemDocument.hasStatementValue(filterPropertyId, filterValue)) {
return;
}
Expand Down

0 comments on commit 74d5e75

Please sign in to comment.