Ensures that a specified edge type exists in the NebulaGraph
database. If the edge type already exists, this method does nothing.Parameters:
edge_type (str): The name of the edge type to be created.
time_label (str, optional): A specific timestamp to set as the default value for the time label property. If not provided, no timestamp will be added. (default: :obj:None)
Ensures a tag is created in the NebulaGraph database. If the tag
already exists, it does nothing.Parameters:
tag_name (str): The name of the tag to be created.
time_label (str, optional): A specific timestamp to set as the default value for the time label property. If not provided, no timestamp will be added. (default: :obj:None)
Add a node with the specified tag and properties.Parameters:
node_id (str): The ID of the node.
tag_name (str): The tag name of the node.
time_label (str, optional): A specific timestamp to set for the node’s time label property. If not provided, no timestamp will be added. (default: :obj:None)
Adds a relationship (triplet) between two entities in the Nebula
Graph database.Parameters:
subj (str): The identifier for the subject entity.
obj (str): The identifier for the object entity.
rel (str): The relationship between the subject and object.
time_label (str, optional): A specific timestamp to set for the time label property of the relationship. If not provided, no timestamp will be added. (default: :obj:None)
Returns:Tuple[List[str], List[Dict[str, Any]]]: A tuple where the first
element is a list of node schema properties, and the second
element is a list of dictionaries representing node structures.
Returns:Tuple[List[str], List[Dict[str, Any]]]: A tuple where the first
element is a list of relationship schema properties, and the
second element is a list of dictionaries representing
relationship structures.