@@ -158,7 +158,6 @@ WOQLQuery.prototype.node = function(node, type) {
158
158
}
159
159
160
160
WOQLQuery . prototype . insert = function ( id , type , refGraph ) {
161
- type = this . cleanType ( type , true )
162
161
refGraph = refGraph || ( this . triple_builder_context ? this . triple_builder_context . graph : false )
163
162
if ( refGraph ) {
164
163
return this . add_quad ( id , 'rdf:type' , '@schema:' + type , refGraph )
@@ -168,7 +167,6 @@ WOQLQuery.prototype.insert = function(id, type, refGraph) {
168
167
169
168
WOQLQuery . prototype . insert_data = function ( data , refGraph ) {
170
169
if ( data . type && data . id ) {
171
- type = this . cleanType ( data . type , true )
172
170
this . insert ( data . id , type , refGraph )
173
171
if ( data . label ) {
174
172
this . label ( data . label )
@@ -224,7 +222,6 @@ WOQLQuery.prototype.graph = function(g) {
224
222
}
225
223
226
224
WOQLQuery . prototype . domain = function ( d ) {
227
- d = this . cleanClass ( d )
228
225
return this . _add_partial ( false , 'rdfs:domain' , d )
229
226
}
230
227
/**
@@ -258,7 +255,7 @@ WOQLQuery.prototype.description = function(c, lang) {
258
255
*/
259
256
WOQLQuery . prototype . parent = function ( ...parentList ) {
260
257
for ( var i = 0 ; i < parentList . length ; i ++ ) {
261
- var pn = this . cleanClass ( parentList [ i ] )
258
+ var pn = parentList [ i ]
262
259
this . _add_partial ( false , 'rdfs:subClassOf' , pn )
263
260
}
264
261
return this
0 commit comments