File tree Expand file tree Collapse file tree 5 files changed +874
-490
lines changed Expand file tree Collapse file tree 5 files changed +874
-490
lines changed Original file line number Diff line number Diff line change
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 >
Original file line number Diff line number Diff line change 1
1
//WOQLQuery
2
- //const WOQLQuery = require('./woqlCore')
3
- const WOQLQueryImp = require ( './woqlSchema' )
2
+ /**
3
+ * module WOQLQuery
4
+ */
5
+ const WOQLQuery = require ( './woqlSchema' )
4
6
const WOQLLibrary = require ( './woqlLibrary' )
5
7
6
- class WOQLQuery extends WOQLQueryImp {
8
+ /* class WOQLQuery extends WOQLQueryImp {
7
9
constructor(query) {
8
10
super(query)
9
11
}
10
- }
12
+ }*/
11
13
12
14
/**
13
15
* Simple composite functions which produce WOQL queries
You can’t perform that action at this time.
0 commit comments