Dannes Wessels | 2 Nov 11:28 2008

Re: Document locking (again)

Hi,

On 30 Oct 2008, at 23:33 , Alister Pillow wrote:

> A file (in the database) opened by Oxygen using webdav becomes locked,

When a document is locked using webDAV, a 'normal document lock' is  
performed, and an additional LOCK-token is stored together with the  
document. It is not possible to access this locktoken using xquery  
functions.

Kind regards

Dannes

--
eXist-db Open Source Native XML Database
http://exist-db.org

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Picon

Re: New full text index based on Lucene

Hi Wolfgang,
	first of all, very nice job on eXist and Lucene indexes! Two weeks ago I
started evaluating your new FTI index module based on Lucene, and I have to
say that it scales up much better than the "hardcoded" FTI module.

	I have been doing some load tests with a real bioinformatics dataset
(MedLine, which has 61GB of XML files in my local snapshot), and Lucene
indexes behave much better, because I was able to load the whole set, at once
(with no hand-made subcollection distribution trick), using less memory than
using "hardcoded" FTI (4GB vs 1.5GB), and faster (three days in the best case
vs almost two with Lucene).

	My query tests worked as expected, and Lucene indexes seem faster than
"hardcoded" FTI in various scenarios I'm usually checking (empty index cache,
populated index cache, etc...). As I don't have written down response times
comparing both of them I cannot assure my last sentence.

	Congratulations!
		José María

PS: Now the only unrelated problem I wish Santa to solve is index statistics
usage by query planner and query execution manager, so the infamous
OutOfMemoryError is "banished" on complex queries.

Wolfgang Meier wrote:
> Hi Joe,
> 
> I did some quick tests with TEI data and it all works as expected for
> me. There's also a test suite for the full text feature, which covers
> quite a lot of cases.
(Continue reading)

Joe Wicentowski | 3 Nov 02:11 2008
Picon

"build.bat svn-update" problem

Hi eXist list,

Has anyone had the problem when you run eXist's build script to update
eXist from SVN, and you get an error like this:

>  svn-update:
>        [java] svn: Failed to add file '.project': object of the same name already exists

Can you explain why this is happening?  Is the svn update working
despite the error?  Here are the steps I followed:

1. Download a recent tarball of eXist on WinXP -- for example,
http://exist.svn.sourceforge.net/viewvc/exist/trunk/eXist.tar.gz?view=tar&pathrev=8286
(this is about 10 revisions behind) -- and unpack to C:\Program
Files\eXist
2. Before building, edit extensions\build\indexes\build.properties to
change lucene to 'true'.  (note: this probably has no effect, but I'm
including it since I'm going through this step these days)
3. Build eXist with 'build.bat'
4. Get eXist's SVN libraries with 'build.bat svn-download'
5. Download latest eXist from SVN with 'build.bat svn-update'.  I get the error:
>  svn-update:
>        [java] svn: Failed to add file '.project': object of the same name already exists
... although the build script reports 'BUILD SUCCESSFUL', this appears
to be incorrect...  If the svn had succeeded, it would've listed each
file it updated.

I'm trying to incorporate eXist's SVN build into my workflow for
updating to recent builds, so fixing an error like this would really
help!
(Continue reading)

Paul Kelly | 3 Nov 03:20 2008

Re: What's going on with the latest build from SVN!?!?!

At 12:04 AM -0400 10/8/08, Andrzej Jan Taramina wrote:
>Got the command line backup to work as well, but I had to change the uri of our eXist instance in the backup.properties
>file.

Are there instructions anywhere for getting the command-line backup to work with tomcat? (Andrzej uses
tomcat so that's why I'm using this thread to ask the question.)
--

-- 
--paul

Paul Kelly
Dir. of Operations
XML Team: http://xmlteam.com

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Dannes Wessels | 3 Nov 08:33 2008

Re: What's going on with the latest build from SVN!?!?!

Hi,

On Mon, Nov 3, 2008 at 3:20 AM, Paul Kelly <paul <at> xmlteam.com> wrote:
> Are there instructions anywhere for getting the command-line backup to work with tomcat? (Andrzej uses
tomcat so that's why I'm using this thread to ask the question.)

sorry, if you want to use the command line client, you'll need the
whole exist package. It should possible with the jars that are
available  in the .war file, but it is not very easy. We used to have
scripts in the war file as well, but maintenance and support was not a
nice thing to do ; misc. unix flavours, windows, etc....

So with some 'basic java and scripting skills' it is possible......

regards

Dannes

--
eXist-db Native XML Database
http://exist-db.org

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Dannes Wessels | 3 Nov 08:28 2008

Re: "build.bat svn-update" problem

Hi.

On Mon, Nov 3, 2008 at 2:11 AM, Joe Wicentowski <joewiz <at> gmail.com> wrote:
>>  svn-update:
>>        [java] svn: Failed to add file '.project': object of the same name already exists
>
> Can you explain why this is happening?  Is the svn update working
> despite the error?  Here are the steps I followed:

This message you typically get when SVN tries to checkout a file for
which already a file exists on the file system, and... then there is
no administration available in a corresponding .svn directory.

I think getting a tar from sf.net <without SVN meta information
inside> and then running svn update just will not work. I guess you'll
need to check-out the whole code tree from svn.....

Maybe there are some svn tweaks, but I can't imagine that.

regards

Dannes

ps.
a good svn client, easy to install and to use when java is available:
www.svnkit.com

--
eXist-db Native XML Database
http://exist-db.org
(Continue reading)

Andrzej Jan Taramina | 2 Nov 23:18 2008

Re: Lots of little XML documents or one large composite one?

Ivan:

> From modeling point of view you want to manage smallest logical 
> entities, so 
> it would be easier to store every eMail in separate document.
>    But taking into consideration limitation of persistence engine I 
> would 
> suggest to write an intermediate layer that would store messages in 
> groups but 

That is the approach I was thinking of taking. Nothing an extra layer of
indirection can't fix. ;-)

>    On the other hand, I would discourage you to use XML database to 
> store 
> messages. 

The issue here is that it's not really "email" though it has elements of
such.  Closed community, to guarantee secure communications (required in
healthcare when you might be discussing patient information).  And the
core app is already written in eXist/XQuery, so writing a messaging
implementation that is browser based and integrating it with the core
app would be much simpler if developed in the same environment.

There are many eMail database implementations. Worse case
> scenario 
> unix mbox format + lucene will give you much better performance.

Ah...but premature optimization is the root of all evil, at least
according to more august thinkers than myself. ;-)  I'm thinking it
(Continue reading)

Wolfgang | 3 Nov 13:16 2008

Re: What's going on with the latest build from SVN!?!?!

> sorry, if you want to use the command line client, you'll need the
> whole exist package. It should possible with the jars that are
> available  in the .war file, but it is not very easy.

You can use the bootstrap loader in start.jar. It will automatically set 
up the correct classpath. Within your webapp/exist directory, enter:

java -jar WEB-INF/lib/start.jar backup

this is documented here:

http://exist-db.org/quickstart.html#appendix

Wolfgang

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Fraser Hore | 3 Nov 23:11 2008
Picon

Re: Conditional imports in XQueries?

This function in atom.xql in the Atomic wiki application grabs the functions listed in the configuration.xml file and outputs a list of import module namespace statements:

declare function atom:module-imports() as xs:string {
    let $imports :=
        for $module in doc("/db/atom/configuration.xml")//extensions/module
        return
            concat('import module namespace ', $module/ <at> prefix, '="', $module/ <at> namespace,
            '" at "', $module/ <at> path, '";')
    return
        string-join($imports, '')
};

This appears to imply that there is some way to use a function like this to dymanically and conditionally import modules, or is this function for some other purpose?

Cheers,

Fraser



On Mon, Nov 3, 2008 at 5:09 PM, Pierrick Brihaye <pierrick.brihaye <at> free.fr> wrote:
Hi,

Andrzej Jan Taramina a écrit :

>> These checks need to be done at a higher level in your application.
>
> Higher level?  Not sure what you mean by that.

I mean that your application should first check what modules are
available (using fn:doc-available() or similar) then offer the
functionalities those modules can provide.

Well, a traditional (remember the function-available() function in XSLT
;-) ?) application design approach... :-)

Cheers,

p.b.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
Andrzej Jan Taramina | 3 Nov 23:36 2008

Re: Conditional imports in XQueries?

Wolfgang wrote:

> You may have a look at the function
> 
> util:import-module($moduleNamespace as xs:anyURI, $prefix as xs:string,
> $location as xs:anyURI)
> 
> I created this a while back, but did not really use it since then. It
> should be ok though.

Brilliant!  This is exactly what I am looking for, Wolfie!  Trivial to
do a check if the module exists before you import it.  Nice!

Thanks!

--

-- 

Andrzej Taramina
Chaeron Corporation: Enterprise System Solutions
http://www.chaeron.com

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

Gmane