summaryrefslogtreecommitdiff
path: root/tests/examplefiles/example.shex
blob: 8fab2c850ee1a96edaa0a660fe256cc30a8f8084 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX ex: <http://pygments.example/#>

ex:Lexer {
  rdfs:label xsd:string;
  skos:altLabel xsd:string*;
  ex:filenames xsd:string+;
  ex:mimetypes xsd:string+;
  ex:priority xsd:decimal MinInclusive 0.0 MaxExclusive 1.0; # seems to be the de facto range of currently defined priorities
  ex:lexes @ex:Language*;
}

ex:Language {
  schema:description rdf:langString*;
  schema:url IRI?;
}