示例#1
0
文件: foaf.py 项目: wxwilcke/dann
    def load_dataset(self, seed=None):
        rdfGraph = rdf.KnowledgeGraph()
        rdfGraph.read("http://www.w3.org/People/Berners-Lee/card")

        dataset = SimpleContainer(rdf.propositionalize(rdfGraph, twoHot), seed)
        dataset.init()

        return dataset
示例#2
0
文件: das.py 项目: wxwilcke/dann
    def load_dataset(self, seed=None):
        rdfGraph = rdf.KnowledgeGraph()
        rdfGraph.read("./examples/das.ttl")

        dataset = SimpleContainer(rdf.propositionalize(rdfGraph, twoHot), seed)
        dataset.init()

        return dataset