Skip to content

Commit ba5f7c4

Browse files
committed
test docjs
1 parent 45f88a4 commit ba5f7c4

File tree

5 files changed

+874
-490
lines changed

5 files changed

+874
-490
lines changed

index.html

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<title>Woql Client</title>
6+
</head>
7+
<body>
8+
<script type="text/javascript">
9+
var dbClient= new TerminusClient.WOQLClient();
10+
11+
var connection=dbClient.connect("http://localhost");
12+
13+
connection.then((response)=>{
14+
console.log("I'm connect")
15+
dbClient.getSchema(getSchema,{"terminus:encoding":"terminus:turtle"}).then((response)=>
16+
console.log("getSchema RESPONSE OK")).catch((err)=>{
17+
console.log("PROMISE reject", 'GETSCHEMA');
18+
});
19+
20+
}).catch((err)=>{
21+
console.log("PROMISE reject", 'CONNECTION');
22+
});
23+
24+
var getSchema='terminus';
25+
26+
</script>
27+
28+
</body>
29+
</html>

lib/query/woqlBuilder.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
//WOQLQuery
2-
//const WOQLQuery = require('./woqlCore')
3-
const WOQLQueryImp = require('./woqlSchema')
2+
/**
3+
* module WOQLQuery
4+
*/
5+
const WOQLQuery = require('./woqlSchema')
46
const WOQLLibrary = require('./woqlLibrary')
57

6-
class WOQLQuery extends WOQLQueryImp {
8+
/*class WOQLQuery extends WOQLQueryImp {
79
constructor(query) {
810
super(query)
911
}
10-
}
12+
}*/
1113

1214
/**
1315
* Simple composite functions which produce WOQL queries

0 commit comments

Comments
 (0)