: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(self) .. py:method:: add_to_classes(self, cls) .. py:method:: add_edge(self, triple) .. py:method:: convert(self) .. py:method:: _dot_class_node(self, class_) .. py:method:: _dot_instance_node(self, instance, class_=None) .. py:method:: _dot_node(self, uri, attrs) .. py:method:: generate_dotstring(cls, node_strings, edge_strings, fill) :classmethod: .. py:method:: generate(self) .. py:method:: graph(self, format='svg') .. py:method:: write_file(self, file) .. py:method:: _pred_label(self, uri) .. py:method:: compute_label(self, uri, length=20) .. py:function:: node_color(color) .. py:function:: text_justify(words, max_width)