skinkie / reference

Personal repository where I collect working examples to understand inner workings while building PyNeTExConv
GNU Affero General Public License v3.0
1 stars 1 forks source link

Discuss how related_explorer should resolve inward objects #43

Open skinkie opened 2 months ago

skinkie commented 2 months ago

It is obivously that if a ServiceJourney/LineRef exists, the user wants to see the Line too. The user is not interested in all other items that point to that line. Some objects in NeTEx only have inwards references such as NoticeAssignmentInFrame, the user may be interested it the NoticeAssignment towards the ServiceJourney. This would then resolve the Notice.

We cannot do a general all Ref resolving pattern, since an DataSourceRef would resolve the DataSource and thereby everything in that delivery. Discuss which special cases we must investigate, and how to find them.

skinkie commented 2 months ago

@ue71603 ^^^

ue71603 commented 1 month ago

Ideas:

Perhaps we define this as lists?

Or you want to really go fully recursive based on ref-attributes?

skinkie commented 1 month ago

I would prefer to go through the recursive refs. That tree can be 'relatively easily and fast' be build based on all the previous work done. But it those things also asume that the source data should know what it was doing. Or it must fall back into a search for an id in all tables.

ue71603 commented 1 week ago

Improvements for related_explorer.py.

skinkie commented 1 week ago

@ue71603 more examples are JourneyMeeting, InterchangeRules.