view stubs/rdflib/__init__.pyi @ 1972:d4a07ad96aad

attempt a pyftdi output driver using code from https://github.com/jlbrogdon/dmx_controller/blob/master/OpenDmxUsb/__init__.py (gplv2) Ignore-this: 5a4dbbc0493dfa0bf62cc9c5b79b96d7
author drewp@bigasterisk.com
date Sat, 08 Jun 2019 07:36:34 +0000
parents f1f426af34ed
children
line wrap: on
line source

# Stubs for rdflib (Python 3.4)
#
from typing import Tuple, Union


# this is the 1st way that worked. 'from rdflib.term import URIRef' did not work.
import rdflib.namespace as _n
Namespace = _n.Namespace

RDF: Namespace
RDFS: Namespace
XSD: Namespace

import rdflib.term as _t
URIRef = _t.URIRef
Literal = _t.Literal
BNode = _t.BNode

import rdflib.graph as _g
ConjunctiveGraph = _g.ConjunctiveGraph
Graph = _g.Graph

# not part of rdflib
StatementType = Tuple[Union[URIRef, BNode], URIRef, _t.Node, URIRef]