r62270 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r62269‎ | r62270 | r62271 >
Date:22:04, 10 February 2010
Author:daniel
Status:deferred
Tags:
Comment:
bio-daten
Modified paths:
  • /trunk/WikiWord/WikiWordBuilder/src/main/java/de/brightbyte/wikiword/wikis/WikiConfiguration_enwiki.java (modified) (history)
  • /trunk/WikiWord/WikiWordProperties/src/main/java/de/brightbyte/wikiword/biography/wikis/WikiConfiguration_enwiki.java (modified) (history)

Diff [purge]

Index: trunk/WikiWord/WikiWordProperties/src/main/java/de/brightbyte/wikiword/biography/wikis/WikiConfiguration_enwiki.java
@@ -41,32 +41,43 @@
4242
4343 Pattern defaultSplitPattern = Pattern.compile("[,;/]\\s+|<br\\s*/?>");
4444
45 - propertyExtractors.add( new TemplateParameterExtractor(new ExactNameMatcher("Infobox_Artist"),
 45+ propertyExtractors.add( new TemplateParameterExtractor(new PatternNameMatcher("Infobox_[Aa]rtist|Infobox_comics_creator", 0, true),
4646 new DefaultTemplateParameterPropertySpec("name", "person-name").setStripMarkup(true),
4747 new DefaultTemplateParameterPropertySpec("birthname", "person-name").setStripMarkup(true),
4848 new DefaultTemplateParameterPropertySpec("birthdate", "person-birth-date").setStripMarkup(true),
4949 new DefaultTemplateParameterPropertySpec("birthplace", "person-birth-place").setStripMarkup(true),
5050 new DefaultTemplateParameterPropertySpec("location", "person-birth-place").setStripMarkup(true),
5151 new DefaultTemplateParameterPropertySpec("deathdate", "person-death-date").setStripMarkup(true),
 52+ new DefaultTemplateParameterPropertySpec("yod", "person-death-date").setStripMarkup(true),
5253 new DefaultTemplateParameterPropertySpec("deathplace", "person-death-place").setStripMarkup(true),
 54+ new DefaultTemplateParameterPropertySpec("yod", "person-death-place").setStripMarkup(true),
5355 new DefaultTemplateParameterPropertySpec("nationality", "person-nationality").setStripMarkup(true),
5456 new DefaultTemplateParameterPropertySpec("field", "artist-group").setStripMarkup(true).setSplitPattern(defaultSplitPattern),
5557 new DefaultTemplateParameterPropertySpec("movement", "artist-group").setStripMarkup(true).setSplitPattern(defaultSplitPattern),
5658 new DefaultTemplateParameterPropertySpec("training", "artist-training").setStripMarkup(true),
57 - new DefaultTemplateParameterPropertySpec("award", "artist-award").setStripMarkup(true).setSplitPattern(defaultSplitPattern)
 59+ new DefaultTemplateParameterPropertySpec("award", "artist-award").setStripMarkup(true).setSplitPattern(defaultSplitPattern),
 60+ new DefaultTemplateParameterPropertySpec("location", "person-nationality").setStripMarkup(true)
5861 ) );
5962
60 - propertyExtractors.add( new TemplateParameterExtractor(new PatternNameMatcher("Infobox_(((Medical|Military)_)?[Pp]erson|Actor|Astronaut|Criminal|Engineer|Musical_artist|Philosopher|Pope|ReligiousBio|Scientist)", 0, true),
 63+ propertyExtractors.add( new TemplateParameterExtractor(new PatternNameMatcher("Infobox_(((Medical|Military)_)?[Pp]erson|Actor|Astronaut|Criminal|Engineer|Musical_artist|Philosopher|Pope|ReligiousBio|Scientist|.*_creator|.*_artist)", 0, true),
6164 new DefaultTemplateParameterPropertySpec("name", "person-name").setStripMarkup(true),
6265 new DefaultTemplateParameterPropertySpec("other_names", "person-name").setStripMarkup(true),
 66+ new DefaultTemplateParameterPropertySpec("birth_name", "person-name").setStripMarkup(true),
 67+ new DefaultTemplateParameterPropertySpec("birthname", "person-name").setStripMarkup(true),
6368 new DefaultTemplateParameterPropertySpec("birth_date", "person-birth-date").setStripMarkup(true),
 69+ new DefaultTemplateParameterPropertySpec("yob", "person-birth-date").setStripMarkup(true),
6470 new DefaultTemplateParameterPropertySpec("birth_place", "person-birth-place").setStripMarkup(true),
 71+ new DefaultTemplateParameterPropertySpec("birthplace", "person-birth-place").setStripMarkup(true),
6572 new DefaultTemplateParameterPropertySpec("death_date", "person-death-date").setStripMarkup(true),
 73+ new DefaultTemplateParameterPropertySpec("yod", "person-death-date").setStripMarkup(true),
6674 new DefaultTemplateParameterPropertySpec("death_place", "person-death-place").setStripMarkup(true),
 75+ new DefaultTemplateParameterPropertySpec("deathplace", "person-death-place").setStripMarkup(true),
6776 new DefaultTemplateParameterPropertySpec("occupation", "person-occupation").setStripMarkup(true),
6877 new DefaultTemplateParameterPropertySpec("known_for", "person-known-for").setStripMarkup(true),
 78+ new DefaultTemplateParameterPropertySpec("notable works", "person-known-for").setStripMarkup(true),
6979 new DefaultTemplateParameterPropertySpec("nationality", "person-nationality").setStripMarkup(true),
7080 new DefaultTemplateParameterPropertySpec("residence", "person-nationality").setStripMarkup(true),
 81+ new DefaultTemplateParameterPropertySpec("location", "person-nationality").setStripMarkup(true),
7182 new DefaultTemplateParameterPropertySpec("citizenship", "person-nationality").setStripMarkup(true)
7283 ) );
7384
Index: trunk/WikiWord/WikiWordBuilder/src/main/java/de/brightbyte/wikiword/wikis/WikiConfiguration_enwiki.java
@@ -151,7 +151,7 @@
152152 conceptTypeSensors.add( new HasTemplateSensor<ConceptType>(ConceptType.PLACE, "Geobox"));
153153
154154 conceptTypeSensors.add( new HasCategoryLikeSensor<ConceptType>(ConceptType.PERSON, "^(Male|Female|People)_|_(people|men|women|births|deaths)$", 0));
155 - conceptTypeSensors.add( new HasTemplateLikeSensor<ConceptType>(ConceptType.PERSON, "^(Persondata|Lifetime|BD|BIRTH-DEATH-SORT)$", 0));
 155+ conceptTypeSensors.add( new HasTemplateLikeSensor<ConceptType>(ConceptType.PERSON, "^(Persondata|Lifetime|BD|BIRTH-DEATH-SORT|Infobox.*_(person|[aA]rtist|creator|writer|musician|biography|clergy|scientist))$", 0));
156156
157157 conceptTypeSensors.add( new HasCategorySensor<ConceptType>(ConceptType.NAME, "Given_names"));
158158 conceptTypeSensors.add( new HasCategorySensor<ConceptType>(ConceptType.NAME, "Surnames"));

Status & tagging log