jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/373395 )

Change subject: Add script for creating new namespaces
......................................................................


Add script for creating new namespaces

Bug: T157676
Change-Id: Ib6d2ad3740eee3f0524d3bcf387d7f180e59742b
---
A dist/src/script/createNamespace.sh
A dist/src/script/default.properties
2 files changed, 33 insertions(+), 0 deletions(-)

Approvals:
  Smalyshev: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/dist/src/script/createNamespace.sh 
b/dist/src/script/createNamespace.sh
new file mode 100755
index 0000000..3649b8c
--- /dev/null
+++ b/dist/src/script/createNamespace.sh
@@ -0,0 +1,13 @@
+#/bin/bash
+# This script can be used to create a new namespace on Blazegraph
+HOST="http://localhost:9999";
+URL="$HOST/bigdata/namespace"
+CATEGORY=$1
+
+PROPS=`mktemp /tmp/wdqs.XXXXXX` || exit 1
+trap "rm -f $PROPS" EXIT
+
+sed -e "s/{NAMESPACE}/$CATEGORY/" < default.properties > $PROPS
+cat $PROPS
+curl -XPOST $URL --data-binary @$PROPS -H 'Content-type: text/plain'
+echo
diff --git a/dist/src/script/default.properties 
b/dist/src/script/default.properties
new file mode 100644
index 0000000..aedf2be
--- /dev/null
+++ b/dist/src/script/default.properties
@@ -0,0 +1,20 @@
+com.bigdata.rdf.sail.namespace={NAMESPACE}
+com.bigdata.rdf.store.AbstractTripleStore.textIndex=false
+com.bigdata.rdf.sail.truthMaintenance=false
+com.bigdata.rdf.store.AbstractTripleStore.quads=false
+com.bigdata.rdf.store.AbstractTripleStore.statementIdentifiers=false
+com.bigdata.rdf.store.AbstractTripleStore.axiomsClass=com.bigdata.rdf.axioms.NoAxioms
+com.bigdata.rdf.store.AbstractTripleStore.justify=false
+com.bigdata.rdf.sail.isolatableIndices=false
+com.bigdata.rdf.store.AbstractTripleStore.geoSpatial=false
+com.bigdata.rdf.store.AbstractTripleStore.vocabularyClass=org.wikidata.query.rdf.blazegraph.WikibaseVocabulary$V002
+com.bigdata.rdf.store.AbstractTripleStore.inlineURIFactory=org.wikidata.query.rdf.blazegraph.WikibaseInlineUriFactory
+com.bigdata.rdf.store.AbstractTripleStore.extensionFactoryClass=org.wikidata.query.rdf.blazegraph.WikibaseExtensionFactory
+com.bigdata.btree.writeRetentionQueue.capacity=4000
+com.bigdata.btree.BTree.branchingFactor=128
+com.bigdata.namespace.{NAMESPACE}.lex.com.bigdata.btree.BTree.branchingFactor=400
+com.bigdata.namespace.{NAMESPACE}.lex.ID2TERM.com.bigdata.btree.BTree.branchingFactor=800
+com.bigdata.namespace.{NAMESPACE}.lex.TERM2ID.com.bigdata.btree.BTree.branchingFactor=128
+com.bigdata.namespace.{NAMESPACE}.spo.com.bigdata.btree.BTree.branchingFactor=1024
+com.bigdata.namespace.{NAMESPACE}.spo.OSP.com.bigdata.btree.BTree.branchingFactor=64
+com.bigdata.namespace.{NAMESPACE}.spo.SPO.com.bigdata.btree.BTree.branchingFactor=600

-- 
To view, visit https://gerrit.wikimedia.org/r/373395
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ib6d2ad3740eee3f0524d3bcf387d7f180e59742b
Gerrit-PatchSet: 2
Gerrit-Project: wikidata/query/rdf
Gerrit-Branch: master
Gerrit-Owner: Smalyshev <smalys...@wikimedia.org>
Gerrit-Reviewer: Gehel <guillaume.leder...@wikimedia.org>
Gerrit-Reviewer: Smalyshev <smalys...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to