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 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 }
You can’t perform that action at this time.
0 commit comments