-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
General chnages to make the code more portable
In particular central inc folder included in all php scripts via include.inc.php sym links Added more parameterization for BASH scripts --HG-- rename : 4store/scripts/sqs_help.txt => 4store/scripts/sqs_help.sh rename : 4store/README => README rename : http/inc/4storefunc.inc.php => inc/4storefunc.inc.php rename : rdfgen/inc/atomfunc.inc.php => inc/atomfunc.inc.php rename : http/inc/changeddata.inc.php => inc/changeddata.inc.php rename : rdfgen/inc/data.inc.php => inc/data.inc.php rename : rdfgen/inc/datatypes.inc.php => inc/datatypes.inc.php rename : rdfgen/inc/defaultsettings.inc.php => inc/defaultsettings.inc.php rename : http/inc/footer.inc.php => inc/footer.inc.php rename : rdfgen/inc/functions.inc.php => inc/functions.inc.php rename : rdfgen/inc/genrdf.inc.php => inc/genrdf.inc.php rename : http/inc/header.inc.php => inc/header.inc.php rename : rdfgen/inc/miscfunc.inc.php => inc/miscfunc.inc.php rename : http/inc/ontconnect.inc.php => inc/ontoconnect.inc.php rename : rdfgen/inc/orefunc.inc.php => inc/orefunc.inc.php rename : http/inc/owl_specqueries.inc.php => inc/owl_specqueries.inc.php rename : http/inc/rdfs_specqueries.inc.php => inc/rdfs_specqueries.inc.php rename : rdfgen/inc/snarmfunc.inc.php => inc/snarmfunc.inc.php rename : http/inc/sq_connect.inc.php => inc/sparqlconnect.inc.php rename : http/inc/specfooter.inc.php => inc/specfooter.inc.php rename : http/inc/specheader.inc.php => inc/specheader.inc.php rename : http/inc/specqueries.inc.php => inc/specqueries.inc.php rename : rdfgen/inc/sqlfunc.inc.php => inc/sqlfunc.inc.php rename : http/inc/xmlfunc.inc.php => inc/xmlfunc.inc.php rename : rdfgen/inc/datatypes.txt => rdfgen/datatypes.txt
- Loading branch information
1 parent
99e14fd
commit b81725f
Showing
69 changed files
with
443 additions
and
1,057 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,14 @@ | ||
#!/bin/bash | ||
cd /var/4store/log | ||
export settings.sh | ||
cd $STORE4_PATH/log | ||
touch database.log | ||
touch myexp_private_4store.log | ||
touch myexp_private_triples.log | ||
touch myexp_private_sparql.log | ||
touch myexp_private_update_time.log | ||
touch myexp_public_4store.log | ||
touch myexp_public_triples.log | ||
touch myexp_public_sparql.log | ||
touch myexp_public_update_time.log | ||
touch $TRIPLESTORE"_4store.log" | ||
touch $TRIPLESTORE"_triples.log" | ||
touch $TRIPLESTORE"_sparql.log" | ||
touch $TRIPLESTORE"_updatedlog" | ||
touch $TRIPLESTORE"_update_time.log" | ||
touch ontologies_4store.log | ||
touch ontologies_triples.log | ||
touch ontologies_sparql.log | ||
touch ontologies_updated.log | ||
touch ontologies_update_time.log | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,15 @@ | ||
#!/bin/bash | ||
JENALIB="/var/4store/lib"; | ||
JAVA_CP=".:$JENALIB/jena.jar:$JENALIB/iri.jar:$JENALIB/arq.jar:$JENALIB/xercesImpl.jar:$JENALIB/xml-apis.jar:$JENALIB/icu4j_3_4.jar:$JENALIB/json.jar:$JENALIB/concurrent.jar:$JENALIB/antlr-2.7.5.jar:$JENALIB/junit.jar:$JENALIB/log4j-1.2.12.jar:$JENALIB/wstx-asl-3.0.0.jar:$JENALIB/stax-api-1.0.jar:$JENALIB/mysql-connector-java-5.0.8-bin.jar:$JENALIB/commons-logging-1.1.1.jar:$JENALIB/commons-logging-1.1.1-javadoc.jar:$JENALIB/commons-logging-1.1.1-sources.jar:$JENALIB/commons-logging-adapters-1.1.1.jar:$JENALIB/commons-logging-api-1.1.1.jar:$JENALIB/commons-logging-tests.jar:$JENALIB/axis.jar:$JENALIB/bcpg-jdk15-139.jar:$JENALIB/bcprov-jdk15-139.jar:$JENALIB/commons-lang-2.0.jar:$JENALIB/grddl.jar:$JENALIB/hsqldb-1.8.0.7.jar:$JENALIB/jakarta-oro-2.0.5.jar:$JENALIB/nekohtml.jar:$JENALIB/ng4j.jar:$JENALIB/saxon8.jar:$JENALIB/tagsoup-1.0.4.jar:"; | ||
|
||
cd /var/4store/scripts | ||
source settings.sh | ||
cd $STORE4_PATH/scripts | ||
echo "============== `date` ==============" | ||
wget -O /var/data/ontologies/cachedspec/$3_$2_spec.html -q "http://rdf.myexperiment.org/generic/spec?ontology=$3&uncached=1" | ||
errors=`grep '<!-- Errors -->' /var/data/ontologies/cachedspec/$3_$2_spec.html` | ||
errors2=`grep 'XML error: Empty document at line ' /var/data/ontologies/cachedspec/$3_$2_spec.html` | ||
wget -O $DATA_PATH/ontologies/cachedspec/$3_$2_spec.html -q "$HTTPRDF_PATH/generic/spec?ontology=$3&uncached=1" | ||
errors=`grep '<!-- Errors -->' $DATA_PATH/ontologies/cachedspec/$3_$2_spec.html` | ||
errors2=`grep 'XML error: Empty document at line ' $DATA_PATH/ontologies/cachedspec/$3_$2_spec.html` | ||
if [ ${#errors} -gt 0 ]; then | ||
echo "[`date +%T`] Cached spec of $1 at /var/data/ontologies/cachedspec/$3_$2_spec.html <b>with Query Failures</b>"; | ||
echo "[`date +%T`] Cached spec of $1 at $DATA_PATH/ontologies/cachedspec/$3_$2_spec.html <b>with Query Failures</b>"; | ||
elif [ ${#errors2} -gt 0 ]; then | ||
echo "[`date +%T`] XML Error prevented $1 from being cached properly"; | ||
else | ||
echo "[`date +%T`] Cached spec of $1 at /var/data/ontologies/cachedspec/$3_$2_spec.html"; | ||
echo "[`date +%T`] Cached spec of $1 at $DATA_PATH/ontologies/cachedspec/$3_$2_spec.html"; | ||
fi | ||
echo "[`date +%T`] Finished"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
#!/bin/bash | ||
cd /var/jena/code/ | ||
/usr/bin/php ../scripts/getNewWorkflowVersions.php | awk 'BEGIN{FS=","}{ print " -O /var/data/dataflows/xml/" $1 " -q http://www.myexperiment.org/workflow.xml?id=" $2 "&version=" $3 "&elements=components" }' > /tmp/wgets.txt | ||
source settings.sh | ||
cd $STORE4_PATH/scripts | ||
/usr/bin/php getNewWorkflowVersions.php | awk -v datapath="$DATA_PATH" -v httpwwwpath="$HTTPWWW_PATH" 'BEGIN{FS=","}{ print " -O " datapath "/dataflows/xml/" $1 " -q " httpwwwpath "/workflow.xml?id=" $2 "&version=" $3 "&elements=components" }' > /tmp/wgets.txt | ||
exec</tmp/wgets.txt | ||
while read line | ||
do | ||
wget $line | ||
echo "[`date +%T`] Executed wget $line" | ||
#sleep 2 | ||
done | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../include.inc.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
#!/bin/bash | ||
cd /var/4store/code | ||
source settings.sh | ||
cd $STORE4_PATH/code | ||
LC_ALL=c | ||
JENALIB="/var/4store/lib"; | ||
JAVA_CP=".:$JENALIB/jena.jar:$JENALIB/iri.jar:$JENALIB/arq.jar:$JENALIB/xercesImpl.jar:$JENALIB/xml-apis.jar:$JENALIB/icu4j_3_4.jar:$JENALIB/json.jar:$JENALIB/concurrent.jar:$JENALIB/antlr-2.7.5.jar:$JENALIB/junit.jar:$JENALIB/log4j-1.2.12.jar:$JENALIB/wstx-asl-3.0.0.jar:$JENALIB/stax-api-1.0.jar:$JENALIB/mysql-connector-java-5.0.8-bin.jar:$JENALIB/commons-logging-1.1.1.jar:$JENALIB/commons-logging-1.1.1-javadoc.jar:$JENALIB/commons-logging-1.1.1-sources.jar:$JENALIB/commons-logging-adapters-1.1.1.jar:$JENALIB/commons-logging-api-1.1.1.jar:$JENALIB/commons-logging-tests.jar:$JENALIB/axis.jar:$JENALIB/bcpg-jdk15-139.jar:$JENALIB/bcprov-jdk15-139.jar:$JENALIB/commons-lang-2.0.jar:$JENALIB/grddl.jar:$JENALIB/hsqldb-1.8.0.7.jar:$JENALIB/jakarta-oro-2.0.5.jar:$JENALIB/nekohtml.jar:$JENALIB/ng4j.jar:$JENALIB/saxon8.jar:$JENALIB/tagsoup-1.0.4.jar:"; | ||
|
||
echo "[`date +%T`] Generating Dataflow RDF" | ||
/usr/bin/php ../scripts/generateDataflowRDF.php $1 | ||
$PHPEXEC_PATH/php $STORE4_PATH/scripts/generateDataflowRDF.php $1 | ||
if [ `cat /tmp/dataflows.txt | wc -l` -gt 0 ]; then | ||
echo "[`date +%T`] Reasoning Dataflow RDF" | ||
java -cp $JAVA_CP RDFSDataReasoner ../config/myexp_public_ontologies.txt /tmp/dataflows.txt /var/data/dataflows/reasoned/ | ||
java -cp $JAVA_CP RDFSDataReasoner $STORE4_PATH/config/myexp_public_ontologies.txt /tmp/dataflows.txt $DATA_PATH/dataflows/reasoned/ | ||
echo "[`date +%T`] Reasoned Dataflow RDF" | ||
else | ||
echo "[`date +%T`] No Dataflow RDF to reason" | ||
echo "[`date +%T`] No Dataflow RDF to reason" | ||
fi | ||
|
Oops, something went wrong.