sparqlhttp

HTTP SPARQL server and client for twisted and rdflib
Download

sparqlhttp Ranking & Summary

Advertisement

  • Rating:
  • License:
  • LGPL
  • Price:
  • FREE
  • Publisher Name:
  • Drew Perttula
  • Publisher web site:
  • http://bigasterisk.com/

sparqlhttp Tags


sparqlhttp Description

HTTP SPARQL server and client for twisted and rdflib sparqlhttp is a Python library for programs that use twisted for networking, use rdflib for RDF, and want to do sparql over http. It contains a client and a server, but you should be able to mix and match with other sparql clients and servers.Classes- RemoteGraph twisted web client that talks to SPARQLResource (or other sparql-over-http servers)HTTP- SPARQLResource twisted web resource that supports various GET/POST commands- Graph2 slightly different API for the rdflib graph classConjunctiveGraph (from rdflib)There is also a LocalGraph class, which presents exactly the same API as RemoteGraph, but it talks to an in-process rdflib graph. This is convenient for testing your async RemoteGraph code without bothering to setup the http connection.# this code will work whether graph is a RemoteGraph or a LocalGraph def method(self): d = graph.remoteLabel(subj) d.addCallback(self.withLabel) def withLabel(self, label): print label Requirements: · Python


sparqlhttp Related Software