JsonLDParser implements Iterator<Node[]>, Iterable<Node[]> { public Iterator<Node[]> parse(Reader r, String baseURI) throws ParseException { return parse(new BufferedReader(r), baseURI); } JsonLDParser(); Iterator<Node[]> parse(Reader r, String baseURI); Iterator<Node[]> parse(InputStream is, final String baseURI); Iterator<Node[]> parse(InputStream is, Charset cs,
			final String baseURI); Iterator<Node[]> parse(BufferedReader br, String baseURI); @Override Iterator<Node[]> iterator(); @Override boolean hasNext(); @Override Node[] next(); @Override void remove();  }
@Test public void test() throws ParseException { String s = "{" + " \"@context\": \"http: + "\"@id\":\"sdf\"," + " \"@type\": \"Person\", " + " \"name\": \"Jane Doe\", " + " \"jobTitle\": \"Professor\", " + " \"telephone\": \"(425) 123-4567\", " + " \"url\": \"http: + "}"; System.err.println("Testing using:"); System.err.println(s); System.err.println(); System.err.println("Result:"); JsonLDParser jlp = new JsonLDParser(); jlp.parse(new ByteArrayInputStream(s.getBytes()), "http: for (Node[] nx:jlp) { System.err.println(Nodes.toString(nx)); } }
@Test public void test2() throws ParseException { String s = "{ " + "\"@context\": " + "\"http: + "\"@id\": \"http: System.err.println("Testing using:"); System.err.println(s); System.err.println(); System.err.println("Result:"); JsonLDParser jlp = new JsonLDParser(); jlp.parse(new ByteArrayInputStream(s.getBytes()), "http: for (Node[] nx:jlp) { System.err.println(Nodes.toString(nx)); } }