|
Key
This line was removed.
This word was removed. This word was added.
This line was added.
|
Changes (8)
View Page History
* Create a file called *dbpedia_proton.nt* in which you will store all the RDF data that aligns DBpedia ontology to PROTON ontology.
* Put this file in the *dbpedia kb* folder.
* Put this file in the *dbpedia kb* folder.
{code:xml}
<http://dbpedia.org/ontology/Place> <http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://proton.semanticweb.org/2006/05/protont#Location> .
<http://dbpedia.org/ontology/Person> <http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://proton.semanticweb.org/2006/05/protont#Person> .
<http://dbpedia.org/ontology/Person> <http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://proton.semanticweb.org/2006/05/protont#Person> .

!_Images for reuse^to_do.png!
* Add a statement for each of the new DBpedia entities, in order to be able to differentiate them.
* Add a statement for each of the new DBpedia entities, in order to be able to differentiate them.
{code:xml}
<http://dbpedia.org/resource/Aristotle> <http://proton.semanticweb.org/2006/05/protons#generatedBy> <http://dbpedia.org/page/DBpedia> .
{code}
* Create a new file *dbpedia_kim.nt* in *<KIM_HOME>/context/default/kb/dbpedia* and put these statements there.
* Put the definition of DBPedia source:
{code}
* Create a new file *dbpedia_kim.nt* in *<KIM_HOME>/context/default/kb/dbpedia* and put these statements there.
* Put the definition of DBPedia source:
{code:xml}
<http://dbpedia.org/page/DBpedia> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://proton.semanticweb.org/2006/05/protons#Trusted> .
{code}
{code}

!_Images for reuse^to_do.png!
* Set a mainLabel to each entity:
* Set a mainLabel to each entity:
{code:xml}
<http://dbpedia.org/resource/Aristotle> <http://proton.semanticweb.org/2006/05/protons#mainLabel> "Aristotle" .
{code}
* Set labels to each entity (several options):
** Manually set a label from the {{foaf:name}} property to the entities from DBpedia:
{code}
* Set labels to each entity (several options):
** Manually set a label from the {{foaf:name}} property to the entities from DBpedia:
{code:xml}
<http://dbpedia.org/resource/Aristotle> <http://www.w3.org/2000/01/rdf-schema#label> "Aristotélēs" .
{code}
{code}

For example, if you want all {{foaf:name}} properties to exist also as labels, you can add the following rule to *<KIM_HOME>/context/default/kb/KIMRules.pie*:
{code:xml}
e <protons:generatedBy> <http://dbpedia.org/page/DBpedia>
e <foaf:name> name
e <foaf:name> name

{code}
* Tell OWLIM that these two properties are the same by stating:
* Tell OWLIM that these two properties are the same by stating:
{code:xml}
<http://dbpedia.org/property/name> <http://www.w3.org/2002/07/owl#sameAs> <http://www.w3.org/2000/01/rdf-schema#label> .
{code}
{code}

!_Images for reuse^to_do.png!
* Add statements such as:
* Add statements such as:
{code:xml}
<http://dbpedia.org/ontology/Philosopher> <http://www.ontotext.com/kim/2006/05/kimso#visibilityLevel1> "" .
{code}
{code}
