Skip to content
This repository was archived by the owner on Oct 8, 2020. It is now read-only.

Commit be1bf6f

Browse files
Minor changes in main entry class, e.g. always write to disk and bumped CLI version.
1 parent fc07298 commit be1bf6f

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

sansa-inference-flink/src/main/scala/net/sansa_stack/inference/flink/RDFGraphMaterializer.scala

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ import net.sansa_stack.inference.rules.ReasoningProfile._
2121
import 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

Comments
 (0)