ekglib

mime

MIME type constants and helpers used by ekglib components that need to work with content types.

This package is typically used indirectly by higher-level tools.

Main Functions

Constants

The module provides constants for common MIME types used in RDF and SPARQL operations:

Functions

Usage

from ekglib.mime import MIME_TURTLE, check_sparql_mime_type

# Use MIME type constants
content_type = MIME_TURTLE

# Validate MIME types
if check_sparql_mime_type('text/turtle'):
    print("Valid SPARQL MIME type")