1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
prefix : <http://example.org/>
prefix shapes: <http://example.org/shapes/>
prefix schema: <https://schema.org/>
prefix xsd: <http://www.w3.org/2001/XMLSchema#>
base <http://example.org/>
shapes:User {
schema:name xsd:string ? ;
schema:knows @shapes:User * ;
schema:employer @<Company> {1, 2}
}
<Company> CLOSED EXTRA :code {
:code xsd:integer MINLENGTH 10 ;
} AND {
:owner @:Person
} OR {
:owner @:Association
}
:Person shapes:User AND {
:name xsd:string ;
}
:Association {
:name xsd:string ;
}
|