Guest User

Extract geo data from text: notes using dataTXT + dbpedia

a guest
Sep 5th, 2014
340
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.29 KB | None | 0 0
  1. Problem: extract geo lat lng about places inside ustructured texts. notes
  2.  
  3. # query dataTXT APIs ( dandelion.eu/products/datatxt ) using this text extract from a news on the BBC website - http://www.bbc.com/news/world-africa-29055041 "More than 1,900 people have now died in West Africa's Ebola outbreak, the World Health Organization (WHO) says. There have been 3,500 confirmed or probable cases in Guinea, Sierra Leone and Liberia.
  4. "The outbreaks are racing ahead of the control efforts in these countries," WHO chief Margaret Chan said.
  5. The WHO is meeting on Thursday to examine the most promising treatments and to discuss how to fast-track testing and production.
  6. Disease control experts, medical researchers, officials from affected countries, and specialists in medical ethics will all be represented at the meeting in Geneva."
  7. ---
  8.  
  9. curl -i "https://api.dandelion.eu/datatxt/nex/v1/?https://api.dandelion.eu/datatxt/nex/v1/?min_confidence=0.6&include=image,types,lod,categories&text=More%20than%201%2C900%20people%20have%20now%20died%20in%20West%20Africa%27s%20Ebola%20outbreak%2C%20the%20World%20Health%20Organization%20(WHO)%20says.%20There%20have%20been%203%2C500%20confirmed%20or%20probable%20cases%20in%20Guinea%2C%20Sierra%20Leone%20and%20Liberia.%0A%22The%20outbreaks%20are%20racing%20ahead%20of%20the%20control%20efforts%20in%20these%20countries%2C%22%20WHO%20chief%20Margaret%20Chan%20said.%0AThe%20WHO%20is%20meeting%20on%20Thursday%20to%20examine%20the%20most%20promising%20treatments%20and%20to%20discuss%20how%20to%20fast-track%20testing%20and%20production.%0ADisease%20control%20experts%2C%20medical%20researchers%2C%20officials%20from%20affected%20countries%2C%20and%20specialists%20in%20medical%20ethics%20will%20all%20be%20represented%20at%20the%20meeting%20in%20Geneva.&\$app_id=YOUR_APP_ID&\$app_key=YOUR_APP_KEY&exec=true"
  10.  
  11. # query dbpedia SPARQL endpoint to extract geo coordinates, using dbpedia URI extracted from the text, like this
  12. # one, that is Geneva on DBpedia http://dbpedia.org/resource/Geneva
  13.  
  14. curl -i "http://dbpedia.org/sparql?query=PREFIX+geo%3A+<http%3A%2F%2Fwww.w3.org%2F2003%2F01%2Fgeo%2Fwgs84_pos%23>%0D%0ASELECT+%3Flat+%3Flong+WHERE+%7B%0D%0A<http%3A%2F%2Fdbpedia.org%2Fresource%2FGeneva>+geo%3Alat+%3Flat.%0D%0A<http%3A%2F%2Fdbpedia.org%2Fresource%2FGeneva>+geo%3Along+%3Flong.%0D%0A%7D"
Advertisement
Add Comment
Please, Sign In to add comment