Beispiel #1
0
 private void assertEyeballURIEquals(String local, Resource r) {
   assertEquals(EYE.getURI() + local, r.getURI());
 }
Beispiel #2
0
 @Test
 public void testEyeballURI() {
   assertEquals("http://jena.hpl.hp.com/Eyeball#", EYE.getURI());
 }
Beispiel #3
0
 protected String getLabel(Resource r) {
   StmtIterator labels = EYE.getSchema().listStatements(r, RDFS.label, (RDFNode) null);
   if (labels.hasNext()) return labels.nextStatement().getString();
   else throw new JenaException("no label found for resource " + r);
 }