Skip to content

Commit 74d5e75

Browse files
committed
more documentation
1 parent 6861e75 commit 74d5e75

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/examples/DataExtractionProcessor.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@
3636
* identifier (property P227) who are also humans (P31 with value Q5), and
3737
* extracts for each of them the id, GND value, as well as English and German
3838
* labels and Wikipedia articles, if any. The results are written to a CSV file
39-
* "extracted-data.csv". The property can be modified by changing the value for
40-
* {@link DataExtractionProcessor#extractPropertyId}. The current code only
41-
* extracts the first value for this property if many are given.
42-
*
39+
* "extracted-data.csv". The extracted property can be modified by changing the
40+
* value for {@link DataExtractionProcessor#extractPropertyId}. The current code
41+
* only extracts the first value for this property if many are given. The filter
42+
* condition (P31::Q5) can also be changed in the code.
4343
*
4444
* @author Markus Kroetzsch
4545
*
@@ -83,6 +83,7 @@ public DataExtractionProcessor() throws IOException {
8383
public void processItemDocument(ItemDocument itemDocument) {
8484
this.itemCount++;
8585

86+
// Check if the item matches our filter conditions:
8687
if (!itemDocument.hasStatementValue(filterPropertyId, filterValue)) {
8788
return;
8889
}

0 commit comments

Comments
 (0)