multiple matching shapes and sh:closed

A node may be targeted by several shapes, right? Then all matching
shapes are applied?

We plan to use some distribution of property shapes along a class
hierarchy, eg:
- ex:PersonShape checks for field ex:name
- ex:PoliticianShape checks for extra fields ex:party and ex:politics.

The targeting could be done with RDFS inheritance (ex:PoliticianShape
rdfs:subClassOf  ex:PersonShape)
or the more flexible "semantic type targeting" we discussed before.

What to do if I want to say that a politician can have only those 3 props
(plus rdf:type) and no other?
I can't apply sh:closed to either of the shapes because it would close each
one individually but I need them closed collectively.

Guess I could use sh:and to put the two shapes together, but that would
double the work of checking ex:name
(because a politician also matches ex:PersonShape)

-- 
Vladimir Alexiev, PhD, PMP
Chief Data Architect
Sirma AI, trading as Ontotext: https://www.ontotext.com, LinkedIn
<https://www.linkedin.com/company-beta/208070>, Twitter
<https://twitter.com/ontotext>, Rate GraphDB
<http://www.capterra.com/database-management-software/reviews/157533/Graph%20DB/Ontotext/new>
Email: vladimir.alexiev@ontotext.com, skype:valexiev1
Mobile: +359 888 568 132, SMS: 359888568132@sms.mtel.net
Calendar:
https://www.google.com/calendar/embed?src=vladimir.alexiev@ontotext.com
Publications and CV: https://github.com/VladimirAlexiev/my

Received on Thursday, 4 June 2020 14:31:57 UTC