> In DBpedia there are two resources - one for Hokkaido Prefecture > [http://dbpedia.org/resource/Hokkaido] and one for Hokkiado Island > [http://dbpedia.org/resource/Hokkaido__island__1] - extracted from the very > same Wikipedia page [https://en.wikipedia.org/wiki/Hokkaido]. > I assume this results from the two infoboxes - Infobox Prefecture Japan and > Infobox islands - contained in the page.
A second mapped template in the same page is supposed to add statements to the same resource, Unless you use IntermediateNodeMapping. > two separate entities in the real world: > ontologically Hokkaido Prefecture and Hokkiado Island But this is not modeled in the mapping of Island, which is an independent mapping. Putting two templates on a page does NOT necessarily mean you're describing different entities. There are some templates (e.g. Listen) that are dedicated to describing a subsidiary entity (in this case, a Sound recording about the subject). If you're dealing with such a template, you should use IntermediateNodeMapping and connect it to the main node. E.g. see http://mappings.dbpedia.org/index.php?title=Mapping_en:Listen&action=edit But that's not your case. The same problem holds for other pages. The following come from templates "Food stub" and "Prepared food stub". Their mappings merely add type dbo:Food (and dbo:Cheese, etc): Saloio__Cheese-stub__1 Wok_with_Yan__Food-stub__1 Mettwurst__Meat-stub__1 However: - http://dbpedia.org/page/Saloio doesn't have dbo:Food and dbo:Cheese - http://dbpedia.org/page/Saloio__Cheese-stub__1 has only types, and no connection to the main subject. Would you like to post a bug to https://github.com/dbpedia/extraction-framework/issues/new ? -------- On the other hand, the following must be modeled as separate entities: Wines made by a particular Winery Dalton_Winery__Red_canaan__1 Dalton_Winery__White_canaan__1 Dalton_Winery__Cabernet_Sauvignon__1 Dalton_Winery__Shiraz__1 Dalton_Winery__Merlot__1 See http://live.dbpedia.org/page/Dalton_Winery__Red_canaan__1 and http://live.dbpedia.org/page/Dalton_Winery. But here we face a conundrum: {{Infobox beverage}} is surely applied to a number of independent pages; but in https://en.wikipedia.org/w/index.php?title=Dalton_Winery&action=edit it's used several times to make the separate wines. So we need new extraction functionality: "If this template is first on a page, apply a normal (top-level) mapping. Else apply IntermediateNodeMapping". Posted https://github.com/dbpedia/extraction-framework/issues/410 ------------------------------------------------------------------------------ _______________________________________________ Dbpedia-developers mailing list Dbpedia-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dbpedia-developers