farbenmeer / dbpedia Goto Github PK
View Code? Open in Web Editor NEWDBpedia Client for Ruby
DBpedia Client for Ruby
Hello! I'm having a small problem using dbpedia gem. A snippet like that:
@bio = Dbpedia.search(@author.full_name).collect(&:description)
Should download biography of an author. It does, but it looks like this:
["\n Adam Bernard Mickiewicz) was a Polish poet, publicist and political writer. A prime representative of the Polish Romantic period, he is one of that country's Three Bards and the greatest poet in all Polish literature. He is also considered one of the greatest Slavic and European poets. He has been described as a "Slavic bard". He was a leading Romantic dramatist and has been compared in Poland and in western Europe to Byron and Goethe.\n ", "", "", "\n The Adam Mickiewicz Institute (Polish: Instytut Adama Mickiewicza) is a government-sponsored organization funded by the Ministry of Culture and National Heritage of Poland. Its goal is to promote Polish language and Polish culture abroad. It is based in Warsaw. The Institute operates a bilingual Polish-English portal called "culture. pl" created in 2001.\n ", "\n The Mickiewicz Battalion was a volunteer battalion of the International Brigades during the Spanish Civil War. It formed part of the XIII International Brigade from 27 October 1937 until 23 September 1938, when the International Brigades were disbanded. It was named after Adam Mickiewicz (1798โ1855), a Polish poet and patriot.\n "]
Many escape chars got in the way, and i don't know how to get rid of them. Also, is there any way to get localized data with this gem? Since pl.dbpedia is down, and international one has biopgraphies in Polish, I just dont know how to get to them. Any help would be appreciated.
Also kudos on this great little gem!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.