コード例 #1
0
ファイル: client.py プロジェクト: nicholsn/bulbs
    def lookup_edge(self, index_name, key, value):
        """
        Looks up an edge in the index and returns the Response.

        :param index_name: Name of the index.
        :type index_name: str

        :param key: Name of the key.
        :type key: str

        :param value: Value of the key.
        :type value: str

        :rtype: Neo4jResponse

        """
        key, value = quote_plus(key), quote_plus(value)
        path = build_path(index_path,edge_path,name,key,value)
        params = None
        return self.request.get(path, params)
コード例 #2
0
ファイル: client.py プロジェクト: nicholsn/bulbs
    def lookup_vertex(self, index_name, key, value):
        """
        Returns the vertices indexed with the key and value.

        :param index_name: Name of the index.
        :type index_name: str

        :param key: Name of the key.
        :type key: str

        :param value: Value of the key.
        :type value: str

        :rtype: Neo4jResponse

        """
        key, value = quote_plus(key), quote_plus(value)
        path = build_path(index_path, "node", index_name, key, value)
        params = None
        return self.request.get(path, params)
コード例 #3
0
ファイル: message.py プロジェクト: nicholsn/bulbs
 def lookup_edge(self,name,key,value):
     """Looks up an edge in the index and returns the Response."""
     key, value = quote_plus(key), quote_plus(value)
     path = build_path(index_path,edge_path,name,key,value)
     params = None
     return GET, path, params
コード例 #4
0
ファイル: message.py プロジェクト: nicholsn/bulbs
 def lookup_vertex(self,name,key,value):
     """Returns the vertices indexed with the key and value."""
     key, value = quote_plus(key), quote_plus(value)
     path = build_path(index_path,"node",name,key,value)
     params = None
     return GET, path, params