Hi Hogler,

Thanks much for your follow-up! I have been exploring the 1st option you 
offered and I sort of understand how to add sh:ConstraintComponent instance 
in dash.ttl by now. My question is whether I should just modify the 
dash.ttl file or somehow extend it by creating my own constraint 
declaration file importing dash.ttl?

I will look into the 2nd option you just mentioned now. I will report back 
later.

Thanks again,
Fan

On Sunday, July 14, 2019 at 2:10:18 AM UTC-4, Holger Knublauch wrote:
>
> 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] <javascript:>.
> 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/8626f31e-d30d-4b7a-b0e0-ee2de0cf6fa5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to