Skip to content

Commit 8d31bcb

Browse files
committed
Merge branch 'dev' of https://github.com/terminusdb/terminus-client into dev
2 parents 6adf36f + 523c0d7 commit 8d31bcb

File tree

4 files changed

+22
-9
lines changed

4 files changed

+22
-9
lines changed

dist/terminus-client.min.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/terminus-client.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/errorMessage.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ function getErrorAsMessage(url, api, err) {
77
url = url.split("?")[0];
88

99
if (err.status) str += `Code: ${err.status}`;
10-
if (err.action) str += `, Action: ${err.action}`;
11-
if (err.type) str += `, Type: ${err.type}`;
12-
if (url) str += `, url: ${url}`;
13-
if (api && api.method) str += `, method: ${api.method}`;
10+
if (err.action) str += ` Action: ${err.action}`;
11+
if (err.type) str += ` Type: ${err.type}`;
12+
if (url) str += ` url: ${url}`;
13+
if (api && api.method) str += ` method: ${api.method}`;
1414
return str;
1515
}
1616

lib/woql.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -941,6 +941,19 @@ WOQLQuery.prototype.getDocumentConnections = function(id){
941941
);
942942
}
943943

944+
WOQLQuery.prototype.getAllDocumentConnections = function(){
945+
return this.and(
946+
WOQL.triple("v:doc1", "type", "v:Enttype"),
947+
WOQL.triple("v:doc2", "type", "v:Enttype2"),
948+
WOQL.sub("v:Enttype", "tcs:Document"),
949+
WOQL.sub("v:Enttype2", "tcs:Document"),
950+
WOQL.triple("v:doc1", "v:Predicate", "v:doc2"),
951+
WOQL.opt().triple("v:doc1", "rdfs:label", "v:Label1"),
952+
WOQL.opt().triple("v:doc2", "rdfs:label", "v:Label2")
953+
);
954+
}
955+
956+
944957
WOQLQuery.prototype.getInstanceMeta = function(url){
945958
return this.and(
946959
WOQL.triple(url, "rdf:type", "v:InstanceType"),

0 commit comments

Comments
 (0)