Old Main Page: Difference between revisions

From Mediawiki1
Jump to navigationJump to search
(Created page with '== DBpedia Mapping Wiki == This is the DBpedia Mappings Wiki. Its contents are used by the DBpedia extraction framework. Here, you can edit * the DBpedia ontology schema (classes...')
 
No edit summary
Line 4: Line 4:
* the DBpedia infobox-to-ontology mapppings
* the DBpedia infobox-to-ontology mapppings


The DBpedia extraction framework collects the templates defined here and extracts the Wikipedia content according to them in [http://en.wikipedia.org/wiki/Resource_Description_Framework RDF]. [[Extraction_Framework_HowTo|How?]]
The DBpedia extraction framework collects the templates defined here and extracts the Wikipedia content according to them in [http://en.wikipedia.org/wiki/Resource_Description_Framework RDF]. (''[[Extraction_Framework_HowTo|learn how]]'')


Mappings can be written for a variety of languages, while the ontology and schema is ought to be used for all of them.
Mappings can be written for a variety of languages, while the ontology and schema is ought to be used for all of them.


== Mapping Example ==
== Mapping Example ==
This is how you write a simple infobox mapping
This is how you write a simple infobox mapping.
 
'''Mapping:Infobox_actor'''
<pre>
{{TemplateMapping
| mapToClass = Actor
| mappings =
  {{ PropertyMapping | templateProperty = name | ontologyProperty = foaf:name }}
  {{ PropertyMapping | templateProperty = place_of_birth | ontologyProperty = birthPlace }}
}}
</pre>
 
This mapping extracts three RDF triples for each Infobox_actor in the English Wikipedia. For example for [wikipedia ACTOR]
<pre>
dbpedia:GUY rdf:type dbpedia-owl:Actor .
dbpedia:GUY foaf:name "NAME"@en .
dbpedia:GUY dbpedia-owl:birthPlace dbpedia:PLACE .
</pre>


== Prerequisites ==
== Prerequisites ==

Revision as of 10:51, 7 July 2011

DBpedia Mapping Wiki

This is the DBpedia Mappings Wiki. Its contents are used by the DBpedia extraction framework. Here, you can edit

  • the DBpedia ontology schema (classes, properties, datatypes)
  • the DBpedia infobox-to-ontology mapppings

The DBpedia extraction framework collects the templates defined here and extracts the Wikipedia content according to them in RDF. (learn how)

Mappings can be written for a variety of languages, while the ontology and schema is ought to be used for all of them.

Mapping Example

This is how you write a simple infobox mapping.

Mapping:Infobox_actor

{{TemplateMapping 
| mapToClass = Actor 
| mappings = 
   {{ PropertyMapping | templateProperty = name | ontologyProperty = foaf:name }}
   {{ PropertyMapping | templateProperty = place_of_birth | ontologyProperty = birthPlace }}
}}

This mapping extracts three RDF triples for each Infobox_actor in the English Wikipedia. For example for [wikipedia ACTOR]

dbpedia:GUY rdf:type dbpedia-owl:Actor .
dbpedia:GUY foaf:name "NAME"@en .
dbpedia:GUY dbpedia-owl:birthPlace dbpedia:PLACE .

Prerequisites

If you like to edit the mappings or ontology schemat this is what you need:

  • a user account on this wiki (register)
  • editor rights
    • they will be given to you within a couple of days
    • if not, lease ask for editor rights at dbpedia-discussion@lists.sourceforge.net Max: question: should we make this dbpedia-developers? I don't think the whole discussion list cares about Heinz from Königs Wusterhausen getting editor rights
    • once you got editor rights, please provide some information about yourself on your user wiki page
  • a namespace for the language you want to write mappings for

That's it!

That is all you need to kick-start. To get more detailed information, please follow the provided links.

Your contributions will be available

Happy mapping!

About DBpedia

To learn more about DBpedia itself visit http://dbpedia.org/About.