rdf-model 0.3.3

RDF.rs is a Rust framework for working with RDF knowledge graphs.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// This is free and unencumbered software released into the public domain.

use crate::{CowQuad, CowTerm, CowTriple, RDFS_LABEL};

/// A sample resource term.
pub const SAMPLE_RESOURCE: CowTerm<'static> = CowTerm::static_iri("https://example.org/resource");

/// A sample plain literal term.
pub const SAMPLE_LITERAL: CowTerm<'static> = CowTerm::static_string("Example Resource");

/// A sample triple.
pub const SAMPLE_TRIPLE: CowTriple = CowTriple::new(SAMPLE_RESOURCE, RDFS_LABEL, SAMPLE_LITERAL);

/// A sample quad.
pub const SAMPLE_QUAD: CowQuad = CowQuad::new(SAMPLE_RESOURCE, RDFS_LABEL, SAMPLE_LITERAL, None);