GraphModel
- class mowl.base_models.GraphModel(*args, **kwargs)[source]
Bases:
ModelAbstract class for graph embedding methods.
Attributes Summary
Returns the edges of the graph as a list of
mowl.projection.edge.Edgeobjects.Returns a dictionary that maps graph nodes to ids.
Returns a dictionary that maps graph relations (edge labels) to ids.
Returns the projector of the graph model.
Methods Summary
set_projector(projector)Sets the projector of the graph model.
Attributes Documentation
- edges
Returns the edges of the graph as a list of
mowl.projection.edge.Edgeobjects.- Return type:
list of
Edgeobjects
- graph_relation_to_id
Returns a dictionary that maps graph relations (edge labels) to ids.
- Return type:
- projector
Returns the projector of the graph model.
- Return type:
ProjectionModelobject
Methods Documentation