I'm trying to produce a template mapping to extract Football Player information from team pages and season pages. I have a start to this at:
http://mappings.dbpedia.org/index.php/Mapping:Football_squad_player The result I'm going for is (in Turtle) <http://dbpedia.org/resource/Everton_F.C.> dbpedia-owl:organisationMember [ dbpedia-owl:currentMember <http://dbpedia.org/resource/Landon_Donovan>; dbpedia-owl:squadNumber 9; dbpedia-owl:position "FW" ], [ dbpedia-owl:currentMember <http://dbpedia.org/resource/Tim_Cahill>; dbpedia-owl:squadNumber 17; dbpedia-owl:position "MF" ]. However, the TemplateMapping information states: The first template infobox on a page defines the type of this page, while further infobox templates will be extracted as instances of the corresponding types and own URIs. The template Infobox Automobile shall be mapped to the ontology class Automobile, while the template Infobox Automobile engine shall be mapped to the ontology class AutomobileEngine. The correspondence of the infobox template instances can be preserved by defining a correspondingClass and correspondingProperty on the Automobile instance pointing to the AutomobileEngine instance. Which means that I can't just use a TemplateMapping that contains an IntermediateNodeMapping (which was what I was trying to do, until I read the documentation). I can use TemplateMapping's correspondingClass/Property, but that inverts everything: [ dbpedia-owl:currentMember <http://dbpedia.org/resource/Landon_Donovan>; dbpedia-owl:squadNumber 9; dbpedia-owl:position "FW"; dbpedia-owl:team <http://dbpedia.org/resource/Everton_F.C.> ], [ dbpedia-owl:currentMember <http://dbpedia.org/resource/Tim_Cahill>; dbpedia-owl:squadNumber 17; dbpedia-owl:position "MF"; dbpedia-owl:team <http://dbpedia.org/resource/Everton_F.C.> ]. To me, the more correct way of doing this is that a SoccerClub has players, which is why I would prefer the first example. Is there any way to achieve this using the current mapping templates? Or is there anyway to tell the parsing engine that I'd like to parse a secondary template as a primary template? Bryan ------------------------------------------------------------------------------ RSA(R) Conference 2012 Mar 27 - Feb 2 Save $400 by Jan. 27 Register now! http://p.sf.net/sfu/rsa-sfdev2dev2 _______________________________________________ Dbpedia-discussion mailing list Dbpedia-discussion@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion