User:Jimregan: Difference between revisions
From Mediawiki1
Jump to navigationJump to search
m (foo) |
m (stick the recipe here so I don't have to rely on shell history) |
||
Line 1: | Line 1: | ||
<pre> | |||
wget http://downloads.dbpedia.org/3.6/ca/infobox_properties_ca.nq.bz2 | |||
bzgrep 'http://dbpedia.org/property/wikiPageUsesTemplate' infobox_properties_ca.nq.bz2 |awk '{print $3}'|sort -n| uniq -c|sort -nr > ca-templates | |||
cat ca-templates |awk '$1>49{print " " $0}'|sed -e 's/<http:\/\/dbpedia.org\/resource\/Template:/[[Mapping_ca:/'|sed -e 's/>/]]/' > ca-mappings | |||
</pre> | |||
[[User:Jimregan/pl.wikipedia]] | [[User:Jimregan/pl.wikipedia]] | ||
[[User:Jimregan/ca.wikipedia]] |
Revision as of 14:47, 22 April 2011
wget http://downloads.dbpedia.org/3.6/ca/infobox_properties_ca.nq.bz2 bzgrep 'http://dbpedia.org/property/wikiPageUsesTemplate' infobox_properties_ca.nq.bz2 |awk '{print $3}'|sort -n| uniq -c|sort -nr > ca-templates cat ca-templates |awk '$1>49{print " " $0}'|sed -e 's/<http:\/\/dbpedia.org\/resource\/Template:/[[Mapping_ca:/'|sed -e 's/>/]]/' > ca-mappings