DotNetWikiBot Framework Documentation
Assembly: DotNetWikiBot (in DotNetWikiBot.dll) Version: 0.0.0.0
Returns XElement object or null.
For pages that have associated items on
Wikidata.org this function returns
XElement object with all information provided by Wikidata.
If page is not associated with a Wikidata item null is returned.
Namespace: DotNetWikiBotAssembly: DotNetWikiBot (in DotNetWikiBot.dll) Version: 0.0.0.0
Syntax
C# |
---|
public XElement GetWikidataItem() |
Return Value
Type: XElementReturns XElement object or null.
Examples
Copy | |
---|---|
Page p = new Page(enWikipedia, "Douglas Adams"); XElement wikidataItem = p.GetWikidataItem(); string description = (from desc in wikidataItem.Descendants("description") where desc.Attribute("language").Value == "en" select desc.Attribute("value").Value).FirstOrDefault(); |