@@ -202,8 +202,9 @@ WOQLQuery.prototype.generateChoiceList = function(cls, clslabel, clsdesc, choice
202
202
graph = this . _sg ( graph )
203
203
var clist = [ ]
204
204
var listid = '_:' + ( cls . indexOf ( ':' ) == - 1 ? cls : cls . split ( ':' ) [ 1 ] )
205
+ const className = this . cleanClass ( cls , true )
205
206
var lastid = listid
206
- let wq = new WOQLQuery ( ) . add_class ( cls , graph ) . label ( clslabel )
207
+ let wq = new WOQLQuery ( ) . add_class ( className , graph ) . label ( clslabel )
207
208
if ( clsdesc ) wq . description ( clsdesc )
208
209
if ( parent ) wq . parent ( parent )
209
210
var confs = [ wq ]
@@ -218,7 +219,7 @@ WOQLQuery.prototype.generateChoiceList = function(cls, clslabel, clsdesc, choice
218
219
var clab = UTILS . labelFromURL ( chid )
219
220
var desc = false
220
221
}
221
- let cq = new WOQLQuery ( ) . insert ( chid , cls , graph ) . label ( clab )
222
+ let cq = new WOQLQuery ( ) . insert ( chid , className , graph ) . label ( clab )
222
223
if ( desc ) cq . description ( desc )
223
224
confs . push ( cq )
224
225
var nextid = i < choices . length - 1 ? listid + '_' + i : 'rdf:nil'
@@ -228,7 +229,7 @@ WOQLQuery.prototype.generateChoiceList = function(cls, clslabel, clsdesc, choice
228
229
}
229
230
//do the owl oneof
230
231
let oneof = new WOQLQuery ( ) . and (
231
- new WOQLQuery ( ) . add_quad ( cls , 'owl:oneOf' , new WOQLQuery ( ) . iri ( listid ) , graph ) ,
232
+ new WOQLQuery ( ) . add_quad ( className , 'owl:oneOf' , new WOQLQuery ( ) . iri ( listid ) , graph ) ,
232
233
...clist ,
233
234
)
234
235
return this . and ( ...confs , oneof )
0 commit comments