pyLodStorage 0.0.40__tar.gz → 0.0.41__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.40 → pylodstorage-0.0.41}/PKG-INFO +1 -1
- {pylodstorage-0.0.40 → pylodstorage-0.0.41}/lodstorage/lod.py +12 -0
- {pylodstorage-0.0.40 → pylodstorage-0.0.41}/pylodstorage.egg-info/PKG-INFO +1 -1
- {pylodstorage-0.0.40 → pylodstorage-0.0.41}/setup.py +1 -1
- {pylodstorage-0.0.40 → pylodstorage-0.0.41}/LICENSE +0 -0
- {pylodstorage-0.0.40 → pylodstorage-0.0.41}/README.md +0 -0
- {pylodstorage-0.0.40 → pylodstorage-0.0.41}/lodstorage/__init__.py +0 -0
- {pylodstorage-0.0.40 → pylodstorage-0.0.41}/lodstorage/csv.py +0 -0
- {pylodstorage-0.0.40 → pylodstorage-0.0.41}/lodstorage/jsonable.py +0 -0
- {pylodstorage-0.0.40 → pylodstorage-0.0.41}/lodstorage/mwTable.py +0 -0
- {pylodstorage-0.0.40 → pylodstorage-0.0.41}/lodstorage/plot.py +0 -0
- {pylodstorage-0.0.40 → pylodstorage-0.0.41}/lodstorage/query.py +0 -0
- {pylodstorage-0.0.40 → pylodstorage-0.0.41}/lodstorage/sample.py +0 -0
- {pylodstorage-0.0.40 → pylodstorage-0.0.41}/lodstorage/schema.py +0 -0
- {pylodstorage-0.0.40 → pylodstorage-0.0.41}/lodstorage/sparql.py +0 -0
- {pylodstorage-0.0.40 → pylodstorage-0.0.41}/lodstorage/sql.py +0 -0
- {pylodstorage-0.0.40 → pylodstorage-0.0.41}/lodstorage/tabulateCounter.py +0 -0
- {pylodstorage-0.0.40 → pylodstorage-0.0.41}/lodstorage/uml.py +0 -0
- {pylodstorage-0.0.40 → pylodstorage-0.0.41}/pylodstorage.egg-info/SOURCES.txt +0 -0
- {pylodstorage-0.0.40 → pylodstorage-0.0.41}/pylodstorage.egg-info/dependency_links.txt +0 -0
- {pylodstorage-0.0.40 → pylodstorage-0.0.41}/pylodstorage.egg-info/requires.txt +0 -0
- {pylodstorage-0.0.40 → pylodstorage-0.0.41}/pylodstorage.egg-info/top_level.txt +0 -0
- {pylodstorage-0.0.40 → pylodstorage-0.0.41}/setup.cfg +0 -0
|
@@ -94,12 +94,24 @@ class LOD(object):
|
|
|
94
94
|
|
|
95
95
|
@staticmethod
|
|
96
96
|
def addLookup(lookup,duplicates,record,value,withDuplicates:bool):
|
|
97
|
+
'''
|
|
98
|
+
add a single lookup result
|
|
99
|
+
|
|
100
|
+
Args:
|
|
101
|
+
lookup(dict): the lookup map
|
|
102
|
+
duplicates(list): the list of duplicates
|
|
103
|
+
record(dict): the current record
|
|
104
|
+
value(object): the current value to lookup
|
|
105
|
+
withDuplicates(bool): if True duplicates should be allowed and lists returned if False a separate duplicates
|
|
106
|
+
list is created
|
|
107
|
+
'''
|
|
97
108
|
if value in lookup:
|
|
98
109
|
if withDuplicates:
|
|
99
110
|
lookupResult=lookup[value]
|
|
100
111
|
lookupResult.append(record)
|
|
101
112
|
else:
|
|
102
113
|
duplicates.append(record)
|
|
114
|
+
return
|
|
103
115
|
else:
|
|
104
116
|
if withDuplicates:
|
|
105
117
|
lookupResult=[record]
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|