Main Author: Aidan Hogan Contributions: Andreas Harth
Here you can find the Java source for a parser of file in Nx format, where x = Triples, Quads, or any other number.
NxParser nxp = new NxParser(new FileInputStream("filetoparse.nq"),false);
while (nxp.hasNext()) {
Node[] ns = nxp.next();
for (Node n: ns) {
System.out.print(n.toN3());
System.out.print(" ");
}
System.out.println(".");
}
NQuads post from Sean Palmer, 2001.
Draft specification of the NQuads/Nx format