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

Commit

Permalink
Minor changes in main entry class, e.g. always write to disk and bump…
Browse files Browse the repository at this point in the history
…ed CLI version.
  • Loading branch information
LorenzBuehmann committed Jun 17, 2019
1 parent fc07298 commit be1bf6f
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ import net.sansa_stack.inference.rules.ReasoningProfile._
import net.sansa_stack.inference.rules.{RDFSLevel, ReasoningProfile}

/**
* The class to compute the RDFS materialization of a given RDF graph.
* A class to compute the materialization of a given RDF graph for a given reasoning profile.
* Basically, used as the main class for inference.
*
* @author Lorenz Buehmann
*
Expand Down Expand Up @@ -66,6 +67,7 @@ object RDFGraphMaterializer {

// set up the execution environment
val env = ExecutionEnvironment.getExecutionEnvironment
// and disable logging to standard out
env.getConfig.disableSysoutLogging()
// env.setParallelism(4)

Expand All @@ -89,10 +91,10 @@ object RDFGraphMaterializer {

// compute inferred graph
val inferredGraph = reasoner.apply(graph)
println(s"|G_inf| = ${inferredGraph.size}")
// println(s"|G_inf| = ${inferredGraph.size}")

// write triples to disk
// RDFGraphWriter.writeToDisk(inferredGraph, output, writeToSingleFile, sortedOutput)
RDFGraphWriter.writeToDisk(inferredGraph, output, writeToSingleFile, sortedOutput)

// println(env.getExecutionPlan())

Expand All @@ -118,7 +120,7 @@ object RDFGraphMaterializer {

// the CLI parser
val parser = new scopt.OptionParser[Config]("RDFGraphMaterializer") {
head("RDFGraphMaterializer", "0.4.0")
head("RDFGraphMaterializer", "0.5.0")

// opt[Seq[File]]('i', "input").required().valueName("<path1>,<path2>,...").
// action((x, c) => c.copy(in = x)).
Expand Down

0 comments on commit be1bf6f

Please sign in to comment.