<mediawiki xmlns="http://www.mediawiki.org/xml/export-0.11/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mediawiki.org/xml/export-0.11/ http://www.mediawiki.org/xml/export-0.11.xsd" version="0.11" xml:lang="en">
  <siteinfo>
    <sitename>DBpedia Mappings</sitename>
    <dbname>dbpedia_mappings_wiki</dbname>
    <base>https://mappings.dbpedia.org/index.php/Main_Page</base>
    <generator>MediaWiki 1.39.4</generator>
    <case>first-letter</case>
    <namespaces>
      <namespace key="-2" case="first-letter">Media</namespace>
      <namespace key="-1" case="first-letter">Special</namespace>
      <namespace key="0" case="first-letter" />
      <namespace key="1" case="first-letter">Talk</namespace>
      <namespace key="2" case="first-letter">User</namespace>
      <namespace key="3" case="first-letter">User talk</namespace>
      <namespace key="4" case="first-letter">DBpedia Mappings</namespace>
      <namespace key="5" case="first-letter">DBpedia Mappings talk</namespace>
      <namespace key="6" case="first-letter">File</namespace>
      <namespace key="7" case="first-letter">File talk</namespace>
      <namespace key="8" case="first-letter">MediaWiki</namespace>
      <namespace key="9" case="first-letter">MediaWiki talk</namespace>
      <namespace key="10" case="first-letter">Template</namespace>
      <namespace key="11" case="first-letter">Template talk</namespace>
      <namespace key="12" case="first-letter">Help</namespace>
      <namespace key="13" case="first-letter">Help talk</namespace>
      <namespace key="14" case="first-letter">Category</namespace>
      <namespace key="15" case="first-letter">Category talk</namespace>
      <namespace key="200" case="first-letter">OntologyClass</namespace>
      <namespace key="201" case="first-letter">OntologyClass talk</namespace>
      <namespace key="202" case="first-letter">OntologyProperty</namespace>
      <namespace key="203" case="first-letter">OntologyProperty talk</namespace>
      <namespace key="204" case="first-letter">Mapping en</namespace>
      <namespace key="205" case="first-letter">Mapping en talk</namespace>
      <namespace key="206" case="first-letter">Datatype</namespace>
      <namespace key="207" case="first-letter">Datatype talk</namespace>
      <namespace key="208" case="first-letter">Mapping de</namespace>
      <namespace key="209" case="first-letter">Mapping de talk</namespace>
      <namespace key="210" case="first-letter">Mapping fr</namespace>
      <namespace key="211" case="first-letter">Mapping fr talk</namespace>
      <namespace key="212" case="first-letter">Mapping it</namespace>
      <namespace key="213" case="first-letter">Mapping it talk</namespace>
      <namespace key="214" case="first-letter">Mapping es</namespace>
      <namespace key="215" case="first-letter">Mapping es talk</namespace>
      <namespace key="216" case="first-letter">Mapping nl</namespace>
      <namespace key="217" case="first-letter">Mapping nl talk</namespace>
      <namespace key="218" case="first-letter">Mapping pt</namespace>
      <namespace key="219" case="first-letter">Mapping pt talk</namespace>
      <namespace key="220" case="first-letter">Mapping pl</namespace>
      <namespace key="221" case="first-letter">Mapping pl talk</namespace>
      <namespace key="222" case="first-letter">Mapping ru</namespace>
      <namespace key="223" case="first-letter">Mapping ru talk</namespace>
      <namespace key="224" case="first-letter">Mapping cs</namespace>
      <namespace key="225" case="first-letter">Mapping cs talk</namespace>
      <namespace key="226" case="first-letter">Mapping ca</namespace>
      <namespace key="227" case="first-letter">Mapping ca talk</namespace>
      <namespace key="228" case="first-letter">Mapping bn</namespace>
      <namespace key="229" case="first-letter">Mapping bn talk</namespace>
      <namespace key="230" case="first-letter">Mapping hi</namespace>
      <namespace key="231" case="first-letter">Mapping hi talk</namespace>
      <namespace key="232" case="first-letter">Mapping ja</namespace>
      <namespace key="233" case="first-letter">Mapping ja talk</namespace>
      <namespace key="234" case="first-letter">Mapping uk</namespace>
      <namespace key="235" case="first-letter">Mapping uk talk</namespace>
      <namespace key="236" case="first-letter">Mapping zh</namespace>
      <namespace key="237" case="first-letter">Mapping zh talk</namespace>
      <namespace key="238" case="first-letter">Mapping hu</namespace>
      <namespace key="239" case="first-letter">Mapping hu talk</namespace>
      <namespace key="240" case="first-letter">Mapping commons</namespace>
      <namespace key="241" case="first-letter">Mapping commons talk</namespace>
      <namespace key="242" case="first-letter">Mapping ko</namespace>
      <namespace key="243" case="first-letter">Mapping ko talk</namespace>
      <namespace key="244" case="first-letter">Mapping fi</namespace>
      <namespace key="245" case="first-letter">Mapping fi talk</namespace>
      <namespace key="246" case="first-letter">Mapping tr</namespace>
      <namespace key="247" case="first-letter">Mapping tr talk</namespace>
      <namespace key="250" case="first-letter">Mapping ar</namespace>
      <namespace key="251" case="first-letter">Mapping ar talk</namespace>
      <namespace key="254" case="first-letter">Mapping id</namespace>
      <namespace key="255" case="first-letter">Mapping id talk</namespace>
      <namespace key="256" case="first-letter">Mapping sr</namespace>
      <namespace key="257" case="first-letter">Mapping sr talk</namespace>
      <namespace key="258" case="first-letter">Mapping ro</namespace>
      <namespace key="259" case="first-letter">Mapping ro talk</namespace>
      <namespace key="262" case="first-letter">Mapping sk</namespace>
      <namespace key="263" case="first-letter">Mapping sk talk</namespace>
      <namespace key="264" case="first-letter">Mapping bg</namespace>
      <namespace key="265" case="first-letter">Mapping bg talk</namespace>
      <namespace key="268" case="first-letter">Mapping sl</namespace>
      <namespace key="269" case="first-letter">Mapping sl talk</namespace>
      <namespace key="270" case="first-letter">Mapping da</namespace>
      <namespace key="271" case="first-letter">Mapping da talk</namespace>
      <namespace key="272" case="first-letter">Mapping eu</namespace>
      <namespace key="273" case="first-letter">Mapping eu talk</namespace>
      <namespace key="274" case="first-letter">Mapping eo</namespace>
      <namespace key="275" case="first-letter">Mapping eo talk</namespace>
      <namespace key="276" case="first-letter">Mapping lt</namespace>
      <namespace key="277" case="first-letter">Mapping lt talk</namespace>
      <namespace key="282" case="first-letter">Mapping et</namespace>
      <namespace key="283" case="first-letter">Mapping et talk</namespace>
      <namespace key="284" case="first-letter">Mapping hr</namespace>
      <namespace key="285" case="first-letter">Mapping hr talk</namespace>
      <namespace key="286" case="first-letter">Mapping hy</namespace>
      <namespace key="287" case="first-letter">Mapping hy talk</namespace>
      <namespace key="292" case="first-letter">Mapping gl</namespace>
      <namespace key="293" case="first-letter">Mapping gl talk</namespace>
      <namespace key="302" case="first-letter">Mapping az</namespace>
      <namespace key="303" case="first-letter">Mapping az talk</namespace>
      <namespace key="304" case="first-letter">Mapping el</namespace>
      <namespace key="305" case="first-letter">Mapping el talk</namespace>
      <namespace key="306" case="first-letter">Mapping sv</namespace>
      <namespace key="307" case="first-letter">Mapping sv talk</namespace>
      <namespace key="310" case="first-letter">Mapping mk</namespace>
      <namespace key="311" case="first-letter">Mapping mk talk</namespace>
      <namespace key="312" case="first-letter">Mapping be</namespace>
      <namespace key="313" case="first-letter">Mapping be talk</namespace>
      <namespace key="328" case="first-letter">Mapping cy</namespace>
      <namespace key="329" case="first-letter">Mapping cy talk</namespace>
      <namespace key="332" case="first-letter">Mapping lv</namespace>
      <namespace key="333" case="first-letter">Mapping lv talk</namespace>
      <namespace key="378" case="first-letter">Mapping ur</namespace>
      <namespace key="379" case="first-letter">Mapping ur talk</namespace>
      <namespace key="380" case="first-letter">Mapping war</namespace>
      <namespace key="381" case="first-letter">Mapping war talk</namespace>
      <namespace key="382" case="first-letter">Mapping vi</namespace>
      <namespace key="383" case="first-letter">Mapping vi talk</namespace>
      <namespace key="384" case="first-letter">Mapping fa</namespace>
      <namespace key="385" case="first-letter">Mapping fa talk</namespace>
      <namespace key="386" case="first-letter">Mapping mt</namespace>
      <namespace key="387" case="first-letter">Mapping mt talk</namespace>
      <namespace key="388" case="first-letter">Mapping ceb</namespace>
      <namespace key="389" case="first-letter">Mapping ceb talk</namespace>
      <namespace key="390" case="first-letter">Mapping am</namespace>
      <namespace key="391" case="first-letter">Mapping am talk</namespace>
      <namespace key="396" case="first-letter">Mapping ga</namespace>
      <namespace key="397" case="first-letter">Mapping ga talk</namespace>
    </namespaces>
  </siteinfo>
  <page>
    <title>Main Page</title>
    <ns>0</ns>
    <id>1</id>
    <revision>
      <id>53546</id>
      <parentid>53535</parentid>
      <timestamp>2019-07-10T13:43:05Z</timestamp>
      <contributor>
        <username>SebastianHellmann</username>
        <id>19</id>
      </contributor>
      <comment>/* Prerequisites */</comment>
      <origin>53546</origin>
      <model>wikitext</model>
      <format>text/x-wiki</format>
      <text bytes="9427" sha1="h7rblb73yor2c9bbuhpwbz72z687ric" xml:space="preserve">== DBpedia Mappings Wiki ==

In 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].

Anybody can help by editing:
* the [[How_to_edit_the_DBpedia_Ontology|DBpedia ontology schema]] (classes, properties, datatypes)
* the [[How_to_edit_DBpedia_Mappings|DBpedia infobox-to-ontology mappings]]

Mappings 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]]).


== Mapping Example ==
This is how you write a simple infobox mapping.

'''Mapping:Infobox_actor'''
&lt;pre&gt;
{{TemplateMapping 
| mapToClass = Actor 
| mappings = 
   {{ PropertyMapping | templateProperty = name | ontologyProperty = foaf:name }}
   {{ PropertyMapping | templateProperty = birth_place | ontologyProperty = birthPlace }}
}}
&lt;/pre&gt; 

This mapping extracts three information bits:
# the type information (Actor)
# the name of the actor
# the actor's place of birth.

Therefore, 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&amp;oldid=437756176 Vince Vaughn]
&lt;pre&gt;
dbpedia:Vince_Vaughn  rdf:type                dbpedia-owl:Actor   .
dbpedia:Vince_Vaughn  foaf:name               "Vince Vaughn"@en   .
dbpedia:Vince_Vaughn  dbpedia-owl:birthPlace  dbpedia:Minneapolis .
&lt;/pre&gt;


== Detailed Information ==
* Check the '''[[Mapping Guide]]''' that defines the best practices for how to write clean, efficient mappings that extract lots of high-quality data
* Take a look at the '''[[Mapping_Statistics|Mapping Statistics]]''' to search for relevant infoboxes to map.
* '''[[How_to_edit_the_DBpedia_Ontology|How to edit the DBpedia ontology]]'''
* '''[[How_to_edit_DBpedia_Mappings|How to edit infobox and table mappings]]'''
* [[Use the DBpedia Extraction Framework]] to extract structured data

== Prerequisites ==
If you would like to edit the mappings or ontology schema this is what you need:
* a user account on this wiki (''[[Special:UserLogin|login/sign up]]'')
* editor rights: application for editor rights is done by:
** register for http://forum.dbpedia.org
** 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.
* a namespace for the language you want to write mappings for
** 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]
* If you will contribute frequently, get a Github account (see below)

== Editorial Process ==
A 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:
* Post a new issue to one of the following trackers, depending on the nature of the issue:
** Mapping: https://github.com/dbpedia/mappings-tracker/issues
** Ontology: https://github.com/dbpedia/ontology-tracker/issues
** Extraction framework: https://github.com/dbpedia/extraction-framework/issues
* Edit the corresponding Discussion page (of the mapping or ontology element):
** 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
** Provide a link to the issue
** Propose a solution if you'd like

== Best Practices ==
If you write a best practice, list it here:
* [[Mapping Guide]] (thorough)
* [http://vladimiralexiev.github.io/pres/20150209-dbpedia/add-mapping.html Adding a Mapping] (shorter)
* [[Main Page#Editorial Process]]
* [[Main Page#Testing Best Practices]]

Focused investigations of massive problems that require discussion, fixes to many props/templates, documenting a pattern:
* [[What's in a Name]]
* [[Connecting Places]] [https://github.com/dbpedia/mappings-tracker/issues/29 #29]
* [[Agent Relations]]

== Testing Best Practices ==
Whenever we find or fix a problem, we should have some test cases for it. This serves many important purposes:
* to illustrate the problem
* as proof it works after the problem is fixed
* to provide test cases for any bugs in the extraction framework (upstream bug reporting)

Every infobox mapping has a link "test this mapping", eg
* http://mappings.dbpedia.org/server/mappings/fr/extractionSamples/Mapping_fr:Infobox_Ville_de_Serbie

Unfortunately 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
* http://mappings.dbpedia.org/server/extraction/fr/extract?title=Požega_(Serbie)&amp;revid=&amp;format=turtle-triples
* http://mappings.dbpedia.org/server/extraction/bg/extract?title=Лили+Иванова&amp;revid=&amp;format=turtle-triples

This is even better because it provides specific test cases. 
Also provide a link to the corresponding wiki pages in edit mode, so the markup can be seen immediately.
Add these to the mapping's Discussion page.

Eg on [[Mapping fr talk:Infobox Ville de Serbie]] we have:
* Testing:
** page: https://fr.wikipedia.org/w/index.php?title=Požega_(Serbie)&amp;action=edit
** result: http://mappings.dbpedia.org/server/extraction/fr/extract?title=Požega_(Serbie)&amp;revid=&amp;format=turtle-triples

We'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.

=== Custom or Default Extractor ===
The 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?
If you want to see more triples, add "&amp;extractors=custom" to the URL. This runs all available extractors.
But there is a limit in the extraction samples (1000 triples?) so for big articles this may not return all expected triples.

Let's illustrate with Elvis Presley: [http://mappings.dbpedia.org/server/extraction/en/extract?title=Elvis_Presley&amp;revid=&amp;format=turtle-triples&amp;extractors=custom custom] 921 triples, [http://mappings.dbpedia.org/server/extraction/en/extract?title=Elvis_Presley&amp;revid=&amp;format=turtle-triples default] 118 triples.
So the limit is not reached in this case.

=== Copy IRIs not URL-encoded ===
The URLs above use non-ASCII characters, so they are '''International''' Resource Identifiers (IRIs).
These are readable and allow a user to see what they represent.
But when you copy from the browser's address box, an IRI is URL-encoded to an unreadable ugliness like:
* http://mappings.dbpedia.org/server/extraction/fr/extract?title=Po%C5%BEega_(Serbie)&amp;revid=&amp;format=turtle-triples
* 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&amp;revid=&amp;format=turtle-triples

The browsers do that for obscure historical reasons.
Please be kind to your fellow editors and use an addon that preserves IRIs, eg:
* Chrome addon: [https://chrome.google.com/webstore/detail/copy-url/mkhnbhdofgaendegcgbmndipmijhbili Copy URL]

If you don't have such, you can use this trick:
* Copy everything but the first letter "m"
* Paste, then add the missing letter "m" (or "http://m").

=== Domain Validation ===
The [http://mappings.dbpedia.org/validation/index.html Domain Validation service] generates a list of domain exceptions, updating it daily.
For 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.

For each '''predicate''' used in a '''mapping''', it shows the '''expected''' domain class (defined for the predicate) and '''existing''' class (corresponding to that mapping).
Please filter for your language (the first column) and correct as many errors as you can:
* Make the '''existing''' class into a subclass of '''expected''', OR
* Correct (usually raise) the domain of '''predicate''', OR
* Correct the '''mapping''' to use the expected mapToClass

In 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&amp;tagfilter=&amp;title=Special%3AContributions&amp;contribs=user&amp;target=VladimirAlexiev&amp;namespace=&amp;year=2015&amp;month=8 list of contributions]

== That's it! ==
That is all you need to kick-start. Your contributions will be available:
* in the [http://live.dbpedia.org/ DBpedia Live] end point shortly after your edit (currently only for English)
* in the next [http://dbpedia.org/downloads DBpedia datasets] release

''Happy mapping!''

== About DBpedia ==
To learn more about DBpedia itself visit http://dbpedia.org/About.</text>
      <sha1>h7rblb73yor2c9bbuhpwbz72z687ric</sha1>
    </revision>
  </page>
</mediawiki>
