HtmlToText
graphite powered stuff what is graphite? installation examples hello world namespaces inspecting a resource working with lists linked data documentation graphite graph resource resource list resource description contact known bugs changelog introducing graphite ©2010-2012 by christopher gutteridge , university of southampton. latest version is 1.5 (2012-03-11) graphite is free, open source software and has been developed to make working with rdf easier and more fun. graphite is a php library, built on top of arc2, to make it easy to do stuff with rdf data really quickly, without having to naff around with databases. it is not intended to be scalable, or a way of authoring rdf data. there's plenty of stuff out there already to do that. the new " resource description " feature makes it an excellent way to provide a website on top of data in a sparql endpoint. new to linked data & rdf? i've written an introduction to rdf and linked data . it doesn't cover everything, but should be enough to get you started. it is very similar to easyrdf and simplegraph , and i've lifted ideas from these, and they have features that graphite doesn't. use what works for you. -- handy linked data tools rdf browser triple-checker - check rdf documents for common mistakes sparql browser geo2kml - convert geo: namespace rdf to kml rdf2json - convert rdf (xml, n3, rdfa etc) into json sparql2kml - perform a sparql query and return the results as kml sites using graphite university of southampton open data service lotico.com board game player mail me to add your site here! sparqllib.php also hosted on this site is sparqllib.php , a simple php library for querying sparql. hello world here's the minimal example to get started with. please note, by the way, that the "output" section of all these examples is being generated on-the-fly from the php. code <?php include_once ( "arc/arc2.php" ) ; include_once ( "graphite/graphite.php" ) ; $graph = new graphite ( ) ; $graph -> load ( "http://id.southampton.ac.uk/" ) ; print $graph -> resource ( "http://id.southampton.ac.uk/" ) -> get ( "foaf:name" ) ; ?> output university of southampton installation really quick install type this while in the directory you want to write php scripts in: curl -s http://graphite.ecs.soton.ac.uk/download.php/graphite_and_arc2.tgz | tar xzvf - the version of arc which comes with the above already has my patch applied and is distributed with permission of the author. (although it's gpl so asking was just me being polite) longer install you'll need to install arc2 then download the single graphite.php library and put it in the same directory as /arc/ patch to arc2 (optional) the arc2 loader does not follow relative redirects, which many servers use in their 303 headers. it also confuses some sites by including the port in the http "host:" header. i've made a slightly patched version of the arc2_reader.php library which works around this. i suggest you use it if you want to use the "sameas" graphite method to it's full potential. my added/altered lines are marked with #cjg update policy this library is updated (for now) when i have time or inspiration. if you're using it, let me know (email at bottom of page). github this library is developed on github. the latest development version is at https://github.com/cgutteridge/graphite arc2 dependency currently graphite uses the arc2 library to decode and encode rdf documents. some concerns have been expressed to me that arc2 is no longer actively maintained. this is not a big concern as it would only be a couple of hours work to make graphite work with an alternate rdf library. eg. rap . namespaces by default, graphite defines a bunch of common namespaces: foaf, dc, dct, rdf, rdfs, owl, xsd, cc, bibo, skos, geo, sioc. but you can add your own to make your code more readable. code <?php include_once ( "arc/arc2.php" ) ; include_once ( "graphite/graphite.php" ) ; $graph = new graphite ( ) ; $graph -> ns ( "uosbuilding" , "http://id.southampton.ac.uk/building/" ) ; $graph -> load ( "uosbuilding:32" ) ; print $graph -> resource ( "uosbuilding:32" ) -> label ( ) ; ?> output eee building you may notice that this would get confused if you made namespaces like "urn" or "http". you're right, don't do it. i considered making a distinction between full uris and those shortened with an alias, and decided that the point of the library was speed of hacking not semantic perfection. tip: to look up the common prefix for a namespace, use http://prefix.cc/ inspecting a resource to see all the incoming and outgoing relations from a uri, use the debug method. the left arrows indicate incoming relations. you can also dump the graphite object to see everything. code <?php include_once ( "arc/arc2.php" ) ; include_once ( "graphite/graphite.php" ) ; $graph = new graphite ( ) ; $uri = "http://data.ordnancesurvey.co.uk/id/postcodeunit/so171bj" ; $graph -> load ( $uri ) ; print $graph -> resource ( $uri ) -> dump ( ) ; ?> output http://data.ordnancesurvey.co.uk/id/postcodeunit/so171bj → rdf:type → http://data.ordnancesurvey.co.uk/ontology/postcode/postcodeunit → http://data.ordnancesurvey.co.uk/ontology/spatialrelations/within → http://data.ordnancesurvey.co.uk/id/postcodearea/so , http://data.ordnancesurvey.co.uk/id/postcodesector/so171 , http://data.ordnancesurvey.co.uk/id/postcodedistrict/so17 → http://data.ordnancesurvey.co.uk/ontology/postcode/lh → "e18000009" → http://data.ordnancesurvey.co.uk/ontology/spatialrelations/northing → "115135.00"^^xsd:decimal → http://data.ordnancesurvey.co.uk/ontology/postcode/nhsregionalha → http://statistics.data.gov.uk/id/statistical-geography/e19000002 → http://data.ordnancesurvey.co.uk/ontology/postcode/positionalqualityindicator → http://data.ordnancesurvey.co.uk/ontology/postcode/pqi/10 → geo:long → "-1.395714"^^xsd:decimal → geo:lat → "50.934099"^^xsd:decimal → skos:notation → "so17 1bj"^^http://data.ordnancesurvey.co.uk/ontology/postcode/postcode → http://data.ordnancesurvey.co.uk/ontology/postcode/rh → "e19000002" → http://data.ordnancesurvey.co.uk/ontology/postcode/ward → http://data.ordnancesurvey.co.uk/id/7000000000017711 → http://data.ordnancesurvey.co.uk/ontology/postcode/country → http://data.ordnancesurvey.co.uk/id/country/england → http://data.ordnancesurvey.co.uk/ontology/spatialrelations/easting → "442560.00"^^xsd:decimal → http://data.ordnancesurvey.co.uk/ontology/postcode/nhsha → http://statistics.data.gov.uk/id/statistical-geography/e18000009 → http://data.ordnancesurvey.co.uk/ontology/postcode/pq → "10" → http://data.ordnancesurvey.co.uk/ontology/postcode/district → http://data.ordnancesurvey.co.uk/id/7000000000037256 → rdfs:label → "so17 1bj" ← is foaf:primarytopic of ← http://data.ordnancesurvey.co.uk/doc/postcodeunit/so171bj working with lists the all() method returns an array of matching values. using a "-" uses the inverse of the relationship so "-foo:child" would match the things which this was a child of rather than the things that were a child of it. code <?php include_once ( "arc/arc2.php" ) ; include_once ( "graphite/graphite.php" ) ; $graph = new graphite ( ) ; $graph -> ns ( "org" , "http://www.w3.org/ns/org#" ) ; $uri = "http://id.southampton.ac.uk/org/f2" ; $graph -> load ( $uri ) ; print $graph -> resource ( $uri ) -> all ( "org:hassuborganization" ) -> sort ( "rdfs:label" ) -> getstring ( "rdfs:label" ) -> join ( ", " ) . ". \n " ; output . linked data to follow a link to another datasource is really easy, thanks to the arc2 library papering over many of the cracks! however, see my note in installation for a tiny patch to arc2 to make it follow non-absolute redirects. code <?php include_once ( "arc/arc2.php" ) ; include_once ( "graphite/graphite.php" ) ; $person_uri = "http://eprints.ecs.soton.ac.uk/id/person/ext-1248" ; $graph = new graphite ( ) ; # this must be a directory the webserver can write to. $graph -> cachedir ( "/home/graphit
Informations Whois
Whois est un protocole qui permet d'accéder aux informations d'enregistrement.Vous pouvez atteindre quand le site Web a été enregistré, quand il va expirer, quelles sont les coordonnées du site avec les informations suivantes. En un mot, il comprend ces informations;
No such domain ac.uk
REFERRER http://www.nominet.org.uk
REGISTRAR Nominet UK
SERVERS
SERVER ac.uk.whois-servers.net
ARGS ac.uk
PORT 43
TYPE domain
RegrInfo
REGISTERED no
DOMAIN
NAME ac.uk
NSERVER
WS-FRA1.WIN-IP.DFN.DE 193.174.75.178
AUTH03.NS.UU.NET 198.6.1.83
NS0.JA.NET 193.63.94.20
NS4.JA.NET 193.62.157.66
NS1.SURFNET.NL 192.87.106.101
NS3.JA.NET 193.63.106.103
NS2.JA.NET 193.63.105.17
Go to top