Open marc-portier opened 2 months ago
when reconsidering the way we handle the config (also see #44 #35 #48) we should reconsider the way property paths are handled
the current regex https://github.com/vliz-be-opsci/py-trav-harv/blob/bac4fe23de45cce1226c445477a9b3930da423e0/travharv/config_build.py#L190 simply cannot be checking for /
delimitors, meaning it will behave similarly for any other (or even no) delimitor between the parts -- which I assume is not what we want?
the recent code sample added in https://github.com/vliz-be-opsci/py-trav-harv/issues/35#issuecomment-2093264824 contains an alternative approach --> adding a slash to the string to match as well as to the regex pattern (with optional whitespace) keeps the pattern fairly simple + guarantees the delimitor
not quite self-explaining at the moment
also unclear what the current benefit is
it feels like we could get maybe use it to "activate" some of these objects (i.e. make the transition from pure passive configs to objects that also use access to rdf_store to make some active decisions
regardless that last part, if we keep the _call strategy around, we should at least opt for some naming convention that makes this less surprising (or rock bottom: make sure we have good docs for this part of the (mostly internal) API / usage)