Patterns must match the entire field.
"source": [
"!$kgtk filter --verbose=$VERBOSE --use-mgzip=$USE_MGZIP --regex \\\n",
" --input-file $WIKIDATA_PARTS/part.alias.$SORTED_EXTENSION \\\n",
- " -p ';; @en$' -o $WIKIDATA_PARTS/part.alias.en.$SORTED_EXTENSION"
+ " -p ';; ^.*@en$' -o $WIKIDATA_PARTS/part.alias.en.$SORTED_EXTENSION"
]
},
{
"source": [
"!$kgtk filter --verbose=$VERBOSE --use-mgzip=$USE_MGZIP --regex \\\n",
" --input-file $WIKIDATA_PARTS/part.description.$SORTED_EXTENSION \\\n",
- " -p ';; @en$' -o $WIKIDATA_PARTS/part.description.en.$SORTED_EXTENSION"
+ " -p ';; ^.*@en$' -o $WIKIDATA_PARTS/part.description.en.$SORTED_EXTENSION"
]
},
{
"source": [
"!$kgtk filter --verbose=$VERBOSE --use-mgzip=$USE_MGZIP --regex \\\n",
" --input-file $WIKIDATA_PARTS/part.label.$SORTED_EXTENSION \\\n",
- " -p ';; @en$' -o $WIKIDATA_PARTS/part.label.en.$SORTED_EXTENSION"
+ " -p ';; ^.*@en$' -o $WIKIDATA_PARTS/part.label.en.$SORTED_EXTENSION"
]
},
{
"source": [
"!$kgtk filter --verbose=$VERBOSE --use-mgzip=$USE_MGZIP --regex \\\n",
" --input-file $WIKIDATA_PARTS/part.claims.$SORTED_EXTENSION \\\n",
- " -p '^P ;;' -o $WIKIDATA_PARTS/part.property.$SORTED_EXTENSION"
+ " -p '^P.*$ ;;' -o $WIKIDATA_PARTS/part.property.$SORTED_EXTENSION"
]
},
{
"source": [
"!$kgtk filter --verbose=$VERBOSE --use-mgzip=$USE_MGZIP --regex \\\n",
" --input-file $WIKIDATA_PARTS/part.qual.$SORTED_EXTENSION \\\n",
- " -p '^P ;;' -o $WIKIDATA_PARTS/part.property.qual.$SORTED_EXTENSION"
+ " -p '^P.*$ ;;' -o $WIKIDATA_PARTS/part.property.qual.$SORTED_EXTENSION"
]
},
{
