@@ -21,7 +21,8 @@ import net.sansa_stack.inference.rules.ReasoningProfile._
2121import net .sansa_stack .inference .rules .{RDFSLevel , ReasoningProfile }
2222
2323/**
24- * The class to compute the RDFS materialization of a given RDF graph.
24+ * A class to compute the materialization of a given RDF graph for a given reasoning profile.
25+ * Basically, used as the main class for inference.
2526 *
2627 * @author Lorenz Buehmann
2728 *
@@ -66,6 +67,7 @@ object RDFGraphMaterializer {
6667
6768 // set up the execution environment
6869 val env = ExecutionEnvironment .getExecutionEnvironment
70+ // and disable logging to standard out
6971 env.getConfig.disableSysoutLogging()
7072// env.setParallelism(4)
7173
@@ -89,10 +91,10 @@ object RDFGraphMaterializer {
8991
9092 // compute inferred graph
9193 val inferredGraph = reasoner.apply(graph)
92- println(s " |G_inf| = ${inferredGraph.size}" )
94+ // println(s"|G_inf| = ${inferredGraph.size}")
9395
9496 // write triples to disk
95- // RDFGraphWriter.writeToDisk(inferredGraph, output, writeToSingleFile, sortedOutput)
97+ RDFGraphWriter .writeToDisk(inferredGraph, output, writeToSingleFile, sortedOutput)
9698
9799 // println(env.getExecutionPlan())
98100
@@ -118,7 +120,7 @@ object RDFGraphMaterializer {
118120
119121 // the CLI parser
120122 val parser = new scopt.OptionParser [Config ](" RDFGraphMaterializer" ) {
121- head(" RDFGraphMaterializer" , " 0.4 .0" )
123+ head(" RDFGraphMaterializer" , " 0.5 .0" )
122124
123125// opt[Seq[File]]('i', "input").required().valueName("<path1>,<path2>,...").
124126// action((x, c) => c.copy(in = x)).
0 commit comments