No project description provided
Project description
CLiSN <:books:>:sparkles:
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)
Built Distribution
clisn-0.1.0-py3-none-any.whl
(14.7 kB
view hashes)