prttl 0.4.0

Pretty-printer for RDF Turtle
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// SPDX-FileCopyrightText: 2025 Robin Vobruba <hoijui.quaero@gmail.com>
//
// SPDX-License-Identifier: Apache-2.0

//! Provides ready to use [`NamedNodeRef`]s
//! for the [prtr](http://w3id.org/oseg/ont/prtr) OWL/RDF ontology/vocabulary.

use const_format::formatcp;
use oxrdf::NamedNodeRef;
use std::sync::LazyLock;

pub const NS: &str = "http://w3id.org/oseg/ont/prtr#";
pub const PREFIX: &str = "prtr";

/// The datatype property to assign an integer to each blank node,
/// to be used for sorting them when pretty-printing.
pub static SORTING_ID: LazyLock<NamedNodeRef> =
    LazyLock::new(|| NamedNodeRef::new_unchecked(formatcp!("{NS}sortingId")));