Beispiel #1
0
    def test_makevoid_remote(self):

        uri = http_base + 'heb.rdf'
        stats = lodstats.stats.void_stats
        rdf_stats = lodstats.RDFStats(uri, stats=stats)
        rdf_stats.disable_debug()
        rdf_stats.start_statistics()
        mv = MakeVoid(rdf_stats, serialize_as="turtle")
        void_stats = mv.voidify()
        self.assertTrue(void_stats.find('http://rdfs.org/ns/void') != -1)
    def test_makevoid_remote(self):

        uri = http_base + 'heb.rdf'
        stats = lodstats.stats.void_stats
        rdf_stats = lodstats.RDFStats(uri, stats=stats)
        rdf_stats.disable_debug()
        rdf_stats.start_statistics()
        mv = MakeVoid(rdf_stats, serialize_as="turtle")
        void_stats = mv.voidify()
        self.assertTrue(void_stats.find('http://rdfs.org/ns/void') != -1)
Beispiel #3
0
    def test_makevoid_local(self):

        uri = 'file://' + helpers.resources_path + 'heb.rdf'
        stats = lodstats.stats.void_stats
        rdf_stats = lodstats.RDFStats(uri, stats=stats)
        rdf_stats.disable_debug()
        rdf_stats.start_statistics()
        mv = MakeVoid(rdf_stats, serialize_as="turtle")
        void_stats = mv.voidify()
        self.assertTrue(void_stats.find('http://rdfs.org/ns/void') != -1)
    def test_makevoid_local(self):

        uri = 'file://' + helpers.resources_path + 'heb.rdf'
        stats = lodstats.stats.void_stats
        rdf_stats = lodstats.RDFStats(uri, stats=stats)
        rdf_stats.disable_debug()
        rdf_stats.start_statistics()
        mv = MakeVoid(rdf_stats, serialize_as="turtle")
        void_stats = mv.voidify()
        self.assertTrue(void_stats.find('http://rdfs.org/ns/void') != -1)