tobrien / ora-graph Goto Github PK
View Code? Open in Web Editor NEWArchive of old ora-graph example code
License: Apache License 2.0
Archive of old ora-graph example code
License: Apache License 2.0
O'Reilly Connection Grapher =============================== Feedback: [email protected] Requirements: Python 2.4 Firefox (or Mozilla or Deer Park) ClientCookie GraphViz Note: This script has been tested on both Windows and Linux. 1. This program relies on CookieClient to deal with Cookies and handle the meta-refresh tags involved in the login process. Download and install version 1.0.3 of CookieClient from the CookieClient project page listed below: http://wwwsearch.sourceforge.net/ClientCookie/ 1.5. Download and install Graphviz. http://www.graphviz.org/Download.php 2. IMPORTANT: This script needs to authenticate with the O'Reilly network. If you take a look at your cookie cache after logging into an O'Reilly network site you will see a number of cookies that all play a part in authentication and access control. So, instead of writing some nasty Python script to handle cookies, gendot uses ClientCookie to piggyback on the Mozilla cookies.txt --> You must change config.py to point to your own cookies.txt file --> AND, you must log in to the O'Reilly Connection site to put the apropriate cookies in your cookies.txt file. 3. Change config.py - If you go to the Connection site, and view your own FOAF document, you'll see that you have been assigned a Connection userId. Please change centralUserId and rootDudeNick to our id and your name. 4. In config.py, maxLevel is set to 2, increase this to 3 at your own peril, and only increase it beyond 3 if you have the express permission of O'Reilly. 5. Run the script like this: python gendot.py 6. Once the script runs, you'll have a file named "foaf.neato". To render this file simply run: neato -Tgif foaf.neato That's it. Here are some ideas: - Mess with the preamble and the epilouge in config.py. Read up on graphviz and learn about the many different graphs you can make. - Figure out how to authenticate to ORA network without that cookie nastiness. Me, I'd just prefer config.py hold a username and password and we just use simple BASIC auth. Tim O'Brien [email protected]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.