Skip to main content

classify_resource_kind

Function classify_resource_kind 

Source
pub fn classify_resource_kind(
    is_subject: bool,
    is_class: bool,
    degree: u32,
    quoted_literal: bool,
) -> &'static str
Expand description

Classify a resource for packing. Quoted lexical forms that never appear as a subject are literals; rdf:type objects / high-degree hubs are classes; remaining IRIs are instances even when they only appear as objects.