Entity
Bases: BaseModel
An entity (node) in a knowledge graph.
Attributes: |
|
---|
Source code in wiseagents/graphdb/wise_agent_graph_db.py
9 10 11 12 13 14 15 16 17 18 19 20 |
|
GraphDocument
Bases: BaseModel
A graph document is a collection of entities and relationships that are part of a knowledge graph.
Attributes: |
|
---|
Source code in wiseagents/graphdb/wise_agent_graph_db.py
53 54 55 56 57 58 59 60 61 62 63 64 |
|
Relationship
Bases: BaseModel
A relationship (edge) in a knowledge graph.
Attributes: |
---|
Source code in wiseagents/graphdb/wise_agent_graph_db.py
23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
|
Source
Bases: BaseModel
Information about a source from which entities and relationships have been derived from.
Attributes: |
|
---|
Source code in wiseagents/graphdb/wise_agent_graph_db.py
39 40 41 42 43 44 45 46 47 48 49 50 |
|
WiseAgentGraphDB
Bases: YAMLObject
Abstract class to define the interface for a WiseAgentGraphDB.
Source code in wiseagents/graphdb/wise_agent_graph_db.py
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 |
|
get_schema()
abstractmethod
Get the schema of the graph DB.
Returns: |
|
---|
Source code in wiseagents/graphdb/wise_agent_graph_db.py
72 73 74 75 76 77 78 79 80 |
|
insert_entity(entity, source)
abstractmethod
Insert an entity into the graph DB.
Parameters: |
---|
Source code in wiseagents/graphdb/wise_agent_graph_db.py
104 105 106 107 108 109 110 111 112 113 114 |
|
insert_graph_documents(graph_documents)
abstractmethod
Insert a list of graph documents into the graph DB.
Parameters: |
|
---|
Source code in wiseagents/graphdb/wise_agent_graph_db.py
128 129 130 131 132 133 134 135 136 137 |
|
insert_relationship(relationship, source)
abstractmethod
Insert a relationship into the graph DB.
Parameters: |
|
---|
Source code in wiseagents/graphdb/wise_agent_graph_db.py
116 117 118 119 120 121 122 123 124 125 126 |
|
query(query, params=None)
abstractmethod
Query the graph DB.
Parameters: |
|
---|
Returns: |
|
---|
Source code in wiseagents/graphdb/wise_agent_graph_db.py
89 90 91 92 93 94 95 96 97 98 99 100 101 102 |
|
refresh_schema()
abstractmethod
Refresh the schema of the graph DB.
Source code in wiseagents/graphdb/wise_agent_graph_db.py
82 83 84 85 86 87 |
|