When I query for the schema of my DGraph cluster with schema { }
, I get:
{
"data": {
"schema": [
{
"predicate": "http://www.w3.org/2000/01/rdf-schema#label",
"type": "string",
"index": true,
"tokenizer": [
"hash"
],
"lang": true
},
...
Could the schema provide a list of existing languages for each @lang
predicate, like:
{
"data": {
"schema": [
{
"predicate": "http://www.w3.org/2000/01/rdf-schema#label",
"type": "string",
"index": true,
"tokenizer": [
"hash"
],
"lang": true,
"languages": ["", "en", "zh", "de"]
},
...
That would be great, because then I can know which languages exist for which predicates, and which languages I do not need to bother querying, because there will be no answer. Is this something easy to add?