kgdata.wikipedia.models.linked_html_table#

Classes

LinkedHTMLTable(table, links)

WikiLink(start, end, wikipedia_url[, ...])

class LinkedHTMLTable(table: 'Table', links: 'Dict[Tuple[int, int], List[WikiLink]]')[source]#

Bases: object

Parameters:
table: Table#
to_json() bytes[source]#
Return type:

bytes

static from_json(s: Union[str, bytes]) LinkedHTMLTable[source]#
Parameters:

s (Union[str, bytes]) –

Return type:

LinkedHTMLTable

Bases: object

Parameters:
start: int#
end: int#
wikipedia_url: str#
wikidata_id: Optional[str] = None#
to_dict() dict[source]#
Return type:

dict

static from_dict(o: dict)[source]#
Parameters:

o (dict) –