man/compile_query.Rd
94a33e57
 % Generated by roxygen2: do not edit by hand
48ab60c3
 % Please edit documentation in R/web-services.R
94a33e57
 \name{compile_query}
 \alias{compile_query}
48ab60c3
 \alias{compile_query}
 \alias{compile_query_fromfile}
94a33e57
 \title{Compile GMQL query}
 \usage{
 compile_query(url, query)
48ab60c3
 
 compile_query_fromfile(url, filePath)
94a33e57
 }
 \arguments{
 \item{url}{string url of server: It must contain the server address 
 and base url; service name is added automatically}
 
dda0cfa0
 \item{query}{string text of a GMQL query}
48ab60c3
 
e5131ba8
 \item{filePath}{string path of txt file containing a GMQL query}
94a33e57
 }
 \value{
 None
 }
 \description{
e5131ba8
 It compiles a GMQL query taken from file or inserted as text string, 
 using the proper GMQL web service available on a remote server
94a33e57
 }
 \examples{
48ab60c3
 
e5131ba8
 ## Login to GMQL REST services suite as guest
 
025f71e2
 remote_url = "http://www.gmql.eu/gmql-rest/"
94a33e57
 login_gmql(remote_url)
e5131ba8
 
dda0cfa0
 ## This statement gets the query as text string and runs the compile 
e5131ba8
 ## web service
 
 compile_query(remote_url, "DATASET = SELECT() Example_Dataset_1;
dda0cfa0
     MATERIALIZE DATASET INTO RESULT_DS;")
48ab60c3
 
e5131ba8
 
 ## This statement defines the path to the file "query1.txt" in the 
 ## subdirectory "example" of the package "RGMQL" and run the compile 
 ## web service
 
48ab60c3
 test_path <- system.file("example", package = "RGMQL")
 test_query <- file.path(test_path, "query1.txt")
 compile_query_fromfile(remote_url, test_query)
18697071
 
dda0cfa0
 ## Logout from GMQL REST services suite
18697071
 
 logout_gmql(remote_url)
48ab60c3
 
94a33e57
 }