Pascal Georges wrote:
Hi!
> Today, I also had some thoughts about unique id's. Probably a
> structured ID would be a good approach. One could use a structure
> already common in URN or DOI services. For a chess DB it could look
> like this:
>
> DBID:Version-Number
>
> E.g.
>
> CentriScid:10-123456
> CentriScid:10-654321
>
> One could imagine a structure like:
>
> CentriScid:12-123654 ply-count solution
> CentriScid:14-222333 ply-count solution
> ...
>
>
> From a programmer point of view and for something more human readable,
> I prefer
>
> CentriScid_ID 123456
> CentriScid_Version 10
> CentriScid_TacticPly 23
> CentriScid_TacticSolution Nxf3 ...
> CentriScid_OpeningBlunder 7
> CentriScid_OpeningBlunderSideToMove black
This has a major disadvantage. How do I cite that game? By
just printing out the whole block? Consider I'd want to show
the game easily with a single tag you could do something
like
$ scid CentriScid -search CentriScid:12-123456
And IMHO the one liner is readable enough. That are my
thoughts for the ID. (Actually, as a user you do not have to
understand how this ID is created, but just know how to use
it.)
For the second part: this table was meant as an input file
for a parser (yet to write) that extracts training sessions
from the large reference db, strips off what is not needed
and just generates the training material wished for by
generating a suitable new scid DB. This part does not have
to be human readable (at least this is not its main concern)
but easily parsable. So, there was a severe
missunderstanding here. ;)
> And I strongly suggest to use PGN tags for these, if it
> was not already the idea (sorry if I did not get it). This
> system spares parsing time and searches should be fast
> enough, without particular indexing.
Searching for additional PGN tags is terribly slow. I do
this all the time when I add [Ref]-tags to my larger DB to
crosscheck that I did not miss to flag the games in question
correctly and it is plain PITA. Sorry. Just searching the DB
takes about half an hour to come to the result list. :(
This could only be solved (IMHO) if indexing is added for
_all_ pgn tags within the DB. I do not know whether this is
possible.
--
Kind regards, / War is Peace.
| Freedom is Slavery.
Alexander Wagner | Ignorance is Strength.
|
| Theory : G. Orwell, "1984"
/ In practice: USA, since 2001
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Scid-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scid-users