shex_ast/shexr/
shexr_vocab.rs

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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
use const_format::concatcp;
use iri_s::IriS;

pub const SX: &str = "http://www.w3.org/ns/shex#";

// Classes
pub const SX_ANNOTATION: &str = concatcp!(SX, "Annotation");
pub const SX_EACHOF: &str = concatcp!(SX, "EachOf");
pub const SX_IRISTEM: &str = concatcp!(SX, "IriStem");
pub const SX_IRISTEMRANGE: &str = concatcp!(SX, "IriStemRange");
pub const SX_LANGUAGESTEM: &str = concatcp!(SX, "LanguageStem");
pub const SX_LANGUAGESTEMRANGE: &str = concatcp!(SX, "LanguageStemRange");
pub const SX_LITERALSTEM: &str = concatcp!(SX, "LiteralStem");
pub const SX_LITERALSTEMRANGE: &str = concatcp!(SX, "LiteralStemRange");
pub const SX_NODECONSTRAINT: &str = concatcp!(SX, "NodeConstraint");
pub const SX_ONEOF: &str = concatcp!(SX, "OneOf");
pub const SX_SCHEMA: &str = concatcp!(SX, "Schema");
pub const SX_SEMACT: &str = concatcp!(SX, "SemAct");
pub const SX_SHAPE: &str = concatcp!(SX, "Shape");
pub const SX_SHAPE_AND: &str = concatcp!(SX, "ShapeAnd");
pub const SX_SHAPE_EXTERNAL: &str = concatcp!(SX, "ShapeExternal");
pub const SX_SHAPE_NOT: &str = concatcp!(SX, "ShapeNot");
pub const SX_SHAPE_DECL: &str = concatcp!(SX, "ShapeDecl");
pub const SX_SHAPE_OR: &str = concatcp!(SX, "ShapeOr");
pub const SX_TRIPLECONSTRAINT: &str = concatcp!(SX, "TripleConstraint");
pub const SX_WILDCARD: &str = concatcp!(SX, "Wildcard");
pub const SX_INF: &str = concatcp!(SX, "INF");

// Properties
pub const SX_ABSTRACT: &str = concatcp!(SX, "abstract");
pub const SX_ANNOTATION_PROP: &str = concatcp!(SX, "annotation");
pub const SX_BNODE: &str = concatcp!(SX, "bnode");
pub const SX_CODE: &str = concatcp!(SX, "code");
pub const SX_CLOSED: &str = concatcp!(SX, "closed");
pub const SX_DATATYPE: &str = concatcp!(SX, "datatype");
pub const SX_EXTRA: &str = concatcp!(SX, "extra");
pub const SX_EXCLUSION: &str = concatcp!(SX, "exclusion");
pub const SX_EXPRESION: &str = concatcp!(SX, "expresion");
pub const SX_EXPRESIONS: &str = concatcp!(SX, "expresions");
pub const SX_FRACTIONDIGITS: &str = concatcp!(SX, "fractiondigits");
pub const SX_FLAGS: &str = concatcp!(SX, "flags");
pub const SX_IRI: &str = concatcp!(SX, "iri");
pub const SX_INVERSE: &str = concatcp!(SX, "inverse");
pub const SX_LENGTH: &str = concatcp!(SX, "length");
pub const SX_LITERAL: &str = concatcp!(SX, "literal");
pub const SX_MIN: &str = concatcp!(SX, "min");
pub const SX_MININCLUSIVE: &str = concatcp!(SX, "mininclusive");
pub const SX_MINEXCLUSIVE: &str = concatcp!(SX, "minexclusive");
pub const SX_MINLENGTH: &str = concatcp!(SX, "minlength");
pub const SX_MAX: &str = concatcp!(SX, "max");
pub const SX_MAXINCLUSIVE: &str = concatcp!(SX, "maxinclusive");
pub const SX_MAXEXCLUSIVE: &str = concatcp!(SX, "maxexclusive");
pub const SX_MAXLENGTH: &str = concatcp!(SX, "maxlength");
pub const SX_NAME: &str = concatcp!(SX, "name");
pub const SX_NEGATED: &str = concatcp!(SX, "negated");
pub const SX_NODEKIND: &str = concatcp!(SX, "nodeKind");
pub const SX_NONLITERAL: &str = concatcp!(SX, "nonLiteral");
pub const SX_OBJECT: &str = concatcp!(SX, "object");
pub const SX_PATTERN: &str = concatcp!(SX, "pattern");
pub const SX_PREDICATE: &str = concatcp!(SX, "predicate");
pub const SX_SEMACTS: &str = concatcp!(SX, "semActs");
pub const SX_STARTACTS: &str = concatcp!(SX, "startActs");
pub const SX_START: &str = concatcp!(SX, "start");
pub const SX_SHAPES: &str = concatcp!(SX, "shapes");
pub const SX_SHAPE_EXPR: &str = concatcp!(SX, "shapeExpr");
pub const SX_SHAPE_EXPRS: &str = concatcp!(SX, "shapeExprs");
pub const SX_STEM: &str = concatcp!(SX, "stem");
pub const SX_STEMRANGE: &str = concatcp!(SX, "stemRange");
pub const SX_TOTALDIGITS: &str = concatcp!(SX, "totaldigits");
pub const SX_VALUEEXPR: &str = concatcp!(SX, "valueExpr");
pub const SX_VALUES: &str = concatcp!(SX, "values");

pub struct ShExRVocab {}

impl ShExRVocab {
    #[inline]
    pub fn sx_schema() -> IriS {
        IriS::new_unchecked(SX_SCHEMA)
    }

    #[inline]
    pub fn sx_shape_and() -> IriS {
        IriS::new_unchecked(SX_SHAPE_AND)
    }

    #[inline]
    pub fn sx_nodekind() -> IriS {
        IriS::new_unchecked(SX_NODEKIND)
    }

    #[inline]
    pub fn sx_nodeconstraint() -> IriS {
        IriS::new_unchecked(SX_NODECONSTRAINT)
    }

    #[inline]
    pub fn sx_shapes() -> IriS {
        IriS::new_unchecked(SX_SHAPES)
    }

    #[inline]
    pub fn sx_shape_expr() -> IriS {
        IriS::new_unchecked(SX_SHAPE_EXPR)
    }

    #[inline]
    pub fn sx_shape_exprs() -> IriS {
        IriS::new_unchecked(SX_SHAPE_EXPR)
    }

    #[inline]
    pub fn sx_shape() -> IriS {
        IriS::new_unchecked(SX_SHAPE)
    }

    #[inline]
    pub fn sx_iri() -> IriS {
        IriS::new_unchecked(SX_IRI)
    }

    #[inline]
    pub fn sx_literal() -> IriS {
        IriS::new_unchecked(SX_LITERAL)
    }

    #[inline]
    pub fn sx_bnode() -> IriS {
        IriS::new_unchecked(SX_BNODE)
    }

    #[inline]
    pub fn sx_nonliteral() -> IriS {
        IriS::new_unchecked(SX_NONLITERAL)
    }
}