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?
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?
Metadata
Release files for sparqlhttp 1.14
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| sparqlhttp-1.14.tar.gz | 34.8 kB | Without provenance | Details |
Release files / sparqlhttp-1.14.tar.gz
| Download URL | sparqlhttp-1.14.tar.gz |
|---|---|
| Size | 34.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fca8cd89d9e0a708fcd9a2ebc8dad0110eddd8713d5e7f42d9eee69ca379cc25
|
|
BLAKE2b-256 checksum How to use checksums |
2306146cea19ad607fd4b1073d7813af97524171a81402878f943e524a926454
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for sparqlhttp 1.14
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.