YASHE icon indicating copy to clipboard operation
YASHE copied to clipboard

l14n (localization) of shape descriptions

Open ericprud opened this issue 5 years ago • 1 comments

In the Wikidata demo, when you hover over a predicate in a TripleExpression, it fetches the schema:description. Does it pick the language based on browser preferences?

It would be cool to extend this functionality by adding annotations to shapes as well, e.g.

<#P352_uniprot_id> {
	ps:P352 LITERAL ;
	prov:wasDerivedFrom IRI;
}
 // schema:description "UniProt identifier"@en
 // schema:description "identificador de UniProt"@es # just a guess

The editor could hide all of them except those in the preferred language so it wouldn't get to messy.

ericprud avatar Jun 20 '19 07:06 ericprud

Implemented the part of the preferred language when hovering over a TripleExpression.

The other idea maybe would be in a future version.

Thank you for your contribution :)

mistermboy avatar Sep 17 '19 14:09 mistermboy