pyLodStorage 0.0.25__tar.gz → 0.0.26__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pylodstorage-0.0.25 → pylodstorage-0.0.26}/PKG-INFO +1 -1
- {pylodstorage-0.0.25 → pylodstorage-0.0.26}/lodstorage/sparql.py +4 -2
- {pylodstorage-0.0.25 → pylodstorage-0.0.26}/pylodstorage.egg-info/PKG-INFO +1 -1
- {pylodstorage-0.0.25 → pylodstorage-0.0.26}/setup.py +1 -1
- {pylodstorage-0.0.25 → pylodstorage-0.0.26}/README.md +0 -0
- {pylodstorage-0.0.25 → pylodstorage-0.0.26}/lodstorage/__init__.py +0 -0
- {pylodstorage-0.0.25 → pylodstorage-0.0.26}/lodstorage/jsonable.py +0 -0
- {pylodstorage-0.0.25 → pylodstorage-0.0.26}/lodstorage/lod.py +0 -0
- {pylodstorage-0.0.25 → pylodstorage-0.0.26}/lodstorage/mwTable.py +0 -0
- {pylodstorage-0.0.25 → pylodstorage-0.0.26}/lodstorage/query.py +0 -0
- {pylodstorage-0.0.25 → pylodstorage-0.0.26}/lodstorage/sample.py +0 -0
- {pylodstorage-0.0.25 → pylodstorage-0.0.26}/lodstorage/schema.py +0 -0
- {pylodstorage-0.0.25 → pylodstorage-0.0.26}/lodstorage/sql.py +0 -0
- {pylodstorage-0.0.25 → pylodstorage-0.0.26}/lodstorage/uml.py +0 -0
- {pylodstorage-0.0.25 → pylodstorage-0.0.26}/pylodstorage.egg-info/SOURCES.txt +0 -0
- {pylodstorage-0.0.25 → pylodstorage-0.0.26}/pylodstorage.egg-info/dependency_links.txt +0 -0
- {pylodstorage-0.0.25 → pylodstorage-0.0.26}/pylodstorage.egg-info/requires.txt +0 -0
- {pylodstorage-0.0.25 → pylodstorage-0.0.26}/pylodstorage.egg-info/top_level.txt +0 -0
- {pylodstorage-0.0.25 → pylodstorage-0.0.26}/setup.cfg +0 -0
|
@@ -270,18 +270,20 @@ class SPARQL(object):
|
|
|
270
270
|
jsonResult=queryResult.convert()
|
|
271
271
|
return self.getResults(jsonResult)
|
|
272
272
|
|
|
273
|
-
def queryAsListOfDicts(self,queryString):
|
|
273
|
+
def queryAsListOfDicts(self,queryString,fixNone:bool=False,sampleCount:int=None):
|
|
274
274
|
'''
|
|
275
275
|
get a list of dicts for the given query (to allow round-trip results for insertListOfDicts)
|
|
276
276
|
|
|
277
277
|
Args:
|
|
278
278
|
queryString(string): the SPARQL query to execute
|
|
279
|
+
fixNone(bool): if True add None values for empty columns in Dict
|
|
280
|
+
sampleCount(int): the number of samples to check
|
|
279
281
|
|
|
280
282
|
Returns:
|
|
281
283
|
list: a list ofDicts
|
|
282
284
|
'''
|
|
283
285
|
records=self.query(queryString)
|
|
284
|
-
listOfDicts=self.asListOfDicts(records)
|
|
286
|
+
listOfDicts=self.asListOfDicts(records,fixNone=fixNone,sampleCount=sampleCount)
|
|
285
287
|
return listOfDicts
|
|
286
288
|
|
|
287
289
|
@staticmethod
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|