diff --git a/src/main/scala/uk/org/floop/updateInPlace/Run.scala b/src/main/scala/uk/org/floop/updateInPlace/Run.scala new file mode 100644 index 0000000..39edbdb --- /dev/null +++ b/src/main/scala/uk/org/floop/updateInPlace/Run.scala @@ -0,0 +1,48 @@ +package uk.org.floop.updateInPlace + +import java.io.{File, FileOutputStream, FileWriter} +import java.nio.file.{Files, Path} + +import org.apache.jena.query.{Dataset, DatasetFactory, QueryExecutionFactory, QueryFactory} +import org.apache.jena.rdf.model.{Model, ModelFactory} +import org.apache.jena.riot.{Lang, RDFDataMgr, RDFLanguages} +import org.apache.jena.update.UpdateAction + +import scala.io.Source + +case class Config(dir: File = new File("sparql"), + data: File = null) + +object Run extends App { + + val packageVersion: String = getClass.getPackage.getImplementationVersion() + val parser = new scopt.OptionParser[Config]("sparql-update-in-place") { + head("sparql-update-in-place", packageVersion) + opt[File]('q', "querydir") optional() valueName "