Skip to content

Commit 46f0e60

Browse files
committed
Fix old documentation and remove old scripts
1 parent e898fef commit 46f0e60

File tree

5 files changed

+2
-275
lines changed

5 files changed

+2
-275
lines changed

docs/createDocs.js

Lines changed: 0 additions & 213 deletions
This file was deleted.

docs/navigationModel.js

Lines changed: 0 additions & 49 deletions
This file was deleted.

lib/query/woqlQuery.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1558,7 +1558,7 @@ WOQLQuery.prototype.true = function () {
15581558
* @param {string|Var} subject - An IRI or variable that refers to an IRI representing the subject,
15591559
* i.e. the starting point of the path
15601560
* @param {string} pattern -(string) - A path regular expression describing a pattern through
1561-
* multiple edges of the graph (see: https://terminusdb.com/docs/index/terminusx-db/how-to-guides/path-queries)
1561+
* multiple edges of the graph (see: https://terminusdb.com/docs/path-query-reference-guide)
15621562
* @param {string|Var} object - An IRI or variable that refers to an IRI representing the object,
15631563
* i.e. ending point of the path
15641564
* @param {string|Var} [resultVarName] - A variable in which the actual paths

lib/woql.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1055,7 +1055,7 @@ WOQL.true = function () {
10551055
* @param {string|Var} subject - An IRI or variable that refers to an IRI representing the subject,
10561056
* i.e. the starting point of the path
10571057
* @param {string} pattern -(string) - A path regular expression describing a pattern through
1058-
* multiple edges of the graph (see: https://terminusdb.com/docs/index/terminusx-db/how-to-guides/path-queries)
1058+
* multiple edges of the graph (see: https://terminusdb.com/docs/path-query-reference-guide)
10591059
* @param {string|Var} object - An IRI or variable that refers to an IRI representing the object,
10601060
* i.e. ending point of the path
10611061
* @param {string|Var} [resultVarName] - A variable in which the actual paths

lib/woqlClient.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ const WOQLQuery = require('./query/woqlCore');
2424
* should never have to be accessed directly. For situations where you want to communicate
2525
* with a TerminusDB server API, the WOQLClient class is all you will need.
2626
*/
27-
2827
class WOQLClient {
2928
connectionConfig = null;
3029

@@ -1053,7 +1052,6 @@ WOQLClient.prototype.prepareRevisionControlArgs = function (rc_args) {
10531052
* "add new schema", response.dataVersion,
10541053
* )
10551054
*/
1056-
10571055
WOQLClient.prototype.addDocument = function (json, params, dbId, message = 'add a new document', lastDataVersion = '', getDataVersion = false, compress = false) {
10581056
if (dbId) {
10591057
this.db(dbId);
@@ -1130,7 +1128,6 @@ WOQLClient.prototype.addDocument = function (json, params, dbId, message = 'add
11301128
* response.dataVersion
11311129
* );
11321130
*/
1133-
11341131
WOQLClient.prototype.queryDocument = function (query, params, dbId, branch, lastDataVersion = '', getDataVersion = false) {
11351132
if (dbId) {
11361133
this.db(dbId);
@@ -1319,7 +1316,6 @@ WOQLClient.prototype.getDocument = function (params, dbId, branch, lastDataVersi
13191316
"children":[{"@type": "Person","name": "child01"}]
13201317
},{create:true})
13211318
*/
1322-
13231319
WOQLClient.prototype.updateDocument = function (json, params, dbId, message = 'update document', lastDataVersion = '', getDataVersion = false, compress = false, create = false) {
13241320
const docParams = params || {};
13251321
docParams.author = this.author();
@@ -1382,7 +1378,6 @@ WOQLClient.prototype.updateDocument = function (json, params, dbId, message = 'u
13821378
* response.dataVersion,
13831379
* )
13841380
*/
1385-
13861381
WOQLClient.prototype.deleteDocument = function (params, dbId, message = 'delete document', lastDataVersion = '', getDataVersion = false) {
13871382
const docParams = params || {};
13881383
let payload = null;
@@ -1414,7 +1409,6 @@ WOQLClient.prototype.deleteDocument = function (params, dbId, message = 'delete
14141409
* @example
14151410
* client.getSchemaFrame("Country")
14161411
*/
1417-
14181412
WOQLClient.prototype.getSchemaFrame = function (type, dbId) {
14191413
let params;
14201414
if (type) params = { type };
@@ -1432,7 +1426,6 @@ WOQLClient.prototype.getSchemaFrame = function (type, dbId) {
14321426
* @example
14331427
* client.getSchema()
14341428
*/
1435-
14361429
WOQLClient.prototype.getSchema = function (dbId, branch) {
14371430
const params = { graph_type: 'schema', as_list: true };
14381431
return this.getDocument(params, dbId, branch);
@@ -1779,7 +1772,6 @@ WOQLClient.prototype.getVersionObjectDiff = function (dataVersion, jsonObject, i
17791772
* console.log(diffResult)
17801773
* })
17811774
*/
1782-
17831775
WOQLClient.prototype.getVersionDiff = function (beforeVersion, afterVersion, id, options) {
17841776
if (typeof beforeVersion !== 'string' || typeof afterVersion !== 'string') {
17851777
const errmsg = 'Error, you have to provide a beforeVersion and afterVersion input';
@@ -1819,7 +1811,6 @@ WOQLClient.prototype.getVersionDiff = function (beforeVersion, afterVersion, id,
18191811
* console.log(result)
18201812
* })
18211813
*/
1822-
18231814
// eslint-disable-next-line max-len
18241815
WOQLClient.prototype.apply = function (beforeVersion, afterVersion, message, matchFinalState, options) {
18251816
const opt = options || {};
@@ -1855,7 +1846,6 @@ WOQLClient.prototype.apply = function (beforeVersion, afterVersion, message, mat
18551846
* console.log(result)
18561847
* })
18571848
*/
1858-
18591849
// eslint-disable-next-line max-len
18601850
WOQLClient.prototype.docHistory = function (id, historyParams) {
18611851
const params = historyParams || {};
@@ -1877,7 +1867,6 @@ WOQLClient.prototype.docHistory = function (id, historyParams) {
18771867
* console.log(result)
18781868
* })
18791869
*/
1880-
18811870
WOQLClient.prototype.sendCustomRequest = function (requestType, customRequestURL, payload) {
18821871
return this.dispatch(
18831872
requestType,

0 commit comments

Comments
 (0)