File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
views/pages/api_new/v1/xml Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -5,3 +5,5 @@ openml_OS/third_party/OpenML/Java/old-evaluate.jar
55docs /site /
66* .icloud
77* .DS_store
8+ openml_OS /vendor /
9+ openapi /vendor /
Original file line number Diff line number Diff line change @@ -581,6 +581,7 @@ private function data_fork() {
581581 $ latest_version = $ this ->Dataset -> getWhereSingle ('`name` = " ' . $ dataset ->name . '" ' , 'CAST(`version` AS DECIMAL) DESC ' );
582582 $ dataset ->version = $ latest_version ->version + 1 ;
583583 unset($ dataset ->did );
584+
584585 $ new_data_id = $ this ->Dataset ->insert ($ dataset );
585586 if (!$ new_data_id ) {
586587 $ this ->returnError (1072 , $ this ->version );
@@ -934,7 +935,6 @@ private function data_reset($data_id) {
934935 * ),
935936 *)
936937 */
937-
938938 private function data_add_topic ($ id , $ topic ) {
939939 # Data id and topic are required
940940 if ($ id == false || $ topic == false ) {
@@ -1281,6 +1281,7 @@ private function data_upload() {
12811281 $ this ->returnError (134 , $ this ->version );
12821282 return ;
12831283 }
1284+
12841285 $ desc ['did ' ] = $ id ;
12851286 $ desc_id = $ this ->Dataset_description ->insert ($ desc );
12861287 if (!$ desc_id ) {
@@ -1735,7 +1736,7 @@ private function data_features_upload() {
17351736 } else {
17361737 $ nominal_values = false ;
17371738 }
1738-
1739+
17391740 //actual insert of the feature
17401741 if (array_key_exists ('ontology ' , $ feature )) {
17411742 $ ontologies = $ feature ['ontology ' ];
Original file line number Diff line number Diff line change 529529$ this ->apiErrors [1071 ] = 'Unknown dataset ' ;
530530$ this ->apiErrors [1072 ] = 'Failed to insert record in database ' ;
531531
532-
533532//openml.data.topic
534533$ this ->apiErrors [1080 ] = 'Please provide a dataset id and a topic. ' ;
535534$ this ->apiErrors [1081 ] = 'Unknown dataset. ' ;
551550$ this ->apiErrors [1104 ] = 'Failure to write to the database ' ;
552551$ this ->apiErrors [1105 ] = 'Feature description too long ' ;
553552$ this ->apiErrors [1106 ] = 'Feature description meant as ontology, but is not a valid URL ' ;
554-
555553?>
You can’t perform that action at this time.
0 commit comments