sparql_service/
service_description_vocab.rs

1use const_format::concatcp;
2use iri_s::IriS;
3use lazy_static::lazy_static;
4
5pub const SD_STR: &str = "http://www.w3.org/ns/sparql-service-description#";
6pub const SD_SERVICE_STR: &str = concatcp!(SD_STR, "Service");
7pub const SD_DEFAULT_GRAPH_STR: &str = concatcp!(SD_STR, "defaultGraph");
8pub const SD_DEFAULT_DATASET_STR: &str = concatcp!(SD_STR, "defaultDataset");
9pub const SD_ENDPOINT_STR: &str = concatcp!(SD_STR, "endpoint");
10pub const SD_FEATURE_STR: &str = concatcp!(SD_STR, "feature");
11pub const SD_SUPPORTED_LANGUAGE_STR: &str = concatcp!(SD_STR, "supportedLanguage");
12pub const SD_RESULT_FORMAT_STR: &str = concatcp!(SD_STR, "resultFormat");
13
14// Supported languages
15pub const SD_SPARQL10_QUERY_STR: &str = concatcp!(SD_STR, "SPARQL10Query");
16pub const SD_SPARQL11_QUERY_STR: &str = concatcp!(SD_STR, "SPARQL11Query");
17pub const SD_SPARQL11_UPDATE_STR: &str = concatcp!(SD_STR, "SPARQL11Update");
18
19// Feature instances
20pub const SD_BASIC_FEDERATED_QUERY_STR: &str = concatcp!(SD_STR, "BasicFederatedQuery");
21pub const SD_UNION_DEFAULT_GRAPH_STR: &str = concatcp!(SD_STR, "UnionDefaultGraph");
22pub const SD_EMPTY_GRAPHS_STR: &str = concatcp!(SD_STR, "EmptyGraphs");
23pub const SD_REQUIRES_DATASET_STR: &str = concatcp!(SD_STR, "RequiresDataset");
24pub const SD_DEREFERENCES_URIS_STR: &str = concatcp!(SD_STR, "DereferencesURIs");
25
26lazy_static! {
27    pub static ref SD: IriS = IriS::new_unchecked(SD_STR);
28    pub static ref SD_SERVICE: IriS = IriS::new_unchecked(SD_SERVICE_STR);
29    pub static ref SD_DEFAULT_GRAPH: IriS = IriS::new_unchecked(SD_DEFAULT_GRAPH_STR);
30    pub static ref SD_DEFAULT_DATASET: IriS = IriS::new_unchecked(SD_DEFAULT_DATASET_STR);
31    pub static ref SD_ENDPOINT: IriS = IriS::new_unchecked(SD_ENDPOINT_STR);
32    pub static ref SD_FEATURE: IriS = IriS::new_unchecked(SD_FEATURE_STR);
33    pub static ref SD_SUPPORTED_LANGUAGE: IriS = IriS::new_unchecked(SD_SUPPORTED_LANGUAGE_STR);
34    pub static ref SD_RESULT_FORMAT: IriS = IriS::new_unchecked(SD_RESULT_FORMAT_STR);
35    pub static ref SD_SPARQL10_QUERY: IriS = IriS::new_unchecked(SD_SPARQL10_QUERY_STR);
36    pub static ref SD_SPARQL11_QUERY: IriS = IriS::new_unchecked(SD_SPARQL11_QUERY_STR);
37    pub static ref SD_SPARQL11_UPDATE: IriS = IriS::new_unchecked(SD_SPARQL11_UPDATE_STR);
38    pub static ref SD_BASIC_FEDERATED_QUERY: IriS =
39        IriS::new_unchecked(SD_BASIC_FEDERATED_QUERY_STR);
40    pub static ref SD_UNION_DEFAULT_GRAPH: IriS = IriS::new_unchecked(SD_UNION_DEFAULT_GRAPH_STR);
41    pub static ref SD_REQUIRES_DATASET: IriS = IriS::new_unchecked(SD_REQUIRES_DATASET_STR);
42    pub static ref SD_EMPTY_GRAPHS: IriS = IriS::new_unchecked(SD_EMPTY_GRAPHS_STR);
43    pub static ref SD_DEREFERENCES_URIS: IriS = IriS::new_unchecked(SD_DEREFERENCES_URIS_STR);
44}