Skip to content

Commit 2e17a29

Browse files
authored
PGT & RPT optimizations (#45)
* new: reset_arango_db * new: skip write_adb_col if `resource_collection` is defined * v2: `__pgt_parse_literal_statements` * new: early exit on `write_adb_cols` * new: `term_metadata_cache`, `insert_async`, cleanup * async_db * new: `__precompute_rdf_list_info`, `__is_rdf_list_statement` * remove: __term_metadata_cache * mypy * new: `__pgt_parse_non_literal_statements` * remove: `self.__adb_docs` * Update main.py * fix: lint * new: `enable_pgt_cache` * cleanup * fix: lint * fix: lint * new: progress bar for statement prep * `rich` cleanup * fix: modulo
1 parent 3fe84e6 commit 2e17a29

File tree

3 files changed

+461
-263
lines changed

3 files changed

+461
-263
lines changed

arango_rdf/controller.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python3
22
from typing import Set
33

4-
from arango.database import StandardDatabase
4+
from arango.database import AsyncDatabase, StandardDatabase
55
from rdflib import Graph
66

77
from .abc import AbstractArangoRDFController
@@ -27,6 +27,7 @@ class ArangoRDFController(AbstractArangoRDFController):
2727

2828
def __init__(self) -> None:
2929
self.db: StandardDatabase
30+
self.async_db: AsyncDatabase
3031
self.rdf_graph: Graph
3132

3233
def identify_best_class(

0 commit comments

Comments
 (0)