:py:mod:`ontoviz.graph` ======================= .. py:module:: ontoviz.graph Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: ontoviz.graph.OntologyGraph Functions ~~~~~~~~~ .. autoapisummary:: ontoviz.graph.node_color ontoviz.graph.text_justify Attributes ~~~~~~~~~~ .. autoapisummary:: ontoviz.graph.query_classes ontoviz.graph.query_properties ontoviz.graph.common_ns .. py:data:: query_classes .. py:data:: query_properties .. py:data:: common_ns .. py:class:: OntologyGraph(files, config, format='ttl', ontology=None) .. py:attribute:: pred_map .. py:method:: _load_files(graph, files, format='ttl') :staticmethod: .. py:method:: _read_graph() .. py:method:: add_to_classes(cls) .. py:method:: add_edge(triple) .. py:method:: convert() .. py:method:: _dot_class_node(class_) .. py:method:: _dot_instance_node(instance, class_=None) .. py:method:: _dot_node(uri, attrs) .. py:method:: generate_dotstring(node_strings, edge_strings, fill) :classmethod: .. py:method:: generate() .. py:method:: graph(format='svg') .. py:method:: write_file(file) .. py:method:: _pred_label(uri) .. py:method:: compute_label(uri, length=20) .. py:function:: node_color(color) .. py:function:: text_justify(words, max_width)