HTML property table extractor
Line 1: | Line 1: | ||
Property table extractor reads simple HTML fragments containing '''table''', '''tr''', and '''td''' elements and converts table content to single association. Extractor expects the table contains only two columns where first column contains property name and second the property value. Each property and property value are considered as an association role and association player of same association. If first line does not contain property value the line is considered as a association type. For example consider rather typical table | Property table extractor reads simple HTML fragments containing '''table''', '''tr''', and '''td''' elements and converts table content to single association. Extractor expects the table contains only two columns where first column contains property name and second the property value. Each property and property value are considered as an association role and association player of same association. If first line does not contain property value the line is considered as a association type. For example consider rather typical table | ||
+ | |||
+ | {| cellspacing="0" cellpadding="5" width="100%" background-color="transparent" border="1" | ||
+ | |- | ||
+ | | Republic of Finland | ||
+ | |- | ||
+ | | Capital | ||
+ | | Helsinki | ||
+ | |- | ||
+ | | Government | ||
+ | | Parliamentary democracy | ||
+ | |- | ||
+ | | Area | ||
+ | | 338,145 km2 | ||
+ | |- | ||
+ | | Population | ||
+ | | 5,297,316 | ||
+ | |} | ||
+ | |||
+ | When this table is processed with Property Table Extractor, it is for example dragged to Wandora's Drag and Drop extractor, an association results. This association has type '''Republic of Finland''' and contains four players '''Helsinki''', '''Parliamentary democracy''', '''338,145 km2''', and '''5,297,316'''. Respectively roles of players are '''Capital''', '''Goverment''', '''Area''', and '''Population'''. |
Revision as of 19:33, 5 November 2007
Property table extractor reads simple HTML fragments containing table, tr, and td elements and converts table content to single association. Extractor expects the table contains only two columns where first column contains property name and second the property value. Each property and property value are considered as an association role and association player of same association. If first line does not contain property value the line is considered as a association type. For example consider rather typical table
Republic of Finland | |
Capital | Helsinki |
Government | Parliamentary democracy |
Area | 338,145 km2 |
Population | 5,297,316 |
When this table is processed with Property Table Extractor, it is for example dragged to Wandora's Drag and Drop extractor, an association results. This association has type Republic of Finland and contains four players Helsinki, Parliamentary democracy, 338,145 km2, and 5,297,316. Respectively roles of players are Capital, Goverment, Area, and Population.