Skip to content

Commit 6337c35

Browse files
added a few features
1 parent e95d587 commit 6337c35

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/woql.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -618,11 +618,11 @@ WOQLQuery.prototype.getInstanceMeta = function(url){
618618

619619
WOQLQuery.prototype.simpleGraphQuery = function(){
620620
return this.and(
621-
WOQL.triple("v:Source", "rdf:type", "v:Source_Class"),
621+
WOQL.triple("v:Source", "v:Edge", "v:Target"),
622+
WOQL.isa("v:Source", "v:Source_Class"),
622623
WOQL.sub("v:Source_Class", "tcs:Document"),
623-
WOQL.triple("v:Target", "rdf:type", "v:Target_Class"),
624+
WOQL.isa("v:Target", "v:Target_Class"),
624625
WOQL.sub("v:Target_Class", "tcs:Document"),
625-
WOQL.triple("v:Source", "v:Edge", "v:Target"),
626626
WOQL.opt().triple("v:Source", "rdfs:label", "v:Source_Label"),
627627
WOQL.opt().triple("v:Source", "rdfs:comment", "v:Source_Comment"),
628628
WOQL.opt().quad("v:Source_Class", "rdfs:label", "v:Source_Type", "db:schema"),

0 commit comments

Comments
 (0)