diff stubs/rdfdb/rdflibpatch.pyi @ 1863:0f0ff27e55a3

stubs, mostly autogen or empty Ignore-this: bc70818d2bc92bf022c65c3572b9775e
author Drew Perttula <drewp@bigasterisk.com>
date Sat, 25 May 2019 12:01:26 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/stubs/rdfdb/rdflibpatch.pyi	Sat May 25 12:01:26 2019 +0000
@@ -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: ...