Package SPARQLWrapper :: Module SmartWrapper :: Class Value
[hide private]
[frames] | no frames]

Class Value

source code

object --+
         |
        Value

Class encapsulating a single binding for a variable.

Instance Methods [hide private]
 
__init__(self, variable, binding)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__repr__(self)
repr(x)
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  URI = 'uri'
the string denoting a URI variable
  Literal = 'literal'
the string denoting a Literal variable
  TypedLiteral = 'typed-literal'
the string denoting a typed literal variable
  BNODE = 'bnode'
the string denoting a blank node variable
Instance Variables [hide private]
string (URI) datatype
Datatype of the binding, or None if not set
string lang
Language tag of the binding, or None if not set
string; one of Value.URI, Value.Literal, Value.TypedLiteral, or Value.BNODE type
Type of the binding
string value
Value of the binding
string variable
The original variable, stored for an easier reference
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, variable, binding)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • variable - the variable for that binding. Stored for an easier reference
  • binding - the binding dictionary part of the return result for a specific binding
Overrides: object.__init__

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)