Files @ 0f0ff27e55a3
Branch filter:

Location: light9/stubs/rdfdb/rdflibpatch.pyi - annotation

Drew Perttula
stubs, mostly autogen or empty
Ignore-this: bc70818d2bc92bf022c65c3572b9775e
# 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: ...