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) {
257257 return '' + p
258258 }
259259 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 ]
261261 else pred = 'scm:' + p
262262 return this . expandVariable ( pred )
263263}
264264
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+
265276WOQLQuery . prototype . cleanPathPredicate = function ( p ) {
266277 let pred = false
267278 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 ]
269280 else pred = 'scm:' + p
270281 return pred
271282}
You can’t perform that action at this time.
0 commit comments