Re: [basex-talk] XDM metadata (SOLVED)

2020-02-13 Thread Ben Engbers
Op 12-02-2020 om 10:23 schreef Ben Engbers:

While reading the online-documentation, I saw that there was a internal
link to
http://www.docs.basex.org/wiki/Server_Protocol:_Types#XDM_Meta_Data in
which was described that in most case, the XDM meta data is nothing else
than the Type ID.

So my code is giving the expected results.

Ben


Re: [basex-talk] XDM metadata (SOLVED)

2020-02-13 Thread Christian Grün
Glad to hear!

On Thu, Feb 13, 2020 at 3:31 PM Ben Engbers  wrote:
>
> Op 12-02-2020 om 10:23 schreef Ben Engbers:
>
> While reading the online-documentation, I saw that there was a internal
> link to
> http://www.docs.basex.org/wiki/Server_Protocol:_Types#XDM_Meta_Data in
> which was described that in most case, the XDM meta data is nothing else
> than the Type ID.
>
> So my code is giving the expected results.
>
> Ben


Re: [basex-talk] Full text and stopwords

2020-02-13 Thread Christian Grün
Hi Ben,

> According to the docs, a stopword list can be used to decrease the size
> of the full text index. I had no problems when using this list while
> creating a database.
>
> Is it also possible to use this list for other purposes?

Yes. As it’s a simple word list, you can use do with it whatever you want.

> According to XQueryX 3.1.pdf it is possible to use a sequence of
> stopwords in a query:
> /books/book[@number="1"]//p contains text "propagating of errors"
> using stop words ("a", "the", "of").
>
> How can I use this list in BaseX while building querys?

The grammar requires the list to be a sequence of string literals. In
practice, it’ll be always be a better move to supply a URI.

> Is it possible to add words to the list, after that is has been loaded?
> Suppose that it shows that my text contains a lot of names that I want
> to exclude. How can I add those names to the stopwords list?

You can add your words to the text file and recreate the index based
on that file.

> Would it be a good approach to create a separate database for stop words
and sentiments?

It depends on your requirements. TIMTOWTDI ;)

Christian


[basex-talk] Flat XML fods database

2020-02-13 Thread thufir

Hi all,

I've loaded a .fods file from Libre Office into BaseX and am looking to 
identify bold cells.  This is totally off-topic to BaseX itself, but 
does anyone have experience in working with .fods files?



thanks,

Thufir