Code Monkey home page Code Monkey logo

graphite's Introduction

Graphite is LGPL. 

Graphite is a friendly API for working with graph data (RDF).

Copyright 2010-2012 University of Southampton and Christopher Gutteridge.
Homepage: http://graphite.ecs.soton.ac.uk/
Github: https://github.com/cgutteridge/Graphite

Icons in prettyLink example by Yusuke Kamiyamane. All rights reserved. Licensed under a Creative Commons Attribution 3.0 License. http://p.yusukekamiyamane.com/

To use: (see examples for more)
    <?php

    require_once("path/to/arc/ARC2.php");
    require_once("Graphite.php");

    $graph = new Graphite();
    $graph->load( "http://id.ecs.soton.ac.uk/person/1248" );
    $me = $graph->resource( "http://id.ecs.soton.ac.uk/person/1248" );


    print "<h1>".$me->prettyLink()."</h1>";
    print "<p>default, built-in icons.</p>";
    print "<div>".$me->get( "foaf:mbox" )->prettyLink()."</div>";
    print "<div>".$me->get( "foaf:phone" )->prettyLink()."</div>";



    print "<h1>".$me->prettyLink()."</h1>";
    print '<p>The following icons by <a href="http://p.yusukekamiyamane.com/">Yusuke Kamiyamane</a>. All rights reserved. Licensed under a <a href="http://creativecommons.org/licenses/by/3.0/">Creative Commons Attribution 3.0 License</a>.</p>';
    $graph->mailtoIcon( "icons/mail.png" );
    $graph->telIcon( "icons/telephone-handset.png" );
    print "<div>".$me->get( "foaf:mbox" )->prettyLink()."</div>";
    print "<div>".$me->get( "foaf:phone" )->prettyLink()."</div>";

# Dev dependencies
$ pear config-set auto_discover 1
$ pear install pear.phpqatools.org/phpqatools pear.netpirates.net/phpDox
$ pear install PEAR_PackageFileManager_Cli

# To test:
$ ant phpunit

To build/prepare a release:
$ pfm
$ ant

graphite's People

Contributors

clockwerx avatar cgutteridge avatar tremby avatar olberger avatar graingert avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.