Edge
- class mowl.projection.Edge(src, rel, dst, weight=1.0)[source]
Bases:
objectClass representing a graph edge.
Attributes Summary
Getter method for
_dstattributeGetter method for
_relattributeGetter method for
_srcattributeGetter method for
_weightattributeMethods Summary
as_pykeen(edges[, create_inverse_triples, ...])This method transform a set of edges into an object of the type
pykeen.triples.triples_factory.TriplesFactory.astuple()getEntitiesAndRelations(edges)get_entities_and_relations(edges)zip(edges)Attributes Documentation
Methods Documentation
- static as_pykeen(edges, create_inverse_triples=True, entity_to_id=None, relation_to_id=None)[source]
This method transform a set of edges into an object of the type
pykeen.triples.triples_factory.TriplesFactory. This method is intended to be used for PyKEEN methods.- Parameters:
- Return type:
Added in version 0.1.0: This method is available to transform graph edges obtained from ontologies into PyKEEN triples.
- static getEntitiesAndRelations(edges)[source]
Deprecated since version 0.1.0: Use get_entities_and_relations instead