def __init__(self, source): super(CompoundGraph, self).__init__() try: self.microdata_graph = pyMicrodata().graph_from_source(source) except: self.microdata_graph = None try: self.rdfa_graph = pyRdfa().graph_from_source(source) except: self.rdfa_graph = None
def __init__(self, graph, doc_lines, url=""): super(MicrodataValidator, self).__init__(graph, doc_lines, url=url) self.parser = pyMicrodata() # use the microdata half of the compound self.graph = self.graph.microdata_graph
def __init__(self, graph, doc_lines, url=""): super(MicrodataValidator, self).__init__(graph, doc_lines, url=url) self.parser = pyMicrodata() self.graph = self.graph.microdata_graph # use the microdata half of the compound