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": "",
    "query": {
        "pages": [
            {
                "ns": 0,
                "title": "API",
                "missing": ""
            },
            {
                "pageid": 1,
                "ns": 0,
                "title": "Main Page",
                "revisions": [
                    {
                        "user": "SebastianHellmann",
                        "timestamp": "2019-07-10T13:43:05Z",
                        "slots": {
                            "main": {
                                "contentmodel": "wikitext",
                                "contentformat": "text/x-wiki",
                                "*": "== DBpedia Mappings Wiki ==\n\nIn this DBpedia Mappings Wiki you can help to enhance the information in DBpedia. The DBpedia Extraction Framework uses the mappings defined here to homogenize information extracted from Wikipedia before generating structured information in [http://en.wikipedia.org/wiki/Resource_Description_Framework RDF].\n\nAnybody can help by editing:\n* the [[How_to_edit_the_DBpedia_Ontology|DBpedia ontology schema]] (classes, properties, datatypes)\n* the [[How_to_edit_DBpedia_Mappings|DBpedia infobox-to-ontology mappings]]\n\nMappings can be written for a variety of languages, connecting multiligual information to a language-independent unified ontology schema (language-specific labels can be provided [[How_to_edit_the_DBpedia_Ontology|there]]).\n\n\n== Mapping Example ==\nThis is how you write a simple infobox mapping.\n\n'''Mapping:Infobox_actor'''\n<pre>\n{{TemplateMapping \n| mapToClass = Actor \n| mappings = \n   {{ PropertyMapping | templateProperty = name | ontologyProperty = foaf:name }}\n   {{ PropertyMapping | templateProperty = birth_place | ontologyProperty = birthPlace }}\n}}\n</pre> \n\nThis mapping extracts three information bits:\n# the type information (Actor)\n# the name of the actor\n# the actor's place of birth.\n\nTherefore, three RDF triples for each Infobox_actor in the English Wikipedia are extracted. For example for [http://en.wikipedia.org/w/index.php?title=Vince_Vaughn&oldid=437756176 Vince Vaughn]\n<pre>\ndbpedia:Vince_Vaughn  rdf:type                dbpedia-owl:Actor   .\ndbpedia:Vince_Vaughn  foaf:name               \"Vince Vaughn\"@en   .\ndbpedia:Vince_Vaughn  dbpedia-owl:birthPlace  dbpedia:Minneapolis .\n</pre>\n\n\n== Detailed Information ==\n* Check the '''[[Mapping Guide]]''' that defines the best practices for how to write clean, efficient mappings that extract lots of high-quality data\n* Take a look at the '''[[Mapping_Statistics|Mapping Statistics]]''' to search for relevant infoboxes to map.\n* '''[[How_to_edit_the_DBpedia_Ontology|How to edit the DBpedia ontology]]'''\n* '''[[How_to_edit_DBpedia_Mappings|How to edit infobox and table mappings]]'''\n* [[Use the DBpedia Extraction Framework]] to extract structured data\n\n== Prerequisites ==\nIf you would like to edit the mappings or ontology schema this is what you need:\n* a user account on this wiki (''[[Special:UserLogin|login/sign up]]'')\n* editor rights: application for editor rights is done by:\n** register for http://forum.dbpedia.org\n** ask for editor rights [https://forum.dbpedia.org/t/mappings-wiki-accounts/38 here]. Include your user name in the message and a short introduction of yourself.\n* a namespace for the language you want to write mappings for\n** if the namespace does not exist already (see the left side bar) please request it at [mailto:dbpedia-discussion@lists.sourceforge.net dbpedia-discussion@lists.sourceforge.net]\n* If you will contribute frequently, get a Github account (see below)\n\n== Editorial Process ==\nA significant quality problem until 2015 was that there was neither bug tracking nor discussion on the best approaches. A major strength of Wikipedia and Wikidata is that editors are in constant discussion and there are established editorial processes. Such were missing on this mapping wiki, and it is our collective task to rectify the situation. If you find a problem:\n* Post a new issue to one of the following trackers, depending on the nature of the issue:\n** Mapping: https://github.com/dbpedia/mappings-tracker/issues\n** Ontology: https://github.com/dbpedia/ontology-tracker/issues\n** Extraction framework: https://github.com/dbpedia/extraction-framework/issues\n* Edit the corresponding Discussion page (of the mapping or ontology element):\n** Describe the problem in detail. The reason to do it here and not in Github is so that we have most of the info in one place\n** Provide a link to the issue\n** Propose a solution if you'd like\n\n== Best Practices ==\nIf you write a best practice, list it here:\n* [[Mapping Guide]] (thorough)\n* [http://vladimiralexiev.github.io/pres/20150209-dbpedia/add-mapping.html Adding a Mapping] (shorter)\n* [[Main Page#Editorial Process]]\n* [[Main Page#Testing Best Practices]]\n\nFocused investigations of massive problems that require discussion, fixes to many props/templates, documenting a pattern:\n* [[What's in a Name]]\n* [[Connecting Places]] [https://github.com/dbpedia/mappings-tracker/issues/29 #29]\n* [[Agent Relations]]\n\n== Testing Best Practices ==\nWhenever we find or fix a problem, we should have some test cases for it. This serves many important purposes:\n* to illustrate the problem\n* as proof it works after the problem is fixed\n* to provide test cases for any bugs in the extraction framework (upstream bug reporting)\n\nEvery infobox mapping has a link \"test this mapping\", eg\n* http://mappings.dbpedia.org/server/mappings/fr/extractionSamples/Mapping_fr:Infobox_Ville_de_Serbie\n\nUnfortunately this works mostly for EN dbpedia, see bug [https://github.com/dbpedia/extraction-framework/issues/289 #289]. But you can still test per resource, eg\n* http://mappings.dbpedia.org/server/extraction/fr/extract?title=Po\u017eega_(Serbie)&revid=&format=turtle-triples\n* http://mappings.dbpedia.org/server/extraction/bg/extract?title=\u041b\u0438\u043b\u0438+\u0418\u0432\u0430\u043d\u043e\u0432\u0430&revid=&format=turtle-triples\n\nThis is even better because it provides specific test cases. \nAlso provide a link to the corresponding wiki pages in edit mode, so the markup can be seen immediately.\nAdd these to the mapping's Discussion page.\n\nEg on [[Mapping fr talk:Infobox Ville de Serbie]] we have:\n* Testing:\n** page: https://fr.wikipedia.org/w/index.php?title=Po\u017eega_(Serbie)&action=edit\n** result: http://mappings.dbpedia.org/server/extraction/fr/extract?title=Po\u017eega_(Serbie)&revid=&format=turtle-triples\n\nWe've asked the developers to add UTF-8 encoding [https://github.com/dbpedia/extraction-framework/issues/304 #304], which will make it easier to inspect the output. Else you need to save it to file and open it in a proper editor.\n\n=== Custom or Default Extractor ===\nThe above URLs use the default extractor, which extracts only labels and mappings. This is probably what you need for testing, since you're debugging the mapped triples, right?\nIf you want to see more triples, add \"&extractors=custom\" to the URL. This runs all available extractors.\nBut there is a limit in the extraction samples (1000 triples?) so for big articles this may not return all expected triples.\n\nLet's illustrate with Elvis Presley: [http://mappings.dbpedia.org/server/extraction/en/extract?title=Elvis_Presley&revid=&format=turtle-triples&extractors=custom custom] 921 triples, [http://mappings.dbpedia.org/server/extraction/en/extract?title=Elvis_Presley&revid=&format=turtle-triples default] 118 triples.\nSo the limit is not reached in this case.\n\n=== Copy IRIs not URL-encoded ===\nThe URLs above use non-ASCII characters, so they are '''International''' Resource Identifiers (IRIs).\nThese are readable and allow a user to see what they represent.\nBut when you copy from the browser's address box, an IRI is URL-encoded to an unreadable ugliness like:\n* http://mappings.dbpedia.org/server/extraction/fr/extract?title=Po%C5%BEega_(Serbie)&revid=&format=turtle-triples\n* http://mappings.dbpedia.org/server/extraction/bg/extract?title=%D0%9B%D0%B8%D0%BB%D0%B8+%D0%98%D0%B2%D0%B0%D0%BD%D0%BE%D0%B2%D0%B0&revid=&format=turtle-triples\n\nThe browsers do that for obscure historical reasons.\nPlease be kind to your fellow editors and use an addon that preserves IRIs, eg:\n* Chrome addon: [https://chrome.google.com/webstore/detail/copy-url/mkhnbhdofgaendegcgbmndipmijhbili Copy URL]\n\nIf you don't have such, you can use this trick:\n* Copy everything but the first letter \"m\"\n* Paste, then add the missing letter \"m\" (or \"http://m\").\n\n=== Domain Validation ===\nThe [http://mappings.dbpedia.org/validation/index.html Domain Validation service] generates a list of domain exceptions, updating it daily.\nFor more information please refer to A. Dimou, D. Kontokostas, M. Freudenberg, R. Verborgh, J. Lehmann, E. Mannens, S. Hellmann, and R. Van de Walle. [http://jens-lehmann.org/files/2015/iswc_rml_rdfunit.pdf Assessing and refining mappings to rdf to improve dataset quality]. In Proceedings of the 14th International Semantic Web Conference, Oct. 2015.\n\nFor each '''predicate''' used in a '''mapping''', it shows the '''expected''' domain class (defined for the predicate) and '''existing''' class (corresponding to that mapping).\nPlease filter for your language (the first column) and correct as many errors as you can:\n* Make the '''existing''' class into a subclass of '''expected''', OR\n* Correct (usually raise) the domain of '''predicate''', OR\n* Correct the '''mapping''' to use the expected mapToClass\n\nIn all cases, ''document'' the property according to the changes you made! You can see some examples of such changes in this [http://mappings.dbpedia.org/index.php?limit=50&tagfilter=&title=Special%3AContributions&contribs=user&target=VladimirAlexiev&namespace=&year=2015&month=8 list of contributions]\n\n== That's it! ==\nThat is all you need to kick-start. Your contributions will be available:\n* in the [http://live.dbpedia.org/ DBpedia Live] end point shortly after your edit (currently only for English)\n* in the next [http://dbpedia.org/downloads DBpedia datasets] release\n\n''Happy mapping!''\n\n== About DBpedia ==\nTo learn more about DBpedia itself visit http://dbpedia.org/About."
                            }
                        },
                        "comment": "/* Prerequisites */"
                    }
                ]
            }
        ]
    }
}