@Before public void setUp() throws Exception { testRepository = createRepository(); testRepository.initialize(); testCon = testRepository.getConnection(); testCon.clear(); testCon.clearNamespaces(); testCon2 = testRepository.getConnection(); vf = testRepository.getValueFactory(); // Initialize values bob = vf.createBNode(); alice = vf.createBNode(); alexander = vf.createBNode(); name = vf.createURI(FOAF_NS + NAME); mbox = vf.createURI(FOAF_NS + MBOX); nameAlice = vf.createLiteral("Alice"); nameBob = vf.createLiteral("Bob"); mboxAlice = vf.createLiteral("alice@example.org"); mboxBob = vf.createLiteral("bob@example.org"); unknownContext = new URIImpl("urn:unknownContext"); context1 = vf.createURI("urn:x-local:graph1"); context2 = vf.createURI("urn:x-local:graph2"); }
@Override protected void setUp() throws Exception { testRepository = createRepository(); testRepository.initialize(); testCon = testRepository.getConnection(); testCon.clear(); testCon.clearNamespaces(); testCon2 = testRepository.getConnection(); vf = testRepository.getValueFactory(); // Initialize values bob = vf.createBNode(); alice = vf.createBNode(); alexander = vf.createBNode(); name = vf.createURI(FOAF_NS + "name"); mbox = vf.createURI(FOAF_NS + "mbox"); publisher = vf.createURI(DC_NS + "publisher"); nameAlice = vf.createLiteral("Alice"); nameBob = vf.createLiteral("Bob"); mboxAlice = vf.createLiteral("alice@example.org"); mboxBob = vf.createLiteral("bob@example.org"); Александър = vf.createLiteral("Александър"); unknownContext = new URIImpl("urn:unknownContext"); context1 = vf.createURI("urn:x-local:graph1"); context2 = vf.createURI("urn:x-local:graph2"); }
@Before public void setUp() throws Exception { testRepository = createRepository(); testRepository.initialize(); testCon = testRepository.getConnection(); testCon.clear(); testCon.clearNamespaces(); testCon2 = testRepository.getConnection(); vf = testRepository.getValueFactory(); // Initialize values bob = vf.createBNode(); alice = vf.createBNode(); alexander = vf.createBNode(); name = vf.createURI(FOAF_NS + NAME); mbox = vf.createURI(FOAF_NS + MBOX); nameAlice = vf.createLiteral("Alice"); nameBob = vf.createLiteral("Bob"); mboxAlice = vf.createLiteral("alice@example.org"); mboxBob = vf.createLiteral("bob@example.org"); unknownContext = new URIImpl("urn:unknownContext"); context1 = vf.createURI("urn:x-local:graph1"); context2 = vf.createURI("urn:x-local:graph2"); }