From a7c157a370980dbc593b24a7c15267c65d8ab9cc Mon Sep 17 00:00:00 2001
From: Sebastian Hellmann <hellmann@informatik.uni-leipzig.de>
Date: Fri, 6 Sep 2019 11:03:52 +0200
Subject: [PATCH] readme

---
 README.md | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/README.md b/README.md
index 65c31a6..272b59d 100644
--- a/README.md
+++ b/README.md
@@ -23,6 +23,38 @@ TODO
 TODO
 
 ## Run Databus-Derive (clone and parse)
+On the respective server there is a user marvin-fetch, that has access to `/data/derive` containing the pom.xml of https://github.com/dbpedia/databus-maven-plugin/tree/master/dbpedia
+
+```
+# query to get all versions fro derive in xml syntax to paste directly into pom.xml
+PREFIX dataid: <http://dataid.dbpedia.org/ns/core#>
+SELECT distinct (?derive) WHERE {
+
+    ?dataset dataid:group <https://databus.dbpedia.org/marvin/generic> .
+    ?dataset dataid:artifact ?artifact .
+    ?dataset dataid:version ?version .
+    ?dataset dct:hasVersion "2019.08.30"^^xsd:string
+	BIND (CONCAT("<version>",?artifact,"/${databus.deriveversion}</version>") as ?derive)
+}
+order by asc(?derive)
+
+
+```
+#######
+# This is still manual, will be a cronjob soon
+#######
+su marvin-fetch
+tmux a -t derive
+
+WHAT=mappings
+NEWVERSION=2019.08.30
+# prepare
+cd /data/derive/databus-maven-plugin/dbpedia/$WHAT
+git pull
+mvn versions:set -DnewVersion=$NEWVERSION
+# run
+mvn -T 23 databus-derive:clone -Ddatabus.deriveversion=$NEWVERSION
+```
 
 ## Move data to download server (internal)
 run marvin-fetch.sh script in databus/dbpedia folder
-- 
GitLab