Résultat de l’API de MediaWiki

Voici la représentation HTML du format JSON. HTML convient au débogage, mais est inapproprié pour être utilisé dans une application.

Spécifiez le paramètre format pour modifier le format de sortie. Pour voir la représentation non HTML du format JSON, mettez format=json.

Voir la documentation complète, ou l’aide de l’API pour plus d’informations.

{
    "batchcomplete": "",
    "query": {
        "normalized": [
            {
                "from": "Main_Page",
                "to": "Main Page"
            }
        ],
        "pages": {
            "40": {
                "pageid": 40,
                "ns": 0,
                "title": "Main Page",
                "cirrusdoc": [
                    {
                        "index": "db9910120150926-02100__content_first",
                        "type": "page",
                        "id": "40",
                        "version": [],
                        "source": {
                            "version": 51113,
                            "wiki": "DB9910120150926-02100_",
                            "namespace": 0,
                            "namespace_text": "",
                            "title": "Main Page",
                            "timestamp": "2022-10-26T15:29:23Z",
                            "create_timestamp": "2015-01-20T17:23:35Z",
                            "category": [
                                "Sandbox"
                            ],
                            "external_link": [
                                "https://www.semantic-mediawiki.org",
                                "https://www.semantic-mediawiki.org/wiki/Content,_page_and_user_language",
                                "https://www.semantic-mediawiki.org/wiki/Localization_and_multilingual_content",
                                "https://www.semantic-mediawiki.org/wiki/Help:Special_properties"
                            ],
                            "outgoing_link": [
                                "Attribut:Property_description",
                                "Attribut:Has_type",
                                "Attribut:Has_URL",
                                "Attribut:Has_annotation_uri",
                                "Attribut:Has_area",
                                "Attribut:Has_boolean",
                                "Attribut:Has_code",
                                "Attribut:Has_coordinates",
                                "Attribut:Has_date",
                                "Attribut:Has_email",
                                "Attribut:Has_keyword",
                                "Attribut:Has_monolingual_text",
                                "Attribut:Has_number",
                                "Attribut:Has_page",
                                "Attribut:Has_precise_number",
                                "Attribut:Has_record",
                                "Attribut:Has_status",
                                "Attribut:Has_telephone_number",
                                "Attribut:Has_temperature",
                                "Attribut:Has_text",
                                "Attribut:Has_wattage",
                                "Attribut:Has_page_fixed",
                                "Attribut:Has_text_fixed",
                                "Attribut:Foaf:homepage",
                                "Attribut:Foaf:knows",
                                "Attribut:Foaf:name",
                                "Berlin",
                                "Athens",
                                "London",
                                "Lorem_ipsum",
                                "Lorem_ipsum_Export",
                                "Recurring_events",
                                "Subobject",
                                "Transclusion/Embedded",
                                "Export",
                                "How_to_create_a_quality_example",
                                "John_Doe",
                                "Cat\u00e9gorie:Examples",
                                "Cat\u00e9gorie:Tutorials"
                            ],
                            "template": [
                                "Mod\u00e8le:Welcome",
                                "Mod\u00e8le:Video",
                                "Mod\u00e8le:Nobreadcrumblinks"
                            ],
                            "text": "Welcome This \"sandbox wiki\" allows you to carry out experiments and to try your \"Semantic MediaWiki\" (SMW) skills. Note that the language of this wiki is set to French (fr). If you are looking for information about Semantic MediaWiki, see https://www.semantic-mediawiki.org. Please do not add material that is any way offensive, that is copyrighted, or that is at all libelous. Content added here may be cleared at any time. A list of available extensions can be found here. If you have encountered an issue and you would like to make that observation public to other participants then please have a look at the help page on \"How to create a quality example\". This wiki uses \"French\" as its global content language (site language) for the purpose of testing different solutions in connection with localization and multilingual content aspects. If you are adding examples where numbers contain . as decimal yet French expects , as separator, the simple solution is to let the individual page know that you are writing in English (or any other language, see the Berlin page for more information on how to change the page content language). Athens, Berlin, London, Lorem ipsum, Lorem ipsum Export, Recurring events, Subobject, Transclusion/Embedded demonstrate the usage of in-text annotations for most user-defined properties. John Doe shows to usage of imported vocabularies. Export collects pages that can be exported via Special:Export Category:Examples Category:Tutorials",
                            "source_text": "{{Welcome}}\n<div style=\"position:relative; margin: 15px 0 0.5em 1em; border-collapse: collapse; background: #fff; float: right; clear: right; width: 250px; \">\n<div>\n{{Video\n |provider=YouTube\n |description=Semantic MediaWiki for Beginners\n |id=1CaNJLsAI2A\n |type=Tutorial video\n}}\n</div>\n<div>\n{{Video\n |provider=YouTube\n |description=Semantic MediaWiki for Beginners\n |id=N5rlX9yCqDo\n |type=Tutorial video\n}}\n</div>\n</div>\n== How to create a quality example? ==\nIf you have encountered an issue and you would like to make that observation public to other participants then please have a look at the help page on \"[[How to create a quality example]]\".\n\n== Localization and multilingual content ==\nThis wiki uses \"French\" as its global [https://www.semantic-mediawiki.org/wiki/Content,_page_and_user_language content language] (site language) for the purpose of testing different solutions in connection with [https://www.semantic-mediawiki.org/wiki/Localization_and_multilingual_content localization and multilingual content] aspects.\n\nIf you are adding examples where numbers contain <code>.</code> as decimal yet French expects <code>,</code> as separator, the simple solution is to let the individual page know that you are writing in English (or any other language, see the [[Berlin]] page for more information on how to change the page content language). \n\n== Sample pages ==\n* '''{{#ask: [[Category:Main Page sample pages|+depth=0]] }}''' demonstrate the usage of in-text annotations for most user-defined properties. \n* '''[[John Doe]]''' shows to usage of imported vocabularies. \n* [[Export]] collects pages that can be exported via [[Special:Export]]\n\n=== Extension related examples and tutorials ===\n* [[:Category:Examples]]\n* [[:Category:Tutorials]]\n\n== Sandbox provided user-defined properties ==\n{{#ask:\n [[Property:+]]\n [[Category:Lorem ipsum]]\n |?Has property description=Description |+lang=en\n |?Has type=Datatype\n |mainlabel=Property\n |format=broadtable\n |class=smwtable-clean sortable\n}}\n\n== Sandbox provided user-defined fixed properties ==\n{{#ask:\n [[Property:+]]\n [[Category:Fixed property]]\n |?Has property description=Description |+lang=en\n |?Has type=Datatype\n |mainlabel=Property\n |format=broadtable\n |class=smwtable-clean sortable\n}}\n\n== Sandbox provided imported vocabulary ==\n{{#ask:\n [[Property:+]]\n [[Category:Imported vocabulary]]\n |?Has property description=Description |+lang=en\n |?Has type=Datatype\n |mainlabel=Property\n |format=broadtable\n |class=smwtable-clean sortable\n}}\n\n[[Category:Sandbox]]\n__SHOWFACTBOX__ {{Nobreadcrumblinks}}",
                            "text_bytes": 2568,
                            "content_model": "wikitext",
                            "language": "fr",
                            "heading": [
                                "How to create a quality example?",
                                "Localization and multilingual content",
                                "Sample pages",
                                "Extension related examples and tutorials",
                                "Sandbox provided user-defined properties",
                                "Sandbox provided user-defined fixed properties",
                                "Sandbox provided imported vocabulary"
                            ],
                            "opening_text": "Welcome This \"sandbox wiki\" allows you to carry out experiments and to try your \"Semantic MediaWiki\" (SMW) skills. Note that the language of this wiki is set to French (fr). If you are looking for information about Semantic MediaWiki, see https://www.semantic-mediawiki.org. Please do not add material that is any way offensive, that is copyrighted, or that is at all libelous. Content added here may be cleared at any time. A list of available extensions can be found here.",
                            "auxiliary_text": [
                                "Property Description\"Property description\" is a predefined property that allows to describe a property in context of a language and is provided by Semantic MediaWiki. Datatype\"Has type\" is a predefined property that describes the datatype of a property and is provided by Semantic MediaWiki. Has URL Used for the most common kinds of URLs, URNs, and URIs. It accepts almost any string and interprets it as a URL. URL Has annotation uri Used in cases where a URL property needs to be exported as an \"owl:AnnotationProperty\". It is a variant of datatype URL. Annotation-URI Has area Used for property values that describe quantities, in particular physical quantities such as time or distance. Quantit\u00e9 Has boolean Used if a property can only have two possible values (\"true\" or \"false\", also 1/0, yes/no, t/f, and y/n). Bool\u00e9en Has code Used to store strings of arbitrary length in a pre-formatted way such as source code listings. Is a variant of datatype text. Code Has coordinates Used to describe the geographic coordinate of some place. Coordonn\u00e9es g\u00e9ographiques Has date Used for data values that represent points in time. Date Has email Used for simple e-mail addresses. Adresse \u00e9lectronique Has keyword Used to store strings of restricted length in a normalized way. Is a variant of datatype text. Keyword Has monolingual text Used to store strings of arbitrary length and associates it with a specific language via an additionally required language code. Monolingual text Has number Used for property values that contain any kind of number, integer, decimal, and floating point numbers. Nombre Has page Used for properties whose value is a page in the wiki. These display as a link and may not be longer than 255 characters. Page Has precise number Used for property values that contain any kind of number, integer, decimal, and floating point numbers. Nombre Has record Used for property values that consist of a short list of values of other datatypes where individual value are separated with semicolons (;). Enregistrement Has status Used in combination with a special property to limit allowed values for this property. Texte Has telephone number Used for international telephone numbers that are to be stored in a standardized format. Num\u00e9ro de t\u00e9l\u00e9phone Has temperature Used for temperature values. Unlike other physical quantities, temperature is specified as special quantity type. Temp\u00e9rature Has text Used to store strings of arbitrary length. Texte Has wattage Used for quantity property values that are displayed in kW but in support for several units. Quantit\u00e9",
                                "Property Description\"Property description\" is a predefined property that allows to describe a property in context of a language and is provided by Semantic MediaWiki. Datatype\"Has type\" is a predefined property that describes the datatype of a property and is provided by Semantic MediaWiki. Has page fixed Used for properties whose value is a page in the wiki. These display as a link and may not be longer than 255 characters. Stored in a dedicated database table. Page Has text fixed Used to store strings of arbitrary length in a dedicated database table. Texte",
                                "Property Description\"Property description\" is a predefined property that allows to describe a property in context of a language and is provided by Semantic MediaWiki. Datatype\"Has type\" is a predefined property that describes the datatype of a property and is provided by Semantic MediaWiki. Foaf:homepage Holds the URL of the homepage of something, which is a general web resource to learn more about a topic. URL Foaf:knows Holds information describing the relationship between one person to another that he or she knows. Page Foaf:name Holds the name for someone or something. Texte"
                            ],
                            "display_title": null,
                            "redirect": [
                                {
                                    "namespace": 0,
                                    "title": "Accueil"
                                },
                                {
                                    "namespace": 0,
                                    "title": "Hauptseite"
                                }
                            ],
                            "incoming_links": 2
                        }
                    }
                ]
            }
        }
    }
}