This file contains hidden or 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
sudo apt-get update | |
sudo apt-get install autoconf automake libtool flex bison gperf gawk m4 make OpenSSL libssl-dev | |
sudo apt-get install git wget curl libreadline-dev | |
git clone https://github.com/openlink/virtuoso-opensource.git | |
cd virtuoso-opensource | |
./autogen.sh | |
./configure --enable-silent-rules --enable-fct-vad --enable-rdb2rdf-vad --with-pthreads --with-readline | |
make -j3 | |
sudo make install |
This file contains hidden or 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
create procedure | |
DB.DBA.HP_AUTH_SQL_USER_AUTO (in realm varchar) | |
{ | |
declare _user varchar; | |
_user := realm; | |
connection_set ('SPARQLUserId', _user); | |
return 1; | |
} | |
; |
This file contains hidden or 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
TMPDIR=`mktemp -d` | |
cd $TMPDIR | |
wget https://github.com/ers-devs/sugar-mail/archive/master.zip | |
unzip master.zip | |
cd sugar-mail-master/src/ | |
python setup.py dist_xo | |
sugar-install-bundle dist/Messages-1.xo | |
rm -r $TMPDIR |
This file contains hidden or 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
C:\elaticsearch\service\ElasticSearch.exe //IS//ElasticSearch –DisplayName="ElasticSearch" –Description="Distributed RESTful Full-Text Search Engine based on Lucene (http://www.elasticsearch.org/)" –Install=C:\elasticsearch\service\ElasticSearch.exe –Classpath="C:\elasticsearch\lib\elasticsearch-0.90.3.jar;C:\elasticsearch\lib\*;C:\elasticsearch\lib\sigar\*" –Jvm="C:\Program Files\Java\jre7\bin\server\jvm.dll" –JvmMx=512 –JvmOptions="-Xms256m;-Xmx1g;-XX:+UseCompressedOops;-Xss128k;-XX:+UseParNewGC;-XX:+UseConcMarkSweepGC;-XX:+CMSParallelRemarkEnabled;-XX:SurvivorRatio=8;-XX:MaxTenuringThreshold=1;-XX:CMSInitiatingOccupancyFraction=75;-XX:+UseCMSInitiatingOccupancyOnly;-XX:+HeapDumpOnOutOfMemoryError;-Djline.enabled=false;-Delasticsearch;-Des-foreground=yes;-Des.path.home=C:elasticsearch" –StartMode=jvm –StartClass=org.elasticsearch.bootstrap.Bootstrap –StartMethod=main –StartParams="" –StopMode=jvm –StopClass=org.elasticsearch.bootstrap.Bootstrap –StopMethod=main –StdOutput=auto –StdError=auto –LogLevel=Debug |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
CONSTRUCT { | |
?s skos:altLabel ?l . | |
?s a skos:Concept . | |
?s skos:broader ?parent | |
} | |
WHERE { | |
?s a owl:Class; | |
rdfs:label ?l . | |
OPTIONAL {?s rdfs:subClassOf ?parent} . | |
} |
This file contains hidden or 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
import csv | |
import rdflib | |
g = rdflib.Graph() | |
label = rdflib.namespace.RDFS['label'] | |
d = csv.reader(open('belief.csv').readlines()) | |
# skip headers | |
d.next() |
This file contains hidden or 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
[Unit] | |
Description=Virtuoso Opensource | |
[Service] | |
User=virtuoso | |
Group=virtuoso | |
Type=forking | |
ExecStart=/opt/virtuoso7/bin/virtuoso-t +configfile /home/virtuoso/db/virtuoso.ini | |
[Install] |
This file contains hidden or 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
description "Virtuoso Opensource 7" | |
author "cmarat@github" | |
# When to start the service | |
start on runlevel [2345] | |
# When to stop the service | |
stop on runlevel [016] | |
# Automatically restart process if crashed |
OlderNewer