Hi Fan Li,

I was just reminded that we do have support for one such pattern built into EDG already. Take a look at the class edg:PropertyValueSet, which describes the values of a (reference) dataset by means of class, graph and property. This is meant to be used in cases where you want to use something like a Country *Code*, not the Country URI resource, as values. You can define an instance of edg:PropertyValueSet to point at these values and then use edg:propertyValueSet to link a property shape with your edg:PropertyValueSet. This will then apply do constraint checking to verify that the values are in fact valid country codes.

Does this resemble your use case?

Holger


On 12/07/2019 04:44, Fan Li wrote:
For example, if there is an attribute "country code", can I constraint its value to one of them from the "Country Code" reference dataset? Thanks!
--
You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/328b5040-6670-445a-93a4-7de7cfde3382%40googlegroups.com <https://groups.google.com/d/msgid/topbraid-users/328b5040-6670-445a-93a4-7de7cfde3382%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "TopBraid 
Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/topbraid-users/8a568c75-c0cc-e73c-4f04-f7a6a8270d4e%40topquadrant.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to