4
如果我有一個像如何在ShEx中聲明多個類型約束?
@prefix my: <http://example.com/>
my:student1 a my:Student .
my:student1 a my:FoodballPlayer .
my:teacher2 a my:Teacher .
my:teacher2 a my:BaseballPlayer .
my:teacher2 a my:RugbyPlayer .
數據,我想說的主體是學生或教師,他們可以是零或更多的足球,棒球或橄欖球運動員的,我怎麼寫,在ShEx?我知道這適用於一種類型的弧:
my:person {
a [my:Student my:Teacher]
}