MediaWiki API result

This is the HTML representation of the JSON format. HTML is good for debugging, but is unsuitable for application use.

Specify the format parameter to change the output format. To see the non-HTML representation of the JSON format, set format=json.

See the complete documentation, or the API help for more information.

{
    "batchcomplete": "",
    "continue": {
        "gapcontinue": "Update_proposal_2008_08_17",
        "continue": "gapcontinue||"
    },
    "warnings": {
        "main": {
            "*": "Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/> for notice of API deprecations and breaking changes."
        },
        "revisions": {
            "*": "Because \"rvslots\" was not specified, a legacy format has been used for the output. This format is deprecated, and in the future the new format will always be used."
        }
    },
    "query": {
        "pages": {
            "8": {
                "pageid": 8,
                "ns": 0,
                "title": "Read Xdmf",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "== Reading XDMF Data ==\n\n[[Image:TwoHex.jpg]]\n\nThe following Xdmf XML file is a simple example of a Uniform Grid that contains two Hexahedron that share a face.\nThere are values centered at the nodes and at the cell centers. The values for geometry, connectivity, and scalars are\nall stored directly in the XML file.\n\n<source lang=\"xml\" line=\"1\">\n<?xml version=\"1.0\" ?>\n<!DOCTYPE Xdmf SYSTEM \"Xdmf.dtd\" []>\n<Xdmf>\n    <Domain>\n        <Grid Name=\"TestGrid\">\n            <Topology Type=\"Hexahedron\" NumberOfElements=\"2\" >\n                <DataItem Format=\"XML\" DataType=\"Float\"\n                          Dimensions=\"2 8\">\n                    0 1 7 6   3 4 10 9\n                    1 2 8 7   4 5 11 10\n                </DataItem>\n            </Topology>\n            <Geometry Type=\"XYZ\">\n                <DataItem Format=\"XML\" DataType=\"Float\" Precision=\"8\"\n                          Dimensions=\"4 3 3\">\n                    0.0   0.0   1.0\n                    1.0   0.0   1.0\n                    3.0   0.0   2.0\n                    \n                    0.0   1.0   1.0\n                    1.0   1.0   1.0\n                    3.0   2.0   2.0\n                    \n                    0.0   0.0   -1.0\n                    1.0   0.0   -1.0\n                    3.0   0.0   -2.0\n                    \n                    0.0   1.0   -1.0\n                    1.0   1.0   -1.0\n                    3.0   2.0   -2.0\n                </DataItem>\n            </Geometry>\n            <Attribute Name=\"NodeValues\" Center=\"Node\">\n                <DataItem Format=\"XML\" DataType=\"Float\" Precision=\"8\"\n                          Dimensions=\"4 3\" >\n                    100 200 300\n                    300 400 500\n                    300 400 500\n                    500 600 700\n                </DataItem>\n            </Attribute>\n            <Attribute Name=\"CellValues\" Center=\"Cell\">\n                <DataItem Format=\"XML\" DataType=\"Float\" Precision=\"8\"\n                          Dimensions=\"2\" >\n                    100 200\n                </DataItem>\n            </Attribute>\n        </Grid>\n    </Domain>\n</Xdmf>\n</source>\n\nThe XML is stored in the file \"MyGrid.xmf\". The following Python program demonstrated parsing the XML and\nretrieving the data values.\n\n<source lang=\"python\" line=\"1\">\n#! /usr/bin/env python\nfrom Xdmf import *\nreader = XdmfReader.New()\ndom = XdmfReader.read('MyGrid.xmf')\n# We now have a tree. Find the one and only Grid element\ngrid = dom.getUnstruturedGrid(0)\n\ntop = grid.GetTopology()\nprint 'Values = ', top.getValuesString()\n# Release values from data when done\ntop.release()\n\ngeo = grid.GetGeometry()\nprint 'Geo Type = ', geo.getType().getName(), ' # Points = ', geo.getNumberPoints()\nprint 'Points = ', geo.getValuesString()\ngeo.release()\n# for each Attribute, print Light Data and Values\nfor i in range(grid.getNumberAttributes()):\n    attr = grid.getAttribute(i)\n    print 'Attribute ', i, ' Name = ', attr.getName()\n    # Attribute HeavyData is not Updated by default\n    # there could potentially be many causing huge IO\n    attr.read()\n    print 'Values ', attr.getValuesString()\n    attr.release()\n</source>"
                    }
                ]
            },
            "11": {
                "pageid": 11,
                "ns": 0,
                "title": "Read from MySQL",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "== '''Accessing a MySQL DataBase''' ==\n\n<pre style=\"color: red\">Note SQL support was removed in xdmf 3.</pre>\n\nPartial support for reading data from a MySQL database is available.\nMySQL is treated as another HeavyData format like HDF5. Currently\ndatabase access is ReadOnly and is accessed by setting the '''Format''' of\nthe '''DataItem''' in XML equal to '''MySQL'''\n\n            <Attribute Name=\"Cell Centered Values\" Center=\"Cell\">\n                <DataItem Format=\"MySQL\"\n                    Server=\"localhost\"\n                    User=\"root\"\n                    DataBase=\"MnmiFromout\"\n                    Dimensions=\"3\"\n                    NumberType=\"Float\">\n                    <![CDATA[SELECT X FROM Locations WHERE Time < 0.21]]>\n                </DataItem>\n            </Attribute>\n\nA Valid SQL statement is placed in the CDATA of the DataItem. When the XdmfDataItem is\nupdated, an atomic query is made and the result is placed in the XdmfArray of the DataItem.\nPutting a \"<\" (less than) in the CDATA will cause an error in the XML parser. The XML example\nabove shows how to do this correctly.\n\nThe Server, User, and DataBase attributes tell Xdmf how to access MySQL. There is also\na Password attribute. Currently this is just clear text which is a really bad idea. This\nwill change."
                    }
                ]
            }
        }
    }
}