Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Commit a470973

Browse files
committed
renamed Node to Concept, updated some packages
1 parent be0f32d commit a470973

File tree

9 files changed

+374
-290
lines changed

9 files changed

+374
-290
lines changed

.npmignore

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,64 @@
1+
## Everything in .gitignore
2+
3+
# Logs
4+
logs
5+
*.log
6+
npm-debug.log*
7+
yarn-debug.log*
8+
yarn-error.log*
9+
10+
# Runtime data
11+
pids
12+
*.pid
13+
*.seed
14+
*.pid.lock
15+
16+
# Directory for instrumented libs generated by jscoverage/JSCover
17+
lib-cov
18+
19+
# Coverage directory used by tools like istanbul
20+
coverage
21+
22+
# nyc test coverage
23+
.nyc_output
24+
25+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
26+
.grunt
27+
28+
# Bower dependency directory (https://bower.io/)
29+
bower_components
30+
31+
# node-waf configuration
32+
.lock-wscript
33+
34+
# Compiled binary addons (http://nodejs.org/api/addons.html)
35+
build/Release
36+
37+
# Dependency directories
38+
node_modules/
39+
jspm_packages/
40+
41+
# Typescript v1 declaration files
42+
typings/
43+
44+
# Optional npm cache directory
45+
.npm
46+
47+
# Optional eslint cache
48+
.eslintcache
49+
50+
# Optional REPL history
51+
.node_repl_history
52+
53+
# Output of 'npm pack'
54+
*.tgz
55+
56+
# Yarn Integrity file
57+
.yarn-integrity
58+
59+
# dotenv environment variables file
60+
.env
61+
62+
## Additional files
163
.travis.yml
264
codecov.yml

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ cbm.getURI('a (big) dog!'); //-> big_dog
6060

6161
### `.search(...args)`
6262

63-
This method finds all the functions that correspond to given nodes and returns an array containing them. It can be called with two different ways. Either by providing only an object containing the search parameters or by providing the parameters themselves as arguments. This method is asynchronous and returns a promise that, when fulfilled, returns an object with two properties.`statusCode` which contains the status code of the request and `body` that holds the result set from the query. For a full overview of search parameters, check the [documentation](https://github.com/cbmjs/CallByMeaning/blob/master/docs/GETBYMEANING.md).
63+
This method finds all the functions that correspond to given concepts and returns an array containing them. It can be called with two different ways. Either by providing only an object containing the search parameters or by providing the parameters themselves as arguments. This method is asynchronous and returns a promise that, when fulfilled, returns an object with two properties.`statusCode` which contains the status code of the request and `body` that holds the result set from the query. For a full overview of search parameters, check the [documentation](https://github.com/cbmjs/CallByMeaning/blob/master/docs/GETBYMEANING.md).
6464

6565
Example code:
6666

6767
```javascript
68-
cbm.search({'inputNodes': 'date', 'outputNodes': 'time'}).then((result) => {
68+
cbm.search({'inputConcepts': 'date', 'outputConcepts': 'time'}).then((result) => {
6969
if (result.statusCode === 200) console.log('Success!');
7070
// insert code here
7171
}).catch((error) => console.error(error));
@@ -86,10 +86,10 @@ Example code:
8686
const bday = new Date(1994, 2, 24);
8787

8888
cbm.call({
89-
'inputNodes': 'date',
89+
'inputConcepts': 'date',
9090
// 'date' doesn't have a unit, so we can omit it, or pass {'inputUnits': null} or {'inputUnits': []} or {'inputUnits: '-'} or {'inputUnits': 'date'}
9191
'inputVars': bday,
92-
'outputNodes': 'time',
92+
'outputConcepts': 'time',
9393
'outputUnits': 'seconds'
9494
}.then((result) => {
9595
if (result.statusCode === 200) console.log('Success!');
@@ -114,13 +114,13 @@ getTime();
114114
115115
## `.create(params[, type])`
116116
117-
This method creates a document in the server if it doesn't exist or modifies it, if it does. It accepts a [params](https://github.com/cbmjs/CallByMeaning/blob/master/docs/MODELS.md) object with the document parameters as its first argument and a string containing the type of the document. It can be one of `node`, `function`, `relation`. If it isn't provided, it defaults to `node`. This method is asynchronous and returns a promise that, when fulfilled, returns a boolean, depending of its success.
117+
This method creates a document in the server if it doesn't exist or modifies it, if it does. It accepts a [params](https://github.com/cbmjs/CallByMeaning/blob/master/docs/MODELS.md) object with the document parameters as its first argument and a string containing the type of the document. It can be one of `concept`, `function`, `relation`. If it isn't provided, it defaults to `concept`. This method is asynchronous and returns a promise that, when fulfilled, returns a boolean, depending of its success.
118118

119119
Example code:
120120

121121
```javascript
122122
let params = {
123-
name: 'aNode',
123+
name: 'aConcept',
124124
desc: 'aDescription',
125125
};
126126
cbm.create(params);

0 commit comments

Comments
 (0)