File: sample_compact.shex

package info (click to toggle)
rudof 0.2.5%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 9,968 kB
  • sloc: python: 1,404; makefile: 32; sh: 1
file content (27 lines) | stat: -rw-r--r-- 526 bytes parent folder | download | duplicates (2)
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 ;
}