dbpedia / lookup

Outputs a list of ranked DBpedia resources for a search string.
Apache License 2.0
185 stars 39 forks source link

return Turtle instead of XML from the API #13

Closed jmvanel closed 8 years ago

jmvanel commented 9 years ago

After all, it's a semantic web project !

To distinguish betwen the actual URI matches and other URI's, the actual URI match could be typed lookup:Result , like this :

dbpedia:Berlin a lookup:Result ;
rdfs:label "Berlin" ;
dbo:abstract """
Berlin is the capital city of Germany and one of the 16 states of Germany. 
With a population of 3.5 million people, Berlin is Germany's largest city and is the second most 
populous city proper and the eighth most populous urban area in the European Union. 
Located in northeastern Germany, it is the center of the Berlin-Brandenburg Metropolitan Region, 
which has 5.9 million residents from over 190 nations. Located in the European Plains, 
Berlin is influenced by a temperate seasonal climate.
""" ;
a dbo:Settlement .
 dbo:Settlement rdfs:label "settlement"@en .
# etc ....
sandroacoelho commented 8 years ago

Hi @jmvanel

Our API supports application/xml, application/json. We are planning to put more formats on it and you are invited to help us.

Best,