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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pylodstorage
3
- Version: 0.0.25
3
+ Version: 0.0.26
4
4
  Summary: python List of Dict (Table) Storage library
5
5
  Home-page: https://github.com/WolfgangFahl/pyLodStorage
6
6
  Author: Wolfgang Fahl
@@ -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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pylodstorage
3
- Version: 0.0.25
3
+ Version: 0.0.26
4
4
  Summary: python List of Dict (Table) Storage library
5
5
  Home-page: https://github.com/WolfgangFahl/pyLodStorage
6
6
  Author: Wolfgang Fahl
@@ -11,7 +11,7 @@ with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
11
11
 
12
12
  setup(
13
13
  name='pylodstorage',
14
- version='0.0.25',
14
+ version='0.0.26',
15
15
 
16
16
  packages=['lodstorage',],
17
17
  author='Wolfgang Fahl',
File without changes
File without changes