Rdf 如何在ShEx中声明多类型约束?

Rdf 如何在ShEx中声明多类型约束?,rdf,semantic-web,shex,Rdf,Semantic Web,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 . 对于一种类型的圆弧约束,您不需要执行任何不同的操作;只需使用您的my:*Player值集添加

如果我有这样的数据

@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 .

对于一种类型的圆弧约束,您不需要执行任何不同的操作;只需使用您的
my:*Player
值集添加另一个:

PREFIX my: <http://example.com/>
my:person {
  a [my:Student my:Teacher];
  a [my:FootballPlayer my:BaseballPlayer my:RugbyPlayer]+
}
前缀my:
我的:人{
a[我的学生:我的老师];
a[我的:足球运动员我的:棒球运动员我的:橄榄球运动员]+
}

PREFIX my: <http://example.com/>
my:person {
  a [my:Student my:Teacher];
  a [my:FootballPlayer my:BaseballPlayer my:RugbyPlayer]+
}