def load_data(self, data):
        """

        :param data:
        :param rdf_format_opts:
        :return:
        """
        if self.verbose: printDebug("----------")
        if self.verbose: printDebug("Reading: '%s ...'" % data[:10])
        success = False
        for f in self.rdf_format_opts:
            if self.verbose:
                printDebug(".. trying rdf serialization: <%s>" % f)
            try:
                if f == 'json-ld':
                    self._fix_default_graph_for_jsonld()
                self.rdflib_graph.parse(data=data, format=f)
                if self.verbose: printDebug("..... success!")
                success = True
                self.sources_valid += ["Data: '%s ...'" % data[:10]]
                break
            except:
                if self.verbose: printDebug("..... failed", "error")

        if not success == True:
            self.loading_failed(self.rdf_format_opts)
            self.sources_invalid += ["Data: '%s ...'" % data[:10]]
def load_data ( self , data ) : if self . verbose : printDebug ( "----------" ) if self . verbose : printDebug ( "Reading: '%s ...'" % data [ : 10 ] ) success = False for f in self . rdf_format_opts : if self . verbose : printDebug ( ".. trying rdf serialization: <%s>" % f ) try : if f == 'json-ld' : self . _fix_default_graph_for_jsonld ( ) self . rdflib_graph . parse ( data = data , format = f ) if self . verbose : printDebug ( "..... success!" ) success = True self . sources_valid += [ "Data: '%s ...'" % data [ : 10 ] ] break except : if self . verbose : printDebug ( "..... failed" , "error" ) if not success == True : self . loading_failed ( self . rdf_format_opts ) self . sources_invalid += [ "Data: '%s ...'" % data [ : 10 ] ]
:param data:
        :param rdf_format_opts:
        :return: