Research:Understanding the context of citations in Wikipedia/Examples

{
  "raw_content": "",
  "templated": true,
  "cite_template": "",
  "urls": [],
  "identifiers": [],
  "name": "",
  "occurrences": [
     {
       "section": 0,
       "text_offset": 0,
       "preceding_text": "",
       "succeeding_text": "",
       "header_level": 0,
       "header_text": "",
       "header_offset": 0,
       "level_2_text": "",
       "level_2_offset": 0
     }
  ]
}

Amy Klobuchar

edit

Working from 780939530. Two "references" are extracted.

<ref name=bio>{{cite web| author= Senate Web site| titl...
{
  "raw_content": "<ref name=bio>{{cite web| author= Senate Web site| title = U.S. Senator for Minnesota Amy Klobuchar: Biography| year = 2007| url= http://klobuchar.senate.gov/biography.cfm| accessdate= 2007-02-23|archiveurl = https://web.archive.org/web/20070221013430/http://klobuchar.senate.gov/biography.cfm |archivedate = February 21, 2007}}</ref>",
  "templated": true,
  "cite_template": "web",
  "urls": ["http://klobuchar.senate.gov/biography.cfm", "https://web.archive.org/web/20070221013430/http://klobuchar.senate.gov/biography.cfm"],
  "identifiers": [],
  "name": "bio"
  "occurrences": [
      {
        "section": 0,
        "text_offset": 200,
        "preceding_text": "tes Senate]].\n\nShe previously served as the [[county attorney]] for [[Hennepin County, Minnesota]], the most populous county in Minnesota. As an attorney, she worked with former [[Vice President of the United States|Vice President]] [[Walter Mondale]]",
        "succeeding_text": " She has been calld a "rising star" in the Democratic Party.<ref>{{Cite news|url=http://m.startribune.com/huffington-post-names-klobuchar-the-smartest-u-s-senator/87658327/?section=politics/blogs|title=Huffington Post names Klobuchar the smartest U.S",
        "header_level": 0,
        "header_text": "",
        "header_offset": 0,
        "level_2_text": "",
        "level_2_offset": 0
      },
      {
        "section": 1,
        "text_offset": 5834,
        "preceding_text": "e building of the [[Hubert H. Humphrey Metrodome]] in Minneapolis. Klobuchar served as an associate editor of the ''[[University of Chicago Law Review]]'' and received her [[Juris Doctor]] degree in 1985 from the [[University of Chicago Law School]].",
        "succeeding_text": "\n\n==Career==
After law school, Klobuchar worked as a corporate lawyer.<ref name=":0" /> Besides working as a prosecutor, Klobuchar was a partner at the Minnesota law firms Dorsey & Whitney and Gray Plant Mooty before seeking public office.<ref>{{Cite we",
        "header_level": 2,
        "header_text": "Early life and education",
        "header_offset": 3054,
        "level_2_text": "Early life and education",
        "level_2_offset": 3054
      }
  ]
}
<ref name="AK-Dome">{{cite book | last = Klobuchar | first = Amy...
{
  "raw_content": "<ref name=\"AK-Dome\">{{cite book | last = Klobuchar | first = Amy | title = Uncovering the Dome |date=April 1986 | publisher = Waveland Press | edition = reprint | isbn = 0-88133-218-6}}</ref>",
  "templated": true,
  "cite_template": "book",
  "urls": [],
  "identifiers": [{"isbn": "0-88133-218-6"}],
  "name": "AK-Dome"
  "occurrences": [
      {
        "section": 1,
        "text_offset": 5322,
        "preceding_text": "=The Audacity of Minnesota: Meet Senator Amy Klobuchar|last=DePaulo|first=Lisa|date=March 30, 2010|work=ELLE|access-date=May 14, 2017|archive-url=|archive-date=|dead-url=|language=en}}</ref> Her senior thesis was published as ''Uncovering the Dome'',",
        "succeeding_text": " a 150-page history describing the ten years of politics surrounding the building of the [[Hubert H. Humphrey Metrodome]] in Minneapolis. Klobuchar served as an associate editor of the ''[[University of Chicago Law Review]]'' and received her [[Juris"
        "header_level": 2,
        "header_text": "Early life and education",
        "header_offset": 3054,
        "level_2_text": "Early life and education",
        "level_2_offset": 3054
      }
  ]
}


The parsed results with mwrefs reference extractor are as follows:

<ref name=bio>{{cite web| author= Senate Web site| titl...
{
  "name": "bio",
  "raw_content": "<ref name=bio>{{cite web| author= Senate Web site| title = U.S. Senator for Minnesota Amy Klobuchar: Biography| year = 2007| url= http://klobuchar.senate.gov/biography.cfm| accessdate= 2007-02-23|archiveurl = https://web.archive.org/web/20070221013430/http://klobuchar.senate.gov/biography.cfm |archivedate = February 21, 2007}}</ref>",
  "templated": true,
  "cite_template": "cite web",
  "urls": [
    "http://klobuchar.senate.gov/biography.cfm|",
    "https://web.archive.org/web/20070221013430/http://klobuchar.senate.gov/biography.cfm"
  ],
  "identifiers": [],
  "occurrences": [
    {
      "section": 0,
      "text_offset": 2033,
      "preceding_text": "s Senate]].\n\nShe previously served as the [[county attorney]] for [[Hennepin County, Minnesota]], the most populous county in Minnesota. As an attorney, she worked with former [[Vice President of the United States|Vice President]] [[Walter Mondale]].",
      "succeeding_text": " She has been calld a \"rising star\" in the Democratic Party.<ref>{{Cite news|url=http://m.startribune.com/huffington-post-names-klobuchar-the-smartest-u-s-senator/87658327/?section=politics/blogs|title=Huffington Post names Klobuchar the smartest U.S",
      "header_level": 0,
      "header_text": null,
      "header_offset": null,
      "level_2_text": null,
      "level_2_offset": null
    },
    {
      "section": 1,
      "text_offset": 5872,
      "preceding_text": "e building of the [[Hubert H. Humphrey Metrodome]] in Minneapolis. Klobuchar served as an associate editor of the ''[[University of Chicago Law Review]]'' and received her [[Juris Doctor]] degree in 1985 from the [[University of Chicago Law School]].",
      "succeeding_text": "\n\n==Career==\nAfter law school, Klobuchar worked as a corporate lawyer.<ref name=\":0\" /> Besides working as a prosecutor, Klobuchar was a partner at the Minnesota law firms Dorsey & Whitney and Gray Plant Mooty before seeking public office.<ref>{{Cite",
      "header_level": 2,
      "header_text": "Early life and education",
      "header_offset": 3088,
      "level_2_text": "Early life and education",
      "level_2_offset": 3088
    }
  ]
}
<ref name="AK-Dome">{{cite book | last = Klobuchar | first = Amy...
{
  "name": "AK-Dome",
  "raw_content": "<ref name=\"AK-Dome\">{{cite book | last = Klobuchar | first = Amy | title = Uncovering the Dome |date=April 1986 | publisher = Waveland Press | edition = reprint | isbn = 0-88133-218-6}}</ref>",
  "templated": true,
  "cite_template": "cite book ",
  "urls": [],
  "identifiers": [
    [
      "isbn",
      "0881332186"
    ]
  ],
  "occurrences": [
    {
      "section": 1,
      "text_offset": 5360,
      "preceding_text": "=The Audacity of Minnesota: Meet Senator Amy Klobuchar|last=DePaulo|first=Lisa|date=March 30, 2010|work=ELLE|access-date=May 14, 2017|archive-url=|archive-date=|dead-url=|language=en}}</ref> Her senior thesis was published as ''Uncovering the Dome'',",
      "succeeding_text": " a 150-page history describing the ten years of politics surrounding the building of the [[Hubert H. Humphrey Metrodome]] in Minneapolis. Klobuchar served as an associate editor of the ''[[University of Chicago Law Review]]'' and received her [[Juris",
      "header_level": 2,
      "header_text": "Early life and education",
      "header_offset": 3088,
      "level_2_text": "Early life and education",
      "level_2_offset": 3088
    }
  ]
}

Angela Merkel

edit

Working from 781314233. Two "references" are extracted.

<ref>{{cite news|url=http://www.independent.co.uk/news/world/americas/
{		
  "raw_content": "<ref>{{cite news|url=http://www.independent.co.uk/news/world/americas/germany-us-president-donald-trump-honour-trade-agreements-rough-ride-eu-sigmar-gabriel-a7541676.html|title=Germany has 'given up' on Donald Trump acting like a President|date=23 January 2017|publisher=}}</ref>",
  "templated": true,
  "cite_template": "news",
  "urls": ["http://www.independent.co.uk/news/world/americas/germany-us-president-donald-trump-honour-trade-agreements-rough-ride-eu-sigmar-gabriel-a7541676.html"],
  "identifiers": []
  "ocurrences": [{
    "section": 2,
    "text_offset": 42291,
    "preceeding_text": "mber 2012|title=Enterprise policies|url= http://ec.europa.eu/enterprise/policies/international/files/tec_framework_en.pdf|publisher=[[European Council]]}}</ref> Merkel enjoyed good relations with US presidents [[George W. Bush]] and [[Barack Obama]].",
    "succeeding_text": "Obama described her in 2016 as his \"closest international partner\" throughout his tenure as President.<ref name=\"thelocal2016\">{{cite web|url=http://www.thelocal.de/20161115/obama-merkel-was-my-closest-ally|title=Obama: Merkel was my closest ally|da",
    "header_level": 1,
    "header_offset": 36152,
    "level_2_text": "Foreign Policy",
    "level_2_offset": 41405
  }]
}
<ref name="thelocal2016">{{cite web|url=http://www.thelocal.de/20161115/
{
  "raw_content": "<ref name=\"thelocal2016\">{{cite web|url=http://www.thelocal.de/20161115/obama-merkel-was-my-closest-ally|title=Obama: Merkel was my closest ally|date=15 November 2016|work=The Local}}</ref>",
  "templated": true,
  "cite_template": "web",
  "urls": ["http://www.thelocal.de/20161115/obama-merkel-was-my-closest-ally"],
  "identifiers": [],
  "name": "thelocal2016",
    "ocurrences": [{
      "section": 2,
      "text_offset": 42673,
      "preceeding_text": "h-ride-eu-sigmar-gabriel-a7541676.html|title=Germany has 'given up' on Donald Trump acting like a President|date=23 January 2017|publisher=}}</ref> Obama described her in 2016 as his \"closest international partner\" throughout his tenure as President.",
      "succeeding_text": "\\n\\nOn 25 September 2007, Merkel met the [[14th Dalai Lama]] for \"private and informal talks\" in the [[German Chancellery|Chancellery]] in Berlin amid protest from China. China afterwards cancelled separate talks with German officials, including talks",
      "header_level": 1,
      "header_offset": 36152,
      "level_2_text": "Foreign Policy",
      "level_2_offset": 41405
    }]
  }
}


The parsed results with mwrefs reference extractor are as follows:

<ref>{{cite news|url=http://www.independent.co.uk/news/world/americas/
{
  "name": null,
  "raw_content": "<ref>{{cite news|url=http://www.independent.co.uk/news/world/americas/germany-us-president-donald-trump-honour-trade-agreements-rough-ride-eu-sigmar-gabriel-a7541676.html|title=Germany has 'given up' on Donald Trump acting like a President|date=23 January 2017|publisher=}}</ref>",
  "templated": true,
  "cite_template": "cite news",
  "urls": [
    "http://www.independent.co.uk/news/world/americas/germany-us-president-donald-trump-honour-trade-agreements-rough-ride-eu-sigmar-gabriel-a7541676.html|title=Germany"
  ],
  "identifiers": [],
  "occurrences": [
    {
      "section": 7,
      "text_offset": 42291,
      "preceding_text": "mber 2012|title=Enterprise policies|url= http://ec.europa.eu/enterprise/policies/international/files/tec_framework_en.pdf|publisher=[[European Council]]}}</ref> Merkel enjoyed good relations with US presidents [[George W. Bush]] and [[Barack Obama]].",
      "succeeding_text": " Obama described her in 2016 as his \"closest international partner\" throughout his tenure as President.<ref name=\"thelocal2016\">{{cite web|url=http://www.thelocal.de/20161115/obama-merkel-was-my-closest-ally|title=Obama: Merkel was my closest ally|da",
      "header_level": 3,
      "header_text": "Foreign policy",
      "header_offset": 41404,
      "level_2_text": "Chancellor of Germany",
      "level_2_offset": 36151
    }
  ]
}
<ref name="thelocal2016">{{cite web|url=http://www.thelocal.de/20161115/
{
  "name": "thelocal2016",
  "raw_content": "<ref name=\"thelocal2016\">{{cite web|url=http://www.thelocal.de/20161115/obama-merkel-was-my-closest-ally|title=Obama: Merkel was my closest ally|date=15 November 2016|work=The Local}}</ref>",
  "templated": true,
  "cite_template": "cite web",
  "urls": [
    "http://www.thelocal.de/20161115/obama-merkel-was-my-closest-ally|title=Obama:"
  ],
  "identifiers": [],
  "occurrences": [
    {
      "section": 7,
      "text_offset": 42673,
      "preceding_text": "h-ride-eu-sigmar-gabriel-a7541676.html|title=Germany has 'given up' on Donald Trump acting like a President|date=23 January 2017|publisher=}}</ref> Obama described her in 2016 as his \"closest international partner\" throughout his tenure as President.",
      "succeeding_text": "\n\nOn 25 September 2007, Merkel met the [[14th Dalai Lama]] for \"private and informal talks\" in the [[German Chancellery|Chancellery]] in Berlin amid protest from China. China afterwards cancelled separate talks with German officials, including talks ",
      "header_level": 3,
      "header_text": "Foreign policy",
      "header_offset": 41404,
      "level_2_text": "Chancellor of Germany",
      "level_2_offset": 36151
    }
  ]
}