-
Notifications
You must be signed in to change notification settings - Fork 7
Prototype deployment details
This page covers the details for how to set up the FAqT Brick at http://sparql.tw.rpi.edu/datafaqs/dump (and http://sparql.tw.rpi.edu:3030/datafaqs/query) and the FAqT Brick Explorer at http://aquarius.tw.rpi.edu/datafaqs. It can be used as a template for setting up other FAqT Bricks and explorers. This DOES NOT cover how to deploy FAqT Services; it assumes that it has already been done.
Get some fundamentals:
Get the DataFAQs utilities:
cd /optsudo git clone git://github.com/timrdf/DataFAQs.git
Get some dependencies:
csv2rdf4lod-automation is needed for a couple of RDF-handling utilities.
cd /optsudo git clone git://github.com/timrdf/csv2rdf4lod-automation.git./install.sh
tdb is needed to create a triple store of the RDF files accumulated in the FAqT Brick
sudo mkdir /opt/tdbcd /opt/tdbcurl -L http://sourceforge.net/projects/jena/files/TDB/TDB-0.8.10/tdb-0.8.10.zip/download > tdb-0.8.10.zipgunzip
fuseki is needed to expose the tdb triple store as a SPARQL endpoint
sudo mkdir /opt/fusekicd /opt/fusekiwget http://openjena.org/repo/org/openjena/fuseki/0.2.0/fuseki-0.2.0.zipgunzip
virtuoso can also be used in addition to -- or in place of -- fuseki.
- Follow http://tw.rpi.edu/web/inside/endpoints/installing-virtuoso
- Add your faqt-brick directory (e.g.
/srv/DataFAQs/default/faqt-brick/) to your virtuoso.ini'sDirsAllowed(so we can avoid a file copy when loading) - TODO describe after we've migrated to datafaqs.aquarius.tw
rapper is needed to retrieve and reserialize RDF (and count triples)
- see "rapper" here
Set up a FAqT Brick:
sudo mkdir /srv/DataFAQs-
sudo chown youruser:yourgroup /srv/DataFAQs(with your user name and group, so you don't have to be root to run an epoch) mkdir -p /srv/DataFAQs/default/faqt-brick
Set the following [environment variables](DATAFAQS environment variables) in /srv/DataFAQs/default/faqt-brick/datafaqs-source-me.sh (or, link/copy the default):
export DATAFAQS_HOME="/opt/DataFAQs"
export DATAFAQS_BASE_URI="http://sparql.tw.rpi.edu"
export DATAFAQS_PUBLISH_TDB="true"
export DATAFAQS_PUBLISH_TDB_DIR="/srv/DataFAQs/default/faqt-brick/tdb"
export DATAFAQS_PUBLISH_THROUGHOUT_EPOCH="true"
export DATAFAQS_PUBLISH_METADATA_GRAPH_NAME="http://www.w3.org/ns/sparql-service-description#NamedGraph"
export CSV2RDF4LOD_HOME="/opt/csv2rdf4lod-automation"
export TDBROOT="/opt/tdb/TDB-0.8.10/"
export PATH=$PATH`/opt/DataFAQs/bin/df-situate-paths.sh`
Create an epoch (see FAqT Brick):
cd /srv/DataFAQs/default/faqt-brickln -s /opt/DataFAQs/doc/examples/default/faqt-brick/epoch.ttl/opt/DataFAQs/bin/df-epoch.sh
(If you hit: "/opt/DataFAQs/bin/df-load-triple-store.sh: line 97: /var/log/datafaqs//df-load-triple-store.sh/log.txt: Permission denied", sudo mkdir -p /var/log/datafaqs//df-load-triple-store.sh)
Link the FAqT Brick to the web:
sudo ln -s /srv/DataFAQs/default/faqt-brick /var/www/datafaqs/dump- Browse around http://sparql.tw.rpi.edu/datafaqs/dump/__PIVOT_epoch
If you want to start fresh and rerun an epoch:
rm -rf __PIVOT_epoch/<today's date>; df-purge-orphaned-epochs.sh -w
If tdb didn't load during epoch creation, load the triple store:
-
df-load-triple-store.sh --recursive-by-sd-name(loads the named graphs) -
df-load-triple-store.sh --graph http://www.w3.org/ns/sparql-service-description#NamedGraph --recursive-meta(loads the metadata)
Turn on the SPARQL endpoint:
cd /opt/fuseki/Fuseki-0.2.0./fuseki-server --loc=/srv/DataFAQs/default/faqt-brick/tdb /datafaqs- Check that http://sparql.tw.rpi.edu:3030/datafaqs/query says "Error 404: Service Description"
- See what graphs are in the endpoint as xml or json
Deploy lodspeakr:
(aquarius.tw)
mkdir /var/www/datafaqscd /var/www/datafaqs-
bash < <(curl -Ls http://purl.org/twc/datafaqs-lodspeakr/install)- Answer 1/3:
http://aquarius.tw.rpi.edu/datafaqs/ - Answer 2/3: (hit enter for default)
- Answer 3/3:
http://sparql.tw.rpi.edu:3030/datafaqs/query
- Answer 1/3:
- http://aquarius.tw.rpi.edu/datafaqs
- If you run into any errors, see Errors for how to fix them.
- FAqT Brick to walk through the creation of an evaluation epoch.
- DATAFAQS environment variables needed when a FAqT Brick evaluation epoch is created.