我在编译过程中遇到了问题。你能帮忙解决问题吗?
`
public static void main(String[] args) throws IOException {
File dir = new File("C:data\\test");
String[] fileNames = dir.list();
FileWriter outFile = new FileWriter("out.ttl");
RDFWriter writer = org.eclipse.rdf4j.rio.Rio.createWriter(RDFFormat.TURTLE, outFile );
writer.startRDF();
for (String fileName : fileNames) {
System.out.println("Reading from " + fileName);
File f = new File(dir, fileName);
Model data = Rio.parse(new FileInputStream(f), "", RDFFormat.TURTLE);
for (Statement st: data) {
if ( "efrbroo:F22_Self-Contained_Expression" != null ) {
writer.handleStatement(st);
}
}
}
writer.endRDF();
}
`
这个问题的最初问题在这里:RDF4J数据合并
慕田峪4524236
相关分类