Skip to main content

No project description provided

Project description

CLiSN <:books:>:sparkles:

License: GPL v3

A collection of RDFLib namespaces for the Computational Literary Studies Infrastructure project.

Requirements

  • Python >=3.11

Installation

Usage

Namespaces

CLiSN provides rdflib.Namespaces for the CLSInfra project.

# todo: find a good example.

Note that from clisn import * imports rdflib.Namespace instances only. Please always use explicit imports.

NamespaceManager

clisn features a custom NamespaceManager for CLSInfra namespaces. This e.g. allows to easily generate a namespaced rdflib.Graph like so:

from rdflib import Graph, URIRef, Literal
from clisn import CLSInfraNamespaceManager, crm

graph = Graph()
CLSInfraNamespaceManager(graph)

graph.add(
    (
        URIRef("subject"),
        crm["p90_has_value"],
        Literal("some value")
    )
)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

clisn-0.1.0.tar.gz (14.1 kB view hashes)

Uploaded Source

Built Distribution

clisn-0.1.0-py3-none-any.whl (14.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page