srdf/
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
use const_format::concatcp;
use iri_s::IriS;

use lazy_static::lazy_static;

pub const RDF: &str = "http://www.w3.org/1999/02/22-rdf-syntax-ns#";
pub const RDFS: &str = "http://www.w3.org/2000/01/rdf-schema#";
pub const XSD: &str = "http://www.w3.org/2001/XMLSchema#";
pub const RDF_TYPE_STR: &str = concatcp!(RDF, "type");
pub const RDF_FIRST_STR: &str = concatcp!(RDF, "first");
pub const RDF_REST_STR: &str = concatcp!(RDF, "rest");
pub const RDF_NIL_STR: &str = concatcp!(RDF, "nil");
pub const RDFS_LABEL_STR: &str = concatcp!(RDFS, "label");
pub const RDFS_SUBCLASS_OF_STR: &str = concatcp!(RDFS, "subClassOf");
pub const RDFS_CLASS_STR: &str = concatcp!(RDFS, "Class");
pub const XSD_BOOLEAN_STR: &str = concatcp!(XSD, "boolean");
pub const XSD_INTEGER_STR: &str = concatcp!(XSD, "integer");
pub const XSD_DECIMAL_STR: &str = concatcp!(XSD, "decimal");
pub const XSD_DOUBLE_STR: &str = concatcp!(XSD, "double");

lazy_static! {
    pub static ref RDF_TYPE: IriS = IriS::new_unchecked(RDF_TYPE_STR);
    pub static ref RDF_FIRST: IriS = IriS::new_unchecked(RDF_FIRST_STR);
    pub static ref RDF_REST: IriS = IriS::new_unchecked(RDF_REST_STR);
    pub static ref RDF_NIL: IriS = IriS::new_unchecked(RDF_NIL_STR);
    pub static ref RDFS_LABEL: IriS = IriS::new_unchecked(RDFS_LABEL_STR);
    pub static ref RDFS_SUBCLASS_OF: IriS = IriS::new_unchecked(RDFS_SUBCLASS_OF_STR);
    pub static ref RDFS_CLASS: IriS = IriS::new_unchecked(RDFS_CLASS_STR);
    pub static ref XSD_BOOLEAN: IriS = IriS::new_unchecked(XSD_BOOLEAN_STR);
    pub static ref XSD_INTEGER: IriS = IriS::new_unchecked(XSD_INTEGER_STR);
    pub static ref XSD_DECIMAL: IriS = IriS::new_unchecked(XSD_DECIMAL_STR);
    pub static ref XSD_DOUBLE: IriS = IriS::new_unchecked(XSD_DOUBLE_STR);
}