laurenancona / linked-data-api

Automatically exported from code.google.com/p/linked-data-api
0 stars 0 forks source link

Language views #8

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Datasets such as dbpedia offer versions of literal values in many different 
languages. Applications often only use one language at a time, and the  
presence of  many different versions can make the document quite large and the  
structure harder to see at a  glance. 

The API should offer a way for users to say "show me only the language-tagged 
literals that match this (or these) language tags".

I suggest a _lang request parameter containing a comma-separated list of 
language tags should filter out any literals with language tags that don't 
match the tags in the comma-separated list. The matching would be the same as 
SPARQL's langMatches() function. Plain and datatyped literals should be 
unaffected.  The results document should contain metadata enumerating the 
available alternate language versions. This could be done in the same manner as 
_view is at the moment, and possibly an additional property could contain the 
available language tags. 

Original issue reported on code.google.com by K.J.W.Al...@gmail.com on 2 Jul 2010 at 2:20