File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -257,15 +257,26 @@ WOQLQuery.prototype.cleanPredicate = function(p) {
257
257
return '' + p
258
258
}
259
259
if ( p . indexOf ( ':' ) != - 1 ) pred = p
260
- else if ( this . vocab && this . vocab [ p ] ) pred = this . vocab [ p ]
260
+ else if ( this . wellKnownPredicate ( p ) ) pred = this . vocab [ p ]
261
261
else pred = 'scm:' + p
262
262
return this . expandVariable ( pred )
263
263
}
264
264
265
+ WOQLQuery . prototype . wellKnownPredicate = function ( p ) {
266
+ if ( this . vocab && this . vocab [ p ] ) {
267
+ let full = this . vocab [ p ]
268
+ let start = full . substring ( 0 , 3 )
269
+ if ( full == "system:abstract" || start == "xdd" || start == "xsd" ) return false
270
+ return true
271
+ }
272
+ return false
273
+ }
274
+
275
+
265
276
WOQLQuery . prototype . cleanPathPredicate = function ( p ) {
266
277
let pred = false
267
278
if ( p . indexOf ( ':' ) != - 1 ) pred = p
268
- else if ( this . vocab && this . vocab [ p ] ) pred = this . vocab [ p ]
279
+ else if ( this . wellKnownPredicate ( p ) ) pred = this . vocab [ p ]
269
280
else pred = 'scm:' + p
270
281
return pred
271
282
}
You can’t perform that action at this time.
0 commit comments