KR 2017 extra examples and notes from Dbpedia and Conceptnet

Allikas: Kursused
Mine navigeerimisribale Mine otsikasti

Simplest examples

"Oosaare is a farm"
convert to
Oosaare isa farm
or a bit fancier
me:Oosaare  rdf:type  https://en.wikipedia.org/wiki/farm

More examples:
"Puise is a village"
"Greenshore is a lake"
...
"Tallinn is a city"
Could be converted via NER of Tallinn and looking up general class like City:
https://en.wikipedia.org/wiki/Tallinn  rdf:type  https://en.wikipedia.org/wiki/City 

Fancier examples

"Puise is a village in Estonia"
could be converted to
Puise isa village
Puise in Estonia

"Estonia is in Europe"
could be converted to
Estonia in Europe.

"Greenshore is a lake in USA"
etc

Fancier:

"Puise is north of Matsalu bay"  

Puise northof Matsalu_bay

How about complex sentences like:

"sad sad asd asd Puise is north of Matsalu dasasas" 
"not true that Puise is north of Matsalu bay"
"I think that Puise is north of Matsalu bay"  

We could parse out pieces we understand like
Puise is north of Matsalu 
and hope that this is not totally wrong

Complex sentences like

"Puise is a village and Tallinn is north of Matsalu bay"
might be parsed as two independent subsentences
"Puise is a village" 
"Tallinn is north of Matsalu bay"

Even harder

"Puise is a village and is north of Matsalu bay"
might be parsed as two independent subsentences
"Puise is a village"
"Puise is north of Matsalu bay"

Do not try to understand stuff like

"I saw a red Ford near Puise"

ID-s Dbpedia uses

Dbpedia seems to use

http://dbpedia.org/ontology/type 
like in
"http://dbpedia.org/resource/Tallinn" : 
   { "http://dbpedia.org/ontology/type" : 
     [ { "type" : "uri", "value" : "http://dbpedia.org/resource/City" } ] } 
from http://dbpedia.org/data/City.json

Dbpedia seems to use   

"http://dbpedia.org/resource/Tallinna_Hipodroom" : 
    { "http://dbpedia.org/ontology/location" : 
      [ { "type" : "uri", "value" : "http://dbpedia.org/resource/Tallinn" } ] }

from http://dbpedia.org/data/Tallinn

For unknown words dbpedia gives
{}
as in http://dbpedia.org/data/asasasas.json

Dpedia seems to say for equality
"http://www.w3.org/2002/07/owl#sameAs" : [ { "type" : "uri", "value" : "http://el.dbpedia.org/resource/\u03A4\u03B1\u03BB\u03AF\u03BD" } ,
      { "type" : "uri", "value" : "http://fr.dbpedia.org/resource/Tallinn" } ,
      { "type" : "uri", "value" : "http://eu.dbpedia.org/resource/Tallinn" } ,
      { "type" : "uri", "value" : "http://nl.dbpedia.org/resource/Tallinn" } ,
      { "type" : "uri", "value" : "http://sws.geonames.org/862995/" } ,
      { "type" : "uri", "value" : "http://d-nb.info/gnd/4076684-6" } ,
      { "type" : "uri", "value" : "http://rdf.freebase.com/ns/m.07r_p" } ,
      { "type" : "uri", "value" : "http://it.dbpedia.org/resource/Tallinn" } ,
      { "type" : "uri", "value" : "http://data.nytimes.com/N25406082566127510731" } ,
      { "type" : "uri", "value" : "http://pt.dbpedia.org/resource/Tallinn" } ,
      { "type" : "uri", "value" : "http://id.dbpedia.org/resource/Tallinn" } ,
      { "type" : "uri", "value" : "http://ja.dbpedia.org/resource/\u30BF\u30EA\u30F3" } ,
      { "type" : "uri", "value" : "http://www.wikidata.org/entity/Q1770" } ,
      { "type" : "uri", "value" : "http://wikidata.dbpedia.org/resource/Q1770" } ,
      { "type" : "uri", "value" : "http://cs.dbpedia.org/resource/Tallinn" } ,
      { "type" : "uri", "value" : "http://pl.dbpedia.org/resource/Tallinn" } ,
      { "type" : "uri", "value" : "http://data.nytimes.com/N9409308367868284061" } ,
      { "type" : "uri", "value" : "http://ko.dbpedia.org/resource/\uD0C8\uB9B0" } ,
      { "type" : "uri", "value" : "http://es.dbpedia.org/resource/Tallin" } ,
      { "type" : "uri", "value" : "http://dbpedia.org/resource/Tallinn" } ,
      { "type" : "uri", "value" : "http://linkedgeodata.org/triplify/node29787492" } ,
      { "type" : "uri", "value" : "http://de.dbpedia.org/resource/Tallinn" } ,
      { "type" : "uri", "value" : "http://sws.geonames.org/11049594/" } ,
      { "type" : "uri", "value" : "http://sws.geonames.org/588409/" } ,
      { "type" : "uri", "value" : "http://yago-knowledge.org/resource/Tallinn" } ] 

from http://dbpedia.org/data/Tallinn.json

for arbitrary properties of Tallinn Dbpedia seems to say

    "http://dbpedia.org/ontology/populationMetro" :
       [ { "type" : "literal", "value" : "542983" , 
           "datatype" : "http://www.w3.org/2001/XMLSchema#nonNegativeInteger" } ]

from http://dbpedia.org/data/Tallinn.json

Conceptnet

Notice that you can identify that a dbedia is the same as conceptnet id via "Links to other sites" part


Conceptnet
as readable
http://conceptnet.io/c/en/city
or in json as
http://api.conceptnet.io/c/en/city

Conceptnet for Tallinn
http://conceptnet.io/c/en/tallinn