#![deny(rust_2018_idioms)]
pub mod ast;
pub use ast::*;
#[derive(Debug, Clone, Default)]
pub enum ShaclFormat {
Internal,
#[default]
Turtle,
NTriples,
RdfXml,
TriG,
N3,
NQuads,
JsonLd,
}
impl ShaclFormat {
pub fn mime_type(&self) -> &str {
match self {
ShaclFormat::Internal => "application/shacl+json",
ShaclFormat::Turtle => "text/turtle",
ShaclFormat::NTriples => "application/n-triples",
ShaclFormat::RdfXml => "application/rdf+xml",
ShaclFormat::TriG => "application/trig",
ShaclFormat::N3 => "text/n3",
ShaclFormat::NQuads => "application/n-quads",
ShaclFormat::JsonLd => "application/ld+json",
}
}
}