예제 #1
0
    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
예제 #2
0
 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
예제 #3
0
 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