From what I can see in the documentation I'm able to get labels for DataSet & dimension/measure/attributes. What I can't seem to find is how I would get the label of an instance of a dimension/attribute.
This is necessary for all instances that are not a literal but point to a URI. In my document I wrote how do query this information. Note that in my example I fetch them separately, they could obviously also be fetched in the query that fetches the data itself by adding something like this:
Now the only problem is that there might be datasets where we cannot resolve all URIs, or they use another predicate for the label. So we might have to make that optional and configurable.
I'm not sure what the best way is to handle this, ideally the result from query would contain the label as well. In the example I played around with I get this as a row of the result:
From what I can see in the documentation I'm able to get labels for DataSet & dimension/measure/attributes. What I can't seem to find is how I would get the label of an instance of a dimension/attribute.
This is necessary for all instances that are not a literal but point to a URI. In my document I wrote how do query this information. Note that in my example I fetch them separately, they could obviously also be fetched in the query that fetches the data itself by adding something like this:
Now the only problem is that there might be datasets where we cannot resolve all URIs, or they use another predicate for the label. So we might have to make that optional and configurable.
I'm not sure what the best way is to handle this, ideally the result from
query
would contain the label as well. In the example I played around with I get this as a row of the result:Ideally I at the same time get this:
Not sure if
label
is the right key but something like it.