Web based family history software

Question Newcomer User/Developer - Platform Overview?

More
8 months 1 week ago #1 by tonyg
message

Please Log in or Create an account to join the conversation.

  • bertkoor
  • Offline
  • Platinum Member
  • Platinum Member
  • Greetings from Utrecht, Holland
More
8 months 1 week ago #2 by bertkoor
Replied by bertkoor on topic Newcomer User/Developer - Platform Overview?

I have no idea of exactly how wt_getcom and it's tables work.

For merely running a site with webtrees, you don't need to ;-)
To me the database is a black box. You never really need to look at it or intervene with it.

Only if you start developing custom modules... you need to interact with the webtrees core code, which then still is responsible for interacting with the database. I think even when writing customizations, then direct contact with the database is discouraged.

One thing I do know worth knowing is that the primary GEDCOM records (Individual, Family, Note, Media, Source, Repository) are all stored basically as rough GEDCOM text with data derived from that in separate tables for indexed searching: names, dated events, addresses, etc.

stamboom.BertKoor.nl runs on webtrees v2.1.20

Please Log in or Create an account to join the conversation.

More
8 months 1 week ago - 8 months 1 week ago #3 by fisharebest
Replied by fisharebest on topic Newcomer User/Developer - Platform Overview?
> I'm surprised at the lack of links between families, individuals, places, dates, etc

Our "master" copy of the data is the GEDCOM data. This is free-text. It doesn't lend itself to structured databases.

From this we create tables containing search-indexes (tables: dates, places, links) which allows us to create reports, searches, lists, etc. These are updated every time we edit a record.

I'm currently working on improvements to these "search index" tables. But the master-copy will remain the GEDCOM data (tables: individuals, families, sources, media, other).

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Last edit: 8 months 1 week ago by fisharebest.

Please Log in or Create an account to join the conversation.

More
8 months 1 week ago #4 by tonyg
Good confirmation on the search-indexes, thanks! Could you complete the list of those tables so that I/we can understand that they are secondary tables and not primary? I'm hoping you might just say that anything at the bottom of my screenshot above, not linked, is a search-index table.

Please Log in or Create an account to join the conversation.

More
8 months 1 week ago #5 by tonyg
Are there common functions to be used for extracting specific fields from the GED text or inserting fields into an existing record?
Anything that extracts a link from GED to another record (like media) or creates a correct link for insertion to the GED text?
For standardization and to avoid misformatting of text that will be processed by other GEDCOM parsers, I'm thinking the platform would not be oriented toward repeated instances of common text manipulation.

TY

Please Log in or Create an account to join the conversation.

More
8 months 1 week ago #6 by fisharebest
Replied by fisharebest on topic Newcomer User/Developer - Platform Overview?
> Are there common functions to be used for extracting specific fields from the GED text or inserting fields into an existing record?

Look at App\Services\GedcomImportService

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

More
8 months 1 week ago #7 by fisharebest
Replied by fisharebest on topic Newcomer User/Developer - Platform Overview?
> I'm thinking the platform would not be oriented toward repeated instances of common text manipulation.

Search/replace options are available (including regex) which operate on the GEDCOM data. The search indexes are updated automatically after such actions.

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum