def test_bolew(self):
        #with open((Path(__file__).parent / 'apinatomy/data/bolser-lewis-map.json'), 'rt') as f:
        #m = json.load(f)
        m = {'id': 'null', 'resources': {}}
        with open((Path(__file__).parent /
                   'apinatomy/data/bolser-lewis-generated.json'), 'rt') as f:
            g = json.load(f)

        apin = apinat.Graph(m, g)
        rdfg = apin.graph()
        rtmap = apinat.Graph.fromRdf(rdfg).map
        if debug:
            print(rdfg.ttl)
            rdfg.write(Path('test-bolew.ttl'))
            print(rtmap)
            assert False
    def test_5(self):
        with open((Path(__file__).parent / 'apinatomy/data/test_5_map.json'),
                  'rt') as f:
            m = json.load(f)
        # FIXME generated is broken at the moment
        with open((Path(__file__).parent / 'apinatomy/data/test_5_model.json'),
                  'rt') as f:
            g = json.load(f)

        apin = apinat.Graph(m, g)
        rdfg = apin.graph()
        rtmap = apinat.Graph.fromRdf(rdfg).map
        assert list(rdfg)
        assert rtmap['resources']
        if debug:
            print(rdfg.ttl)
            rdfg.write(Path('test-5.ttl'))
            print(rtmap)
            assert False
    def test_4(self):
        with open((Path(__file__).parent / 'apinatomy/data/test_4_map.json'),
                  'rt') as f:
            m = json.load(f)
        with open(
            (Path(__file__).parent / 'apinatomy/data/test_4_generated.json'),
                'rt') as f:
            g = json.load(f)

        apin = apinat.Graph(m, g)
        rdfg = apin.graph()
        rtmap = apinat.Graph.fromRdf(rdfg).map
        assert list(rdfg)
        assert rtmap['resources']
        if export:
            rdfg.write(Path('test-4.ttl'))
        if debug:
            print(rdfg.ttl)
            print(rtmap)
            assert False