Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing basket variable for Catalogue Dataset used with BAG OF #875

Open
signedav opened this issue Feb 1, 2024 · 2 comments
Open

Missing basket variable for Catalogue Dataset used with BAG OF #875

signedav opened this issue Feb 1, 2024 · 2 comments
Labels

Comments

@signedav
Copy link
Member

signedav commented Feb 1, 2024

Having this

TOPIC Codeliste =
[...]
    CLASS Massnahmen_Code
      EXTENDS CatalogueObjects_V1.Catalogues.Item =
	  	/** Attribute werden aus bestehendem Katalog importiert */
	  	Massnahmen : MANDATORY TEXT*50;
      /** Optional */
	  	Beschreibung : TEXT*200;
      /** Zwingende Massnahmenzuordnung */
      Wiffe : MANDATORY BOOLEAN;
     [...]
	  	UNIQUE Massnahmen;
    END Massnahmen_Code;

    STRUCTURE Massnahmen_CodeRef
    EXTENDS CatalogueObjects_V1.Catalogues.CatalogueReference =
	    /** Lediglich ein Hilfsmittel */
      Reference (EXTENDED) : MANDATORY REFERENCE TO (EXTERNAL) Massnahmen_Code;
    END Massnahmen_CodeRef;
[...]

TOPIC Unterhalt =
    [...]
    CLASS Instandsetzung EXTENDS Erfassung =
		  /** SH: Zwingende Angabe wenn kein Beobachtungsstatus */
		  Massnahmen : BAG {1..*} OF SH_Binnenschifffahrt_V1_0.Codeliste.Massnahmen_CodeRef;
    [...]

in https://models.geo.sh.ch/TSH/SH_Binnenschifffahrt_V1_0.ili

Creates the *ref table as linking table.

This linking table has a t_basket column and the default value there is linking to a project variable that does not exist.

@signedav signedav added the bug label Feb 1, 2024
@signedav
Copy link
Member Author

signedav commented Feb 7, 2024

Was this ever working? The ref-tables should be in the basket of the catalog. Means in the following test-model:

INTERLIS 2.3;
MODEL Unterhaltung_V1 (en) AT "https://modelbaker.ch" VERSION "2024-02-07" =
  IMPORTS CatalogueObjects_V1;

  TOPIC Codeliste =
    CLASS Massnahmen_Code
      EXTENDS CatalogueObjects_V1.Catalogues.Item =
	  	Massnahmen : MANDATORY TEXT*50;
	  	Beschreibung : TEXT*200;
    END Massnahmen_Code;

    STRUCTURE Massnahmen_CodeRef
    EXTENDS CatalogueObjects_V1.Catalogues.CatalogueReference =
      Reference (EXTENDED) : MANDATORY REFERENCE TO (EXTERNAL) Massnahmen_Code;
    END Massnahmen_CodeRef;
  END Codeliste;

  TOPIC Unterhalt =
    DEPENDS ON Unterhaltung_V1.Codeliste;

    CLASS Instandsetzung =
      Massnahmen : BAG {1..*} OF Unterhaltung_V1.Codeliste.Massnahmen_CodeRef;
    END Instandsetzung;
  END Unterhalt;
END Unterhaltung_V1.

... it should be default_basket_unterhaltung_v1_codeliste -> the basket of the topic Unterhaltung_V1.Codeliste...

@signedav
Copy link
Member Author

signedav commented Feb 8, 2024

@claeis Is it conceptional required, that a CatalogueReference extension needs to be assigned to a basket?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant