Skip to main content
Help us improve Python packaging – donate today!

HTTP SPARQL server and client for twisted and rdflib

Project Description

The classes are a mess. Here's how they should look:

def queryd(self, query, initBindings=None, format='python'):
def countQuery(self, query, initBindings={}):
def add(self, triples, ctx): # changed to a list, not *args
def contains(self, stmt):
def label(self, subj, default=''):
def value(self, subj, pred, default=None):
def subgraphLength(self, ctx):
def subgraphClear(self, ctx):
def dumpAllStatements(self):
def remove(self, triples, ctx): # changed to a list, not *args
def save(self, context): # for certain remote graphs

cache = None
cache = PredicateCache(timeout...) # expires according to the predicate
cache = SubjectCache() # invalidates everything about a subject whenever you write to it

target can be an in-process rdflib berkeleydb path too

graph = SyncGraph(protocol='sesame', target='http://...', cache)
graph = AsyncGraph(protocol='sesame', target='http://...', cache)

inside, each real method calls prep, request, and processResult
pieces, which are connected together differently in the case of the
deferred api.

request(method, rootUrl, path, queryparams, headers, payload)
# streaming support for restkit?

# cache api
class Cache(object):
def __init__(self):
#
def get(self, methodName, *args):
# return result or Miss
def set(self, result, methodName, *args):
# None

todo:
- remove 'remote' prefix everywhere?
- not makeConnection, but SyncGraph and DeferredGraph?

Release history Release notifications

This version
History Node

1.14

History Node

1.13

History Node

1.12

History Node

1.11

History Node

1.10

History Node

1.9

History Node

1.5

History Node

1.4

History Node

1.3

History Node

1.2

History Node

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
sparqlhttp-1.14.tar.gz (34.8 kB) Copy SHA256 hash SHA256 Source None Nov 11, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page