% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/web-services.R
\title{Upload dataset}
upload_dataset(url, datasetName, folderPath, schemaName = NULL)
\item{url}{string url of server: It must contain the server address 
and base url; service name is added automatically}

\item{datasetName}{name of dataset to create in repository}

\item{folderPath}{string local path to the folder containing the samples 

\item{schemaName}{string name of schema used to parse the samples;
schemaName available are:
if schemaName is NULL, it looks for a XML schema file to read in the 

\item{isGMQL}{logical value indicating whether it is uploaded a GMQL 
dataset or not}
It uploads a folder (GMQL or not) containing sample files using 
the proper GMQL web service available on a remote server: 
a new dataset is created on remote repository
If no error occurs, it prints "Upload Complete", otherwise a specific error 
is printed

The folder layout must obey the following rules and adopt 
the following layout:
The dataset folder can have any name, but must contains the 
sub-folders named: "files".
The sub-folder "files" contains the dataset files and 
the schema xml file.
The schema files adopt the following the naming conventions:

- "schema.xml"
- "test.schema"

The names must be in LOWERCASE. Any other schema file 
will not be conisdered, if both are present, "test.schema" will be used.


## This statement defines the path to the folder "DATASET_GDM" in the 
## subdirectory "example" of the package "RGMQL"

test_path <- system.file("example", "DATASET_GDM", package = "RGMQL")

## Login to GMQL REST services suite at remote url

remote_url <- "http://www.gmql.eu/gmql-rest/"

## Upload of GMQL dataset with "dataset1" as name, without specifying any 
## schema 

upload_dataset(remote_url, "dataset1", folderPath = test_path)