Skip to content
interactive, customizable semantic web visualization
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
css
data
docs Merge branch 'master' into alpha Aug 30, 2018
images
js make Nameless track removals properly; optional edge labelling and ad… Dec 9, 2018
lib shrink geonames-provided error msg Dec 10, 2018
src
test
vendor
views
.coffeelint add coffeelint file Dec 20, 2013
.gitignore
Cakefile
Gruntfile.coffee
Makefile add amalgamate_xml.py which works but needs structural IDs in the data May 18, 2018
OrlandoXML.py
README.md fix typos in demo links Sep 30, 2018
_config.yml
crrt.html
extractOrlandoTagInfo.py
graph_ex1.png new screenshot Feb 10, 2015
issue_template.md upload issue template Jun 14, 2018
make_app.coffee
old_huvis.html rename the node version to huvis.html, move node to port 9999 Dec 17, 2013
orlando2RDFregex3.txt initial add Oct 8, 2013
orlando2RDFregex4.txt WIP: peeking support ie highlighting and showing individual edges Aug 21, 2014
orlando2RDFxpath3.txt
orlandoScrape.py suppress 'skipping' spew Jun 11, 2016
orlando_short.xml initial add Oct 8, 2013
orlando_tag_admin.csv
orlando_tag_admin.md
orlando_tag_tree.json
orlando_tag_tree_PRETTY.json
orlando_timeline.js changed dateOfdeath to dateOfDeath Oct 16, 2013
orlando_timeline.json
package.json
predicate_sets.json
requirements.txt
schema.sql
server.coffee
server.js
sparqlTesting.py add shebang and make sparqlTesting.py executable Nov 3, 2014
tagtree.py
timeline.html
turtle_test.html trivial Nov 4, 2013
yegodd.html WIP: YEG LOD: adding socrata meta-metadata format as seen at https://… Feb 23, 2014

README.md

huviz

Image

Demonstration Sites

Installation

# Install huviz from github
git clone https://github.com/smurp/huviz.git

Installation (for running orlandoScrape.py)

# On OSX Mavericks install homebrew
http://crosstown.coolestguidesontheplanet.com/os-x/55


# If you want to run
# On OSX you should set up pyenv-virtualenv
https://github.com/yyuu/pyenv-virtualenv

# Make a virtualenv
pyenv virtualenv huvizenv

# use it
echo "PYENV_VERSION=huvizenv" > .python-version

# install the python requirements
pip install -r requirements.txt

Installation (for running the server)

# install NodeJS using NVM for most flexibility
# known to work on NodeJS >= v6.11.3
# (as of this writing, the latest Long Term Support version)

https://github.com/creationix/nvm#install-script

# Install `nvm` using the curl command in 'Install Script'.
# Then quit that Terminal window and start a new one to make sure its firing up automatically.
# There are tips at the bottom of the NVM README in case of problems.

# Then install the LTS version of `node` itself like this:
nvm install --lts

# Make sure you've got a suitable version of Node
node -v # expecting v6.11.3 or later

# Then do classic normal npm stuff
npm install # install needed modules

Running the server during development

npm run dev

Runner CLI tests during development

npm run watchTest

uses https://www.npmjs.com/package/npm-watch https://www.npmjs.com/package/mocha

Running the server

npm start

Operating orlandoScrape.py

--limit 2
    limit the number of writers processed

Converting XML to Turtle (TTL)

./orlandoScrape.py --outfile data/test_20.ttl  --limit 20 -v

See data/test_20.ttl

Converting XML to NQuads

./orlandoScrape.py  --outfile data/test_1.nq   --limit 1

See data/test_q.nq

Converting XML to JSON

How to produce the full JSON output as orlando_all_entries_2013-03-04.json (the default behaviour):

./orlandoScrape.py --infile orlando_all_entries_2013-03-04.xml --outfile orlando_all_entries_2013-03-04.json  --regexes orlando2RDFregex4.txt

How to produce the poetess JSON output as orlando_poetesses_2013-02-12.json:

./orlandoScrape.py --infile orlando_poetesses_2013-02-12.xml --outfile orlando_poetesses_2013-02-12.json  --regexes orlando2RDFregex4.txt

How to produce orlando_timeline.json

egrep 'dateOf|standardName' orlando2RDFregex4.txt > orlando_timeline.regex
./orlandoScrape.py --infile orlando_all_entries_2013-03-04.xml --outfile orlando_timeline.json --regex orlando_timeline.regex -v

Running the Orlando timeline locally

git clone https://github.com/smurp/huviz
python -m SimpleHTTPServer
open http://localhost:8000/timeline.html

Generating tag_tree.json

./extractOrlandoTagInfo.py --compact --outfile orlando_tag_tree.json
You can’t perform that action at this time.