Overrides are not supported, but inheritance is supported.

For example, you could define minCount but not define maxCount, then add a 
definition of maxCount in the “sub shape”.

There are 2 ways of addressing this:

Classes can also be shapes. If you model that way, all you need to do is to 
create a class of all things that your general property constraints will apply 
to, then create subclasses and add additional constraints to them.
For example, you would create a class Person with property shapes that say that 
a person must have name and age. Then you define a subclass Student with 
property shapes that say that students age must be greater than 15 and they 
need to have student ID.
Otherwise, shapes can contain other shapes. You would define a general shape 
with constraints you want to use in other shapes. When you define more specific 
shapes, you would include the general shape into them using sh:and.
https://www.w3.org/TR/shacl/#AndConstraintComponent 
<https://www.w3.org/TR/shacl/#AndConstraintComponent>




> On Apr 13, 2018, at 1:20 PM, Rebecca Younes <rebecca.you...@gmail.com> wrote:
> 
> A related question: is it possible for one shape to invoke, inherit, and/or 
> override values from another shape? For example, I would like to create a 
> general property shape for a title property that defines cardinality, 
> sh:class, sh:path, etc. Then in the context of different form shapes, I would 
> like to define specific names, descriptions, orders, etc.: "Album title," 
> "Book title," and so on. Perhaps I would like to define a default name 
> "Title," which could be overridden by the specific form shapes. Is any of 
> this possible?
> 
> Thanks.
> 
> Rebecca Younes
> Semantic Application Developer and Ontology Engineer
> Cornell University Library Information Technology
> 
> 
> On Thursday, April 12, 2018 at 4:17:52 PM UTC-4, Steven Folsom wrote:
> I would be interested to be able to look at any implementations where 
> Validation shapes are compiled with non-Validation shapes to build Forms, 
> where that the validation axioms are maintained in separate shapes from 
> non-validation (UI) shapes?
> 
>  
> Is anyone doing this? We’ve been considering it for easier maintenance of our 
> various shapes, but right now it’s easier to see all the axioms needed for 
> the app in one place…
> 
>  
> Thanks,
> Steven
> 
>  
> -- 
> 
> Steven Folsom
> 
> Metadata Specialist
> 
> Cornell University Library
> 
> pronouns: he/him/they/them
> 
> http://orcid.org/0000-0003-3427-5769 <http://orcid.org/0000-0003-3427-5769>
> http://vivo.cornell.edu/individual/sf433 
> <http://vivo.cornell.edu/individual/sf433>
> @sf433
> 
>  
> 
> -- 
> 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 topbraid-users+unsubscr...@googlegroups.com 
> <mailto:topbraid-users+unsubscr...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout 
> <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 topbraid-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to