This repository has been archived by the owner on Oct 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
44 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,43 @@ | ||
# sgvizler | ||
js | ||
# Sgvizler | ||
|
||
Sgvizler is a javascript wrapper for easy visualisation of SPARQL result sets. | ||
|
||
See http://mgskjaeveland.github.io/sgvizler/ for how to set up, use, and extend Sgvizler, including documentation, downloads, and examples. | ||
|
||
Add visualisations directly into your webpages like this: | ||
```html | ||
<div id="example" | ||
data-sgvizler-endpoint="http://sws.ifi.uio.no/sparql/npd" | ||
data-sgvizler-query="SELECT ?class (count(?instance) AS ?noOfInstances) | ||
WHERE{ ?instance a ?class } | ||
GROUP BY ?class | ||
ORDER BY ?class" | ||
data-sgvizler-chart="google.visualization.PieChart" | ||
style="width:800px; height:400px;"></div> | ||
``` | ||
to get charts like this: | ||
 | ||
|
||
## Installing Sgvizler : | ||
|
||
1. Install nodejs and necessary packages : | ||
|
||
i) Nodejs : "sudo apt install nodejs-legacy" | ||
(for Ubuntu 16.04 this installed version is not up to date, to get the last version : https://askubuntu.com/questions/786272/why-does-installing-node-6-x-on-ubuntu-16-04-actually-install-node-4-2-6) | ||
|
||
ii) "npm install -g npm" | ||
|
||
iii) Yuidocjs : "npm -g install yuidocjs." | ||
|
||
iv) "npm install uglify-js -g" | ||
|
||
2. "Compile" with makefile : | ||
|
||
i) Type : "yuidoc." at the source of the tree. | ||
This will generate a ./out directory | ||
|
||
ii) Being in ./sgvizler, type "make sgvizler.js" | ||
This will create all necessary files thanks to Makefile | ||
|
||
iii) Finally, type "uglifyjs sgvizler.js -o sgvizler.min.js" | ||
To get the minifier version of sgvizler.js |
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