SchemaOrg { public static void load(SpimeDB db) { List<NObject> pending = new FasterList(1024); try { new SchemaOrg() { @Override public void onClass(String id, String label, List<String> supertypes, String comment) { MutableNObject t = new MutableNObject(id, label); t.description(comment); t.put(">", supertypes.toArray(new String[supertypes.size()])); pending.add(t); } private String escape(String id) { return id.replace('-', '_'); } @Override public void onProperty(String id, String label, List<String> domains, List<String> ranges, String comment) { } }; } catch (IOException e) { e.printStackTrace(); } db.add(pending); } SchemaOrg(); static void load(SpimeDB db); abstract void onClass(String id, String label, List<String> supertypes, String comment); abstract void onProperty(String id, String label, List<String> domains, List<String> ranges, String comment);  }
@Test public void test1() throws IOException { SpimeDB db = new SpimeDB(); SchemaOrg.load(db); db.sync(50); assertTrue(db.size() + " has at least 500?" , db.size() > 500); }