Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddElement ¶
AddElement is a utility function for adding an element to a graph. See MakeKB for more information on supported element types. Returns whether adding the element failed.
func MakeKB ¶
func MakeKB(t *testing.T, elements ...any) *knowledgebase.KnowledgeBase
MakeKB is a utility function for creating a KnowledgeBase from a list of elements which can be of types: - ResourceTemplate, *ResourceTemplate : adds the given resource template - EdgeTemplate, *EdgeTemplate : adds the given edge template - []*EdgeTemplate : adds all the edges in the list - string : parses the string as either a QualifiedTypeName or a path of QualifiedTypeNames and adds as empty templates
func StringToGraphElement ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.