Skip to content

Commit 5464428

Browse files
committed
Merge branch 'dev' of https://github.com/terminusdb/terminus-client into dev
2 parents 381668e + 6337c35 commit 5464428

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
@@ -619,11 +619,11 @@ WOQLQuery.prototype.getInstanceMeta = function(url){
619619

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

0 commit comments

Comments
 (0)