Skip to main content

ontocore_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    pub fn same_as() -> NamedNodeRef<'static> {
39        NamedNodeRef::new_unchecked("http://www.w3.org/2002/07/owl#sameAs")
40    }
41}
42
43pub struct Rdfs;
44
45impl Rdfs {
46    pub fn label() -> NamedNodeRef<'static> {
47        NamedNodeRef::new_unchecked("http://www.w3.org/2000/01/rdf-schema#label")
48    }
49
50    pub fn comment() -> NamedNodeRef<'static> {
51        NamedNodeRef::new_unchecked("http://www.w3.org/2000/01/rdf-schema#comment")
52    }
53
54    pub fn class() -> NamedNodeRef<'static> {
55        NamedNodeRef::new_unchecked("http://www.w3.org/2000/01/rdf-schema#Class")
56    }
57
58    pub fn sub_class_of() -> NamedNodeRef<'static> {
59        NamedNodeRef::new_unchecked("http://www.w3.org/2000/01/rdf-schema#subClassOf")
60    }
61
62    pub fn datatype() -> NamedNodeRef<'static> {
63        NamedNodeRef::new_unchecked("http://www.w3.org/2000/01/rdf-schema#Datatype")
64    }
65}
66
67pub struct Rdf;
68
69impl Rdf {
70    pub fn type_() -> NamedNodeRef<'static> {
71        NamedNodeRef::new_unchecked("http://www.w3.org/1999/02/22-rdf-syntax-ns#type")
72    }
73}