Coverage for triplelite / _types.py: 100%

13 statements  

« prev     ^ index     » next       coverage.py v7.13.5, created at 2026-04-15 16:42 +0000

1# SPDX-FileCopyrightText: 2026 Arcangelo Massari <arcangelo.massari@unibo.it> 

2# 

3# SPDX-License-Identifier: ISC 

4 

5from __future__ import annotations 

6 

7from typing import NamedTuple 

8 

9_XSD_STRING = "http://www.w3.org/2001/XMLSchema#string" 

10 

11 

12class RDFTerm(NamedTuple): 

13 type: str 

14 value: str 

15 datatype: str = "" 

16 lang: str = "" 

17 

18 

19Triple = tuple[str, str, RDFTerm] 

20SPOIndex = dict[str, dict[str, set[RDFTerm]]] 

21POSIndex = dict[str, dict[RDFTerm, set[str]]] 

22_InternalSPO = dict[int, dict[int, set[int]]] 

23_InternalPOS = dict[int, dict[int, set[int]]]