Hi - I have been thinking about this too - it seems a challenge in an "open world" or with large reference data sets.
sh:Class allows you to define an acceptable Class, which all your country codes belong to - but to use this it means importing all the content, (with explicit rdf:type declarations) into the graph with the SHACL rules - this wont scale to a bigger dataset - such as biological species, or even car models. Maybe if the rules engine is expected to dereference a URI and find the Class of the instance referenced - but that only works in a Linked Data world where URIs will return an RDFS profile. This may need a control on the rule - eg:sh_x:performLookup rdfs:range xsd:Boolean alternatively maybe a sh_xxx:lookup with options - e.g. a SPARQL query template that names the graph - or maybe just the graph identifier ? On Friday, 12 July 2019 04:56:44 UTC+10, 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/1c2bfbbb-4a1d-4630-8b92-7f7d6e54da9f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
