use oxrdf::NamedNode;
pub const VT: &str = "https://w3id.org/vertep/vt#";
pub const RDF_TYPE: &str = "http://www.w3.org/1999/02/22-rdf-syntax-ns#type";
pub const JOURNAL_ENTRY: &str = "https://w3id.org/vertep/vt#JournalEntry";
pub const ACTOR: &str = "https://w3id.org/vertep/vt#actor";
pub const POSITION: &str = "https://w3id.org/vertep/vt#position";
pub const HEAD: &str = "https://w3id.org/vertep/vt#head";
pub const FENCING_EPOCH: &str = "https://w3id.org/vertep/vt#fencingEpoch";
pub const PROJECTED_POSITION: &str = "https://w3id.org/vertep/vt#projectedPosition";
pub const PROJECTION_GRAPH: &str = "https://w3id.org/vertep/vt#projection";
pub fn node(iri: &str) -> NamedNode {
NamedNode::new_unchecked(iri)
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn terms_are_in_the_vt_namespace() {
for iri in [
JOURNAL_ENTRY,
ACTOR,
POSITION,
HEAD,
FENCING_EPOCH,
PROJECTED_POSITION,
PROJECTION_GRAPH,
] {
assert!(iri.starts_with(VT), "{iri}");
assert!(NamedNode::new(iri).is_ok());
}
}
}