shex_ast/shexr/
shexr_vocab.rs1use const_format::concatcp;
2use iri_s::IriS;
3
4pub const SX: &str = "http://www.w3.org/ns/shex#";
5
6pub const SX_ANNOTATION: &str = concatcp!(SX, "Annotation");
8pub const SX_EACHOF: &str = concatcp!(SX, "EachOf");
9pub const SX_IRISTEM: &str = concatcp!(SX, "IriStem");
10pub const SX_IRISTEMRANGE: &str = concatcp!(SX, "IriStemRange");
11pub const SX_LANGUAGESTEM: &str = concatcp!(SX, "LanguageStem");
12pub const SX_LANGUAGESTEMRANGE: &str = concatcp!(SX, "LanguageStemRange");
13pub const SX_LITERALSTEM: &str = concatcp!(SX, "LiteralStem");
14pub const SX_LITERALSTEMRANGE: &str = concatcp!(SX, "LiteralStemRange");
15pub const SX_NODECONSTRAINT: &str = concatcp!(SX, "NodeConstraint");
16pub const SX_ONEOF: &str = concatcp!(SX, "OneOf");
17pub const SX_SCHEMA: &str = concatcp!(SX, "Schema");
18pub const SX_SEMACT: &str = concatcp!(SX, "SemAct");
19pub const SX_SHAPE: &str = concatcp!(SX, "Shape");
20pub const SX_SHAPE_AND: &str = concatcp!(SX, "ShapeAnd");
21pub const SX_SHAPE_EXTERNAL: &str = concatcp!(SX, "ShapeExternal");
22pub const SX_SHAPE_NOT: &str = concatcp!(SX, "ShapeNot");
23pub const SX_SHAPE_DECL: &str = concatcp!(SX, "ShapeDecl");
24pub const SX_SHAPE_OR: &str = concatcp!(SX, "ShapeOr");
25pub const SX_TRIPLECONSTRAINT: &str = concatcp!(SX, "TripleConstraint");
26pub const SX_WILDCARD: &str = concatcp!(SX, "Wildcard");
27pub const SX_INF: &str = concatcp!(SX, "INF");
28
29pub const SX_ABSTRACT: &str = concatcp!(SX, "abstract");
31pub const SX_ANNOTATION_PROP: &str = concatcp!(SX, "annotation");
32pub const SX_BNODE: &str = concatcp!(SX, "bnode");
33pub const SX_CODE: &str = concatcp!(SX, "code");
34pub const SX_CLOSED: &str = concatcp!(SX, "closed");
35pub const SX_DATATYPE: &str = concatcp!(SX, "datatype");
36pub const SX_EXTRA: &str = concatcp!(SX, "extra");
37pub const SX_EXCLUSION: &str = concatcp!(SX, "exclusion");
38pub const SX_EXPRESION: &str = concatcp!(SX, "expresion");
39pub const SX_EXPRESIONS: &str = concatcp!(SX, "expresions");
40pub const SX_FRACTIONDIGITS: &str = concatcp!(SX, "fractiondigits");
41pub const SX_FLAGS: &str = concatcp!(SX, "flags");
42pub const SX_IRI: &str = concatcp!(SX, "iri");
43pub const SX_INVERSE: &str = concatcp!(SX, "inverse");
44pub const SX_LENGTH: &str = concatcp!(SX, "length");
45pub const SX_LITERAL: &str = concatcp!(SX, "literal");
46pub const SX_MIN: &str = concatcp!(SX, "min");
47pub const SX_MININCLUSIVE: &str = concatcp!(SX, "mininclusive");
48pub const SX_MINEXCLUSIVE: &str = concatcp!(SX, "minexclusive");
49pub const SX_MINLENGTH: &str = concatcp!(SX, "minlength");
50pub const SX_MAX: &str = concatcp!(SX, "max");
51pub const SX_MAXINCLUSIVE: &str = concatcp!(SX, "maxinclusive");
52pub const SX_MAXEXCLUSIVE: &str = concatcp!(SX, "maxexclusive");
53pub const SX_MAXLENGTH: &str = concatcp!(SX, "maxlength");
54pub const SX_NAME: &str = concatcp!(SX, "name");
55pub const SX_NEGATED: &str = concatcp!(SX, "negated");
56pub const SX_NODEKIND: &str = concatcp!(SX, "nodeKind");
57pub const SX_NONLITERAL: &str = concatcp!(SX, "nonLiteral");
58pub const SX_OBJECT: &str = concatcp!(SX, "object");
59pub const SX_PATTERN: &str = concatcp!(SX, "pattern");
60pub const SX_PREDICATE: &str = concatcp!(SX, "predicate");
61pub const SX_SEMACTS: &str = concatcp!(SX, "semActs");
62pub const SX_STARTACTS: &str = concatcp!(SX, "startActs");
63pub const SX_START: &str = concatcp!(SX, "start");
64pub const SX_SHAPES: &str = concatcp!(SX, "shapes");
65pub const SX_SHAPE_EXPR: &str = concatcp!(SX, "shapeExpr");
66pub const SX_SHAPE_EXPRS: &str = concatcp!(SX, "shapeExprs");
67pub const SX_STEM: &str = concatcp!(SX, "stem");
68pub const SX_STEMRANGE: &str = concatcp!(SX, "stemRange");
69pub const SX_TOTALDIGITS: &str = concatcp!(SX, "totaldigits");
70pub const SX_VALUEEXPR: &str = concatcp!(SX, "valueExpr");
71pub const SX_VALUES: &str = concatcp!(SX, "values");
72
73pub struct ShExRVocab {}
74
75impl ShExRVocab {
76 #[inline]
77 pub fn sx_schema() -> IriS {
78 IriS::new_unchecked(SX_SCHEMA)
79 }
80
81 #[inline]
82 pub fn sx_shape_and() -> IriS {
83 IriS::new_unchecked(SX_SHAPE_AND)
84 }
85
86 #[inline]
87 pub fn sx_nodekind() -> IriS {
88 IriS::new_unchecked(SX_NODEKIND)
89 }
90
91 #[inline]
92 pub fn sx_nodeconstraint() -> IriS {
93 IriS::new_unchecked(SX_NODECONSTRAINT)
94 }
95
96 #[inline]
97 pub fn sx_shapes() -> IriS {
98 IriS::new_unchecked(SX_SHAPES)
99 }
100
101 #[inline]
102 pub fn sx_shape_expr() -> IriS {
103 IriS::new_unchecked(SX_SHAPE_EXPR)
104 }
105
106 #[inline]
107 pub fn sx_shape_exprs() -> IriS {
108 IriS::new_unchecked(SX_SHAPE_EXPR)
109 }
110
111 #[inline]
112 pub fn sx_shape() -> IriS {
113 IriS::new_unchecked(SX_SHAPE)
114 }
115
116 #[inline]
117 pub fn sx_iri() -> IriS {
118 IriS::new_unchecked(SX_IRI)
119 }
120
121 #[inline]
122 pub fn sx_literal() -> IriS {
123 IriS::new_unchecked(SX_LITERAL)
124 }
125
126 #[inline]
127 pub fn sx_bnode() -> IriS {
128 IriS::new_unchecked(SX_BNODE)
129 }
130
131 #[inline]
132 pub fn sx_nonliteral() -> IriS {
133 IriS::new_unchecked(SX_NONLITERAL)
134 }
135}