Skip to content

Commit b3e757b

Browse files
authored
Merge pull request #68 from ali1k/v1.3.7
V1.3.7
2 parents a759929 + f03c92f commit b3e757b

File tree

5 files changed

+28
-30
lines changed

5 files changed

+28
-30
lines changed

components/object/editor/individual/PrefixBasedInput.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,13 @@ class PrefixBasedInput extends React.Component {
2323
};
2424
}
2525
componentDidMount() {
26+
//to initialize value in Property state
27+
this.props.onDataEdit(this.state.value);
28+
//focus on the input
2629
if (!this.props.noFocus) {
2730
ReactDOM.findDOMNode(this.refs.prefixBasedInput).focus();
2831
}
2932
}
30-
componentWillMount() {
31-
//to initialize value in Property state
32-
this.props.onDataEdit(this.state.value);
33-
}
3433
handleKeyDown(evt) {
3534
if (this.props.allowActionByKey) {
3635
switch (evt.keyCode) {

data/prefixes.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,6 @@ module.exports = {
621621
'uniprot': 'http://purl.uniprot.org/core/',
622622
'unit': 'http://qudt.org/vocab/unit#',
623623
'units': 'http://eulersharp.sourceforge.net/2003/03swap/unitsExtension#',
624-
'urn': 'http://fliqz.com/',
625624
'user': 'http://schemas.talis.com/2005/user/schema#',
626625
'usgov': 'http://www.rdfabout.com/rdf/schema/usgovt/',
627626
'uta': 'http://uptheasset.org/ontology#',

package.json

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,12 @@
9191
"yasgui-yasqe": "^2.11.22"
9292
},
9393
"devDependencies": {
94-
"@babel/core": "^7.0.0-bridge.0",
94+
"@babel/core": "^7.7.5",
9595
"babel-cli": "^7.0.0-beta.3",
96-
"babel-eslint": "^10.0.1",
97-
"babel-loader": "^8.0.4",
98-
"babel-plugin-add-module-exports": "^1.0.0",
99-
"babel-plugin-dev-expression": "^0.2.1",
96+
"babel-eslint": "^10.0.3",
97+
"babel-loader": "^8.0.6",
98+
"babel-plugin-add-module-exports": "^1.0.2",
99+
"babel-plugin-dev-expression": "^0.2.2",
100100
"babel-plugin-syntax-decorators": "^7.0.0-beta.3",
101101
"babel-plugin-syntax-dynamic-import": "^7.0.0-beta.3",
102102
"babel-plugin-transform-class-properties": "^7.0.0-beta.3",
@@ -106,26 +106,26 @@
106106
"babel-preset-react": "^7.0.0-beta.3",
107107
"babel-register": "^7.0.0-beta.3",
108108
"bundle-loader": "^0.5.6",
109-
"clean-webpack-plugin": "^2.0.0",
110-
"coveralls": "^3.0.2",
111-
"css-loader": "^2.0.2",
112-
"es6-promise": "^4.2.5",
113-
"eslint": "^5.6.1",
114-
"eslint-plugin-babel": "^5.2.1",
115-
"eslint-plugin-react": "^7.11.1",
109+
"clean-webpack-plugin": "^3.0.0",
110+
"coveralls": "^3.0.9",
111+
"css-loader": "^3.2.1",
112+
"es6-promise": "^4.2.8",
113+
"eslint": "^6.7.2",
114+
"eslint-plugin-babel": "^5.3.0",
115+
"eslint-plugin-react": "^7.17.0",
116116
"extract-text-webpack-plugin": "^4.0.0-beta.0",
117-
"husky": "^2.2.0",
117+
"husky": "^3.1.0",
118118
"json-loader": "^0.5.7",
119-
"nodemon": "^1.18.4",
119+
"nodemon": "^2.0.1",
120120
"postcss-loader": "^3.0.0",
121-
"react-hot-loader": "^4.3.11",
122-
"shelljs": "^0.8.2",
123-
"sloc": "^0.2.0",
124-
"style-loader": "^0.23.0",
125-
"webpack": "^4.20.2",
126-
"webpack-cli": "^3.1.2",
127-
"webpack-dev-server": "^3.1.9",
128-
"webpack-stats-plugin": "^0.2.1",
121+
"react-hot-loader": "^4.12.18",
122+
"shelljs": "^0.8.3",
123+
"sloc": "^0.2.1",
124+
"style-loader": "^1.0.1",
125+
"webpack": "^4.41.2",
126+
"webpack-cli": "^3.3.10",
127+
"webpack-dev-server": "^3.9.0",
128+
"webpack-stats-plugin": "^0.3.0",
129129
"webpack-vendor-chunk-plugin": "^1.0.0",
130130
"webpack-visualizer-plugin": "^0.1.11"
131131
}

services/sparql/ImportQuery.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ class ImportQuery{
4141
let propsSt = '';
4242
for(let prop in node){
4343
if(prop && prop !== '@type' && prop !=='@id'){
44-
propsSt = propsSt + `${validUrl.is_web_uri(prop.toString()) ? '<'+prop+'>': prop} ${validUrl.is_web_uri(node[prop].toString()) ? '<'+node[prop]+'>': '"""'+node[prop]+'"""'} ; `;
44+
propsSt = propsSt + `${validUrl.isUri(prop.toString()) ? '<'+prop+'>': prop} ${validUrl.isUri(node[prop].toString()) ? '<'+node[prop]+'>': '"""'+node[prop]+'"""'} ; `;
4545
}
4646
}
4747
this.query = this.query + `
4848
INSERT DATA {
4949
${gStart}
50-
${validUrl.is_web_uri(node['@id'].toString()) ? '<'+node['@id']+'>': node['@id']} a ${node['@type']} ;
50+
${validUrl.isUri(node['@id'].toString()) ? '<'+node['@id']+'>': node['@id']} a ${node['@type']} ;
5151
${propsSt}
5252
${userSt}
5353
ldr:createdOn "${currentDate}"^^xsd:dateTime .

services/utils/helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ export default {
262262
case 'bnode':
263263
case 'literal':
264264
// automatically detect uris even in literal values
265-
if(validUrl.is_web_uri(objectValue.toString())){
265+
if(validUrl.isUri(objectValue.toString())){
266266
newValue='<'+objectValue+'>';
267267
dtype = 'uri';
268268
}else{

0 commit comments

Comments
 (0)