File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 36
36
* identifier (property P227) who are also humans (P31 with value Q5), and
37
37
* extracts for each of them the id, GND value, as well as English and German
38
38
* 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.
43
43
*
44
44
* @author Markus Kroetzsch
45
45
*
@@ -83,6 +83,7 @@ public DataExtractionProcessor() throws IOException {
83
83
public void processItemDocument (ItemDocument itemDocument ) {
84
84
this .itemCount ++;
85
85
86
+ // Check if the item matches our filter conditions:
86
87
if (!itemDocument .hasStatementValue (filterPropertyId , filterValue )) {
87
88
return ;
88
89
}
You can’t perform that action at this time.
0 commit comments