def testGetModelRemote(self): rouri = rdflib.URIRef(remotehost+remoterobase+remoteroname) minimbase = rdflib.URIRef(remotehost+remoterobase+remoteroname+remoteminim) constraint = ro_minim.getElementUri(minimbase, "#runnable_RO") model = ro_minim.getElementUri(minimbase, "#runnable_RO_model") minimgraph = ro_minim.readMinimGraph(minimbase) m = ro_minim.getModel(minimgraph, model) self.assertEquals(m['label'], rdflib.Literal("Runnable RO")) self.assertEquals(m['uri'], model) return
def testGetModel(self): self.setupConfig() rodir = self.createTestRo(testbase, "test-data-2", "RO test minim", "ro-testMinim") rouri = ro_manifest.getRoUri(rodir) minimbase = ro_manifest.getComponentUri(rodir, "Minim-UserRequirements2.rdf") model = ro_minim.getElementUri(minimbase, "#runnableRO") minimgraph = ro_minim.readMinimGraph(minimbase) m = ro_minim.getModel(minimgraph, model) self.assertEquals(m['label'], rdflib.Literal("Runnable RO")) self.assertEquals(m['uri'], model) return