We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04f920e commit 54cd803Copy full SHA for 54cd803
lib/query/woqlBuilder.js
@@ -245,6 +245,10 @@ WOQLQuery.prototype.domain = function(d) {
245
}
246
247
WOQLQuery.prototype.label = function(l, lang) {
248
+ if (typeof l !== 'string' && l['@value'] != null) {
249
+ lang = l['@language']
250
+ l = l['@value']
251
+ }
252
lang = lang ? lang : 'en'
253
if (l.substring(0, 2) == 'v:') {
254
var d = l
@@ -255,6 +259,10 @@ WOQLQuery.prototype.label = function(l, lang) {
255
259
256
260
257
261
WOQLQuery.prototype.description = function(c, lang) {
262
+ if (typeof c !== 'string' && c['@value'] != null) {
263
+ lang = c['@language']
264
+ c = c['@value']
265
258
266
267
if (c.substring(0, 2) == 'v:') {
268
var d = c
0 commit comments