Fix the language filters.  There were cut-and-paste errors.
"source": [
"!$kgtk filter --verbose=$VERBOSE --regex",
" --use-mgzip $USE_MGZIP",
- " --subj lang",
+ " --obj lang",
" -i $WIKIDATA_PARTS/part.alias.$SORTED_EXTENSION",
- " -p '^en$ ; ^alias$ ;$' -o $WIKIDATA_PARTS/part.alias.en.$SORTED_EXTENSION",
+ " -p ';; ^en$' -o $WIKIDATA_PARTS/part.alias.en.$SORTED_EXTENSION",
""
]
},
"source": [
"!$kgtk filter --verbose=$VERBOSE --regex",
" --use-mgzip $USE_MGZIP",
- " --subj lang",
+ " --obj lang",
" -i $WIKIDATA_PARTS/part.description.$SORTED_EXTENSION",
- " -p '^en$ ; ^alias$ ;$' -o $WIKIDATA_PARTS/part.description.en.$SORTED_EXTENSION",
+ " -p ';; ^en$' -o $WIKIDATA_PARTS/part.description.en.$SORTED_EXTENSION",
""
]
},
"source": [
"!$kgtk filter --verbose=$VERBOSE --regex",
" --use-mgzip $USE_MGZIP",
- " --subj lang",
+ " --obj lang",
" -i $WIKIDATA_PARTS/part.label.$SORTED_EXTENSION",
- " -p '^en$ ; ^alias$ ;$' -o $WIKIDATA_PARTS/part.label.en.$SORTED_EXTENSION",
+ " -p ';; ^en$' -o $WIKIDATA_PARTS/part.label.en.$SORTED_EXTENSION",
""
]
},
"source": [
"!$kgtk filter --verbose=$VERBOSE --regex",
" --use-mgzip $USE_MGZIP",
- " --subj lang",
+ " --obj lang",
" -i $WIKIDATA_PARTS/part.wikipedia_sitelink.$SORTED_EXTENSION",
- " -p '^en$ ; ^alias$ ;$' -o $WIKIDATA_PARTS/part.wikipedia_sitelink.en.$SORTED_EXTENSION",
+ " -p ';; ^en$' -o $WIKIDATA_PARTS/part.wikipedia_sitelink.en.$SORTED_EXTENSION",
""
]
},
