Skip to main content

ontoindex_parser/
vocab.rs

1use oxigraph::model::NamedNodeRef;
2
3pub struct OWL;
4
5impl OWL {
6    pub fn class() -> NamedNodeRef<'static> {
7        NamedNodeRef::new_unchecked("http://www.w3.org/2002/07/owl#Class")
8    }
9
10    pub fn object_property() -> NamedNodeRef<'static> {
11        NamedNodeRef::new_unchecked("http://www.w3.org/2002/07/owl#ObjectProperty")
12    }
13
14    pub fn datatype_property() -> NamedNodeRef<'static> {
15        NamedNodeRef::new_unchecked("http://www.w3.org/2002/07/owl#DatatypeProperty")
16    }
17
18    pub fn annotation_property() -> NamedNodeRef<'static> {
19        NamedNodeRef::new_unchecked("http://www.w3.org/2002/07/owl#AnnotationProperty")
20    }
21
22    pub fn ontology() -> NamedNodeRef<'static> {
23        NamedNodeRef::new_unchecked("http://www.w3.org/2002/07/owl#Ontology")
24    }
25
26    pub fn named_individual() -> NamedNodeRef<'static> {
27        NamedNodeRef::new_unchecked("http://www.w3.org/2002/07/owl#NamedIndividual")
28    }
29
30    pub fn imports() -> NamedNodeRef<'static> {
31        NamedNodeRef::new_unchecked("http://www.w3.org/2002/07/owl#imports")
32    }
33
34    pub fn deprecated() -> NamedNodeRef<'static> {
35        NamedNodeRef::new_unchecked("http://www.w3.org/2002/07/owl#deprecated")
36    }
37}
38
39pub struct Rdfs;
40
41impl Rdfs {
42    pub fn label() -> NamedNodeRef<'static> {
43        NamedNodeRef::new_unchecked("http://www.w3.org/2000/01/rdf-schema#label")
44    }
45
46    pub fn comment() -> NamedNodeRef<'static> {
47        NamedNodeRef::new_unchecked("http://www.w3.org/2000/01/rdf-schema#comment")
48    }
49
50    pub fn class() -> NamedNodeRef<'static> {
51        NamedNodeRef::new_unchecked("http://www.w3.org/2000/01/rdf-schema#Class")
52    }
53
54    pub fn sub_class_of() -> NamedNodeRef<'static> {
55        NamedNodeRef::new_unchecked("http://www.w3.org/2000/01/rdf-schema#subClassOf")
56    }
57}
58
59pub struct Rdf;
60
61impl Rdf {
62    pub fn type_() -> NamedNodeRef<'static> {
63        NamedNodeRef::new_unchecked("http://www.w3.org/1999/02/22-rdf-syntax-ns#type")
64    }
65}