Newbie questions
Thursday, 1 July 2010 · 2 messages · last reply 2 Jul 2010
NA
Nigel Alderton1 Jul 2010 23:09 #
Hi, I'm a BaseX newbie struggling with the basic "Hello world" type stuff and struggling to find documentation to answer my questions...
1. Where is the main body of BaseX documentation?
2. I can't see a service on my machine called "BaseX". What's doing the server-side work? I'm using Windows 7.
3. The PHP example does this... $cmd = "xquery 1 to 10" which it sends to the sever and gets a result. As far as I know that's not a normal valid xquery command yet it returns a result ok. I would expect $cmd = "1 to 10" to work ok but not $cmd = "xquery 1 to 10". Do all queries to BaseX using the PHP API have to start with the string "xquery ", followed by the xquery itself?
4. Where's the documentation for the PHP API so I can find the answer to the above question myself?
5. Is there a web-based forum for BaseX?
Thanks
Nigel
AW
Andreas Weiler2 Jul 2010 09:10 #
Dear Nigel,
Quoted text · Nigel Alderton · 1 line
> 1. Where is the main body of BaseX documentation?
Our homepage (docs & publications), the mailing list, and the source code all serve as documentation; due to lack ofresources, we can't offer you more.
Quoted text · Nigel Alderton · 2 lines
> 2. I can’t see a service on my machine called “BaseX”. What’s doing > the server-side work? I’m using Windows 7.
You have to start the BaseXServer in a console and then you can talk to it with your client. A service functionality which runs in the background of windows isnt available yet.
Quoted text · Nigel Alderton · 6 lines
> 3. The PHP example does this... $cmd = "xquery 1 to 10" which it sends > to the sever and gets a result. As far as I know that’s not a normal > valid xquery command yet it returns a result ok. I would expect $cmd = > "1 to 10" to work ok but not $cmd = "xquery 1 to 10". Do all queries > to BaseX using the PHP API have to start with the string “xquery “, > followed by the xquery itself?
You have to send the "xquery" keyword to the server for identify the correct command you want to execute. There are a lot of commands additional to "xquery" (see
http://www.inf.uni-konstanz.de/dbis/basex/commands).
If you use the QueryIteratorExample you can just send the query itself, like 1 to 10, cause here you can only execute queries and no other commands.
Quoted text · Nigel Alderton · 2 lines
> 4. Where’s the documentation for the PHP API so I can find the answer > to the above question myself?
There is a readme file
(https://svn.uni-konstanz.de/dbis/basex/trunk/api/etc/) and the code files it self are documented.
Quoted text · Nigel Alderton · 1 line
> 5. Is there a web-based forum for BaseX?
There is just this mailing-list, but your questions will be answered really fast.
I hope this helps, dont hesitate to ask for more.
Kind regards,
Andreas
Quoted text · Nigel Alderton · 33 lines
Nigel Alderton schrieb: > > Hi, I’m a BaseX newbie struggling with the basic “Hello world” type > stuff and struggling to find documentation to answer my questions... > > 1. Where is the main body of BaseX documentation? > > 2. I can’t see a service on my machine called “BaseX”. What’s doing > the server-side work? I’m using Windows 7. > > 3. The PHP example does this... $cmd = "xquery 1 to 10" which it sends > to the sever and gets a result. As far as I know that’s not a normal > valid xquery command yet it returns a result ok. I would expect $cmd = > "1 to 10" to work ok but not $cmd = "xquery 1 to 10". Do all queries > to BaseX using the PHP API have to start with the string “xquery “, > followed by the xquery itself? > > 4. Where’s the documentation for the PHP API so I can find the answer > to the above question myself? > > 5. Is there a web-based forum for BaseX? > > Thanks > > Nigel > > ------------------------------------------------------------------------ > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >
Written for BaseX 6. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery