diff --git a/stubs/rdfdb/rdflibpatch.pyi b/stubs/rdfdb/rdflibpatch.pyi new file mode 100644 --- /dev/null +++ b/stubs/rdfdb/rdflibpatch.pyi @@ -0,0 +1,53 @@ +# Stubs for rdfdb.rdflibpatch (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +import unittest +from typing import Any + +def patchQuads(graph: Any, deleteQuads: Any, addQuads: Any, perfect: bool = ...) -> None: ... +def fixContextToUri(spoc: Any): ... +def inGraph(spoc: Any, graph: Any): ... +def graphFromQuads(q: Any): ... +def graphFromNQuad(text: Any): ... +def serializeQuad(g: Any): ... +def inContext(graph: Any, newContext: Any): ... +def contextsForStatement(graph: Any, triple: Any): ... + +A: Any +B: Any + +class TestInContext(unittest.TestCase): + def testResultHasQuads(self) -> None: ... + +class TestContextsForStatement(unittest.TestCase): + def testNotFound(self) -> None: ... + def testOneContext(self) -> None: ... + def testTwoContexts(self) -> None: ... + +class TestInGraph(unittest.TestCase): + def testSimpleMatch(self) -> None: ... + def testDontMatchDifferentStatement(self) -> None: ... + def testDontMatchStatementInAnotherContext(self) -> None: ... + +class TestGraphFromQuads(unittest.TestCase): + nqOut: str = ... + def testSerializes(self) -> None: ... + def testNquadParserSerializes(self) -> None: ... + +C: Any +CTX1: Any +CTX2: Any +stmt1: Any +stmt2: Any + +class TestPatchQuads(unittest.TestCase): + def testAddsToNewContext(self) -> None: ... + def testDeletes(self) -> None: ... + def testDeleteRunsBeforeAdd(self) -> None: ... + def testPerfectAddRejectsExistingStmt(self) -> None: ... + def testPerfectAddAllowsExistingStmtInNewContext(self) -> None: ... + def testPerfectDeleteRejectsAbsentStmt(self) -> None: ... + def testPerfectDeleteRejectsStmtFromOtherGraph(self) -> None: ... + def testPerfectDeleteAllowsRemovalOfStmtInMultipleContexts(self) -> None: ... + def testRedundantStmtOkForAddOrDelete(self) -> None: ...