Re: JS library to get label?

Hello

It is not exactly an answer to your question but you can get an idea of how
to do that using a sparql query against a json-p capable endpoint in this
news article annotation demo I have put up :
http://labs.sparna.fr/dbpedia-enrich-news-article.html

It fetches labels of rdfa annotations in the text, in the reader's
language, from dbpedia, list them on the side of the article or plot them
on a map. Look at the page source for the sparql queries details.

Hope it helps
Thomas
Le 10 juil. 2013 09:31, "Denny Vrandečić" <denny.vrandecic@wikimedia.de> a
Ă©crit :

> Given that I have a URI, is there a JS library so that I can make a call
> like
>
> getLabels( uri, lang ) or getPropertyValues( uri, rdf:label, lang )
>
> or whatever call to get the label(s) in the given / the available
> languages, assuming the the URI resolves and returns an RDF description
> containing the rdf:label?
>
> Cheers,
> Denny
>
>

Received on Wednesday, 10 July 2013 17:19:33 UTC