File: simple_quad.py

package info (click to toggle)
rdflib 7.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 77,852 kB
  • sloc: python: 59,555; sh: 153; makefile: 83; ruby: 74; xml: 45
file content (12 lines) | stat: -rw-r--r-- 321 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
from rdflib.graph import ConjunctiveGraph, Graph
from test.utils.namespace import EGDO


def populate_graph(graph: Graph) -> None:
    assert isinstance(graph, ConjunctiveGraph)

    egdo_graph = graph.get_context(EGDO.graph)
    egdo_graph.add((EGDO.subject, EGDO.predicate, EGDO.object))


__all__ = ["populate_graph"]