示例#1
0
 def __init__(self, **properties):
     Job.__init__(self, "POST", self.target, properties)
示例#2
0
 def __init__(self, entity):
     Job.__init__(self, "DELETE", Target(entity))
示例#3
0
 def __init__(self, node, *labels):
     Job.__init__(self, "POST", Target(node, "labels"), list(LabelSet(labels)))
示例#4
0
 def __init__(self, relationship):
     Job.__init__(self, "GET", Target(relationship))
示例#5
0
文件: push.py 项目: zrg1993/py2neo
 def __init__(self, entity, properties):
     Job.__init__(self, "PUT", Target(entity, "properties"),
                  PropertySet(properties))
示例#6
0
文件: write.py 项目: rayqiu/py2neo
 def __init__(self, start_node, rel, end_node, **properties):
     uri = self.uri_for(start_node, "relationships")
     body = {"type": rel.type, "to": self.uri_for(end_node)}
     if rel.properties or properties:
         body["data"] = dict(rel.properties, **properties)
     Job.__init__(self, "POST", uri, body)
示例#7
0
 def __init__(self, entity):
     Job.__init__(self, "GET", Target(entity, "properties"))
示例#8
0
文件: write.py 项目: zrg1993/py2neo
 def __init__(self, **properties):
     Job.__init__(self, "POST", self.target, properties)
示例#9
0
文件: write.py 项目: zrg1993/py2neo
 def __init__(self, start_node, rel, end_node, **properties):
     body = {"type": rel.type, "to": Target(end_node).uri_string}
     if rel.properties or properties:
         body["data"] = dict(rel.properties, **properties)
     Job.__init__(self, "POST", Target(start_node, "relationships"), body)
示例#10
0
文件: write.py 项目: zrg1993/py2neo
 def __init__(self, entity, key):
     Job.__init__(self, "DELETE", Target(entity, "properties", key))
示例#11
0
文件: write.py 项目: zrg1993/py2neo
 def __init__(self, entity, label):
     Job.__init__(self, "DELETE", Target(entity, "labels", label))
示例#12
0
文件: write.py 项目: zrg1993/py2neo
 def __init__(self, entity):
     Job.__init__(self, "DELETE", Target(entity))
示例#13
0
文件: pull.py 项目: EricEllett/py2neo
 def __init__(self, relationship):
     Job.__init__(self, "GET", Target(relationship))
示例#14
0
文件: pull.py 项目: EricEllett/py2neo
 def __init__(self, node):
     Job.__init__(self, "GET", Target(node, "labels"))
示例#15
0
文件: pull.py 项目: EricEllett/py2neo
 def __init__(self, entity, key):
     Job.__init__(self, "GET", Target(entity, "properties", key))
示例#16
0
文件: push.py 项目: EricEllett/py2neo
 def __init__(self, entity, key, value):
     Job.__init__(self, "PUT", Target(entity, "properties", key), value)
示例#17
0
文件: write.py 项目: rayqiu/py2neo
 def __init__(self, **properties):
     Job.__init__(self, "POST", "node", properties)
示例#18
0
文件: push.py 项目: EricEllett/py2neo
 def __init__(self, entity, properties):
     Job.__init__(self, "PUT", Target(entity, "properties"), PropertySet(properties))
示例#19
0
文件: write.py 项目: rayqiu/py2neo
 def __init__(self, entity):
     uri = self.uri_for(entity)
     Job.__init__(self, "DELETE", uri)
示例#20
0
文件: write.py 项目: rayqiu/py2neo
 def __init__(self, entity, key, value):
     uri = self.uri_for(entity, "properties", key)
     Job.__init__(self, "PUT", uri, value)
示例#21
0
 def __init__(self, node):
     Job.__init__(self, "GET", Target(node, "labels"))
示例#22
0
文件: write.py 项目: rayqiu/py2neo
 def __init__(self, entity, properties):
     uri = self.uri_for(entity, "properties")
     Job.__init__(self, "PUT", uri, PropertySet(properties))
示例#23
0
文件: push.py 项目: zrg1993/py2neo
 def __init__(self, entity, key, value):
     Job.__init__(self, "PUT", Target(entity, "properties", key), value)
示例#24
0
文件: write.py 项目: rayqiu/py2neo
 def __init__(self, entity):
     uri = self.uri_for(entity, "properties")
     Job.__init__(self, "DELETE", uri)
示例#25
0
文件: push.py 项目: zrg1993/py2neo
 def __init__(self, node, labels):
     Job.__init__(self, "PUT", Target(node, "labels"),
                  list(LabelSet(labels)))
示例#26
0
文件: write.py 项目: rayqiu/py2neo
 def __init__(self, node, *labels):
     uri = self.uri_for(node, "labels")
     Job.__init__(self, "POST", uri, list(LabelSet(labels)))
示例#27
0
 def __init__(self, entity):
     Job.__init__(self, "DELETE", Target(entity, "properties"))
示例#28
0
文件: write.py 项目: rayqiu/py2neo
 def __init__(self, entity, label):
     uri = self.uri_for(entity, "labels", label)
     Job.__init__(self, "DELETE", uri)
示例#29
0
 def __init__(self, entity, label):
     Job.__init__(self, "DELETE", Target(entity, "labels", label))
示例#30
0
文件: write.py 项目: rayqiu/py2neo
 def __init__(self, entity, *labels):
     uri = self.uri_for(entity, "labels")
     Job.__init__(self, "PUT", uri, list(LabelSet(labels)))
示例#31
0
 def __init__(self, start_node, rel, end_node, **properties):
     body = {"type": rel.type, "to": Target(end_node).uri_string}
     if rel.properties or properties:
         body["data"] = dict(rel.properties, **properties)
     Job.__init__(self, "POST", Target(start_node, "relationships"), body)
示例#32
0
文件: pull.py 项目: rayqiu/py2neo
 def __init__(self, method, entity, *segments, **kwargs):
     self.entity = entity
     uri = self.uri_for(entity, *segments, **kwargs)
     Job.__init__(self, method, uri)