Re: using TMCL-constraints
Hannes Niederhausen <h.niederhausen-gM/[email protected]> Tue, 17 May 2011 12:02:42 +0200
| Newsgroups | gmane.text.xml.xtm.general |
|---|---|
| Message-ID | <[email protected]> |
Hi, yes it does. Each template creates a new instance of a contraint. One question: Do you create your schema in a text editor? regards Hannes On Tue, May 17, 2011 at 10:50 AM, [email protected] <[email protected]> wrote: > Hi all, > > > > I’ve question to the current TMCL-draft: > > > > Let’s examine my problem on the tmcl:topic-name-constraint: > > 1) > > person isa tmcl:topic-type; > > has-name(ns:first-name, 1, 1). > > > > This statement creates a new tmcl:topic-name-constraint instance c with the > occurrences tmcl:card-min (1) and tmcl:card-max (1), so a person must have > exactly one name of the type ns:first-name. > > If I want to say that a person must also have a name of the type > ns:last-name, I can express it in the following: > > 2) > > person isa tmcl:topic-type; > > has-name(ns:last-name, 1, 1). > > > > My question is now: > > Does the 2nd statement create a new instance of tmcl:topic-name-constraint > (cc) or uses it the first one (c) and creates just a new association of the > type tmcl:constrained-statement with the roles [player: ns:last-name, > instance-of: tmcl:constrained] and [player:c, instance-of: tmcl:constraint]? > > > > > > Sincerely, > > > > Lukas > > _______________________________________________ > topicmapmail mailing list > [email protected] > http://www.infoloom.com/mailman/listinfo/topicmapmail > > _______________________________________________ topicmapmail mailing list [email protected] http://www.infoloom.com/mailman/listinfo/topicmapmail