public class AddDataFromRdfFile extends Object
.nt.gz file, but you can also
import from .nt files. Moreover, it shows how query answers that
result from reasoning over these facts can be exported to .csv files.
This example is an adaptation of AddDataFromCsvFile, where the rules
have been modified to work with the ternary predicates that N-Triples
enforces.
For importing, an RdfFileDataSource that contains a path to the
corresponding .nt.gz file must be created. An .nt file
contains facts in the RDF N-Triples format, which can be associated with a
ternary Predicate. A .nt.gz file is the gzipped version of
such an .nt file.
For exporting, a path to the output .csv file must be specified.
Exception handling is omitted for simplicity.
| Constructor and Description |
|---|
AddDataFromRdfFile() |
public static void main(String[] args) throws IOException, org.semanticweb.vlog4j.parser.ParsingException
IOExceptionorg.semanticweb.vlog4j.parser.ParsingExceptionCopyright © 2018‘2019 VLog4j Developers. Generated from source code published under the Apache License 2.0. For more information, see the VLog4j homepage