def __init__(self, uri_or_path=None, text=None, file_obj=None, rdf_format="", verbose=True, hide_base_schemas=True):
        """
        Load the graph in memory, then setup all necessary attributes.
        """
        super(Ontospy, self).__init__()

        self.rdfgraph = None
        self.sources = None
        self.queryHelper = None
        self.ontologies = []
        self.classes = []
        self.namespaces = []
        self.properties = []
        self.annotationProperties = []
        self.objectProperties = []
        self.datatypeProperties = []
        self.skosConcepts = []
        self.toplayer = []
        self.toplayerProperties = []
        self.toplayerSkosConcepts = []
        self.OWLTHING = OntoClass(rdflib.OWL.Thing, rdflib.OWL.Class, self.namespaces)

        # finally:
        if uri_or_path or text or file_obj:
            self.load(uri_or_path, text, file_obj, rdf_format, verbose, hide_base_schemas)
def __init__ ( self , uri_or_path = None , text = None , file_obj = None , rdf_format = "" , verbose = True , hide_base_schemas = True ) : super ( Ontospy , self ) . __init__ ( ) self . rdfgraph = None self . sources = None self . queryHelper = None self . ontologies = [ ] self . classes = [ ] self . namespaces = [ ] self . properties = [ ] self . annotationProperties = [ ] self . objectProperties = [ ] self . datatypeProperties = [ ] self . skosConcepts = [ ] self . toplayer = [ ] self . toplayerProperties = [ ] self . toplayerSkosConcepts = [ ] self . OWLTHING = OntoClass ( rdflib . OWL . Thing , rdflib . OWL . Class , self . namespaces ) if uri_or_path or text or file_obj : self . load ( uri_or_path , text , file_obj , rdf_format , verbose , hide_base_schemas )
Load the graph in memory, then setup all necessary attributes.