Skip to content

Commit 47203ea

Browse files
committed
change createDatabase input
1 parent 6bacedf commit 47203ea

File tree

1 file changed

+17
-20
lines changed

1 file changed

+17
-20
lines changed

Readme.md

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -104,28 +104,25 @@ Create a new terminusDB database
104104

105105
```js
106106

107-
108107
var details={
109-
"@context":{
110-
"rdfs":"http://www.w3.org/2000/01/rdf-schema#",
111-
"terminus":"http://terminusdb.com/schema/terminus#",
112-
"_":"http://localhost:6363/myFirstTerminusDB/"
113-
},
114-
"@type":"terminus:Database",
115-
"rdfs:label":{
116-
"@language":"en",
117-
"@value":"new db tests"
118-
},
119-
"rdfs:comment":{
120-
"@language":"en",
121-
"@value":"new db description"
122-
},
123-
"terminus:allow_origin":{
124-
"@type":"xsd:string",
125-
"@value":"*"
126-
},
127-
"@id":"http://localhost:6363/myFirstTerminusDB"
108+
"@context": {
109+
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
110+
"terminus": "http://terminusdb.com/schema/terminus#"
111+
},
112+
"@type": "terminus:Database",
113+
"rdfs:label": {
114+
"@language": "en",
115+
"@value": "my first test"
116+
},
117+
"rdfs:comment": {
118+
"@language": "en",
119+
"@value": "document test"
120+
},
121+
"terminus:allow_origin": {
122+
"@type": "xsd:string",
123+
"@value": "*"
128124
}
125+
}
129126

130127
//Create a new Database in the current terminusDB server using the terminusDB server Api key
131128
//dburl is the new Database Id

0 commit comments

Comments
 (0)