pyLodStorage 0.3.1__tar.gz → 0.3.3__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.3.1/pylodstorage.egg-info → pylodstorage-0.3.3}/PKG-INFO +1 -1
- {pylodstorage-0.3.1 → pylodstorage-0.3.3}/lodstorage/trulytabular.py +19 -2
- {pylodstorage-0.3.1 → pylodstorage-0.3.3}/lodstorage/version.py +2 -2
- {pylodstorage-0.3.1 → pylodstorage-0.3.3/pylodstorage.egg-info}/PKG-INFO +1 -1
- {pylodstorage-0.3.1 → pylodstorage-0.3.3}/LICENSE +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.3}/README.md +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.3}/lodstorage/__init__.py +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.3}/lodstorage/csv.py +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.3}/lodstorage/entity.py +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.3}/lodstorage/jsonable.py +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.3}/lodstorage/jsonpicklemixin.py +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.3}/lodstorage/lod.py +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.3}/lodstorage/mwTable.py +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.3}/lodstorage/plot.py +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.3}/lodstorage/query.py +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.3}/lodstorage/querymain.py +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.3}/lodstorage/sample.py +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.3}/lodstorage/schema.py +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.3}/lodstorage/sparql.py +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.3}/lodstorage/sql.py +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.3}/lodstorage/storageconfig.py +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.3}/lodstorage/tabulateCounter.py +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.3}/lodstorage/uml.py +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.3}/lodstorage/xml.py +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.3}/lodstorage/yamlablemixin.py +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.3}/pylodstorage.egg-info/SOURCES.txt +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.3}/pylodstorage.egg-info/dependency_links.txt +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.3}/pylodstorage.egg-info/entry_points.txt +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.3}/pylodstorage.egg-info/requires.txt +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.3}/pylodstorage.egg-info/top_level.txt +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.3}/sampledata/__init__.py +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.3}/sampledata/endpoints.yaml +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.3}/sampledata/formats.yaml +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.3}/sampledata/queries.yaml +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.3}/sampledata/scholia.yaml +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.3}/sampledata/trulytabular.yaml +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.3}/sampledata/wf.yaml +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.3}/sampledata/wikidata.yaml +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.3}/setup.cfg +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.3}/setup.py +0 -0
|
@@ -442,12 +442,29 @@ WHERE {{
|
|
|
442
442
|
sparqlQuery+="""}\n"""
|
|
443
443
|
# optionally add Aggregate
|
|
444
444
|
if not naive:
|
|
445
|
-
sparqlQuery+=f"GROUP BY
|
|
445
|
+
sparqlQuery+=f"""GROUP BY
|
|
446
|
+
?{item.varname}
|
|
447
|
+
?{item.varname}Label
|
|
448
|
+
"""
|
|
449
|
+
for wdProp in self.properties.values():
|
|
450
|
+
if wdProp.pid in genMap:
|
|
451
|
+
genList=genMap[wdProp.pid]
|
|
452
|
+
if "label" in genList:
|
|
453
|
+
sparqlQuery+=f"\n ?{wdProp.varname}Label"
|
|
454
|
+
havingCount=0
|
|
455
|
+
havingDelim=" "
|
|
446
456
|
for wdProp in self.properties.values():
|
|
447
457
|
if wdProp.pid in genMap:
|
|
448
458
|
genList=genMap[wdProp.pid]
|
|
449
459
|
if "ignore" in genList:
|
|
450
|
-
|
|
460
|
+
havingCount+=1
|
|
461
|
+
if havingCount==1:
|
|
462
|
+
sparqlQuery+=f"\nHAVING ("
|
|
463
|
+
|
|
464
|
+
sparqlQuery+=f"\n {havingDelim}COUNT(?{wdProp.varname})<=1"
|
|
465
|
+
havingDelim="&& "
|
|
466
|
+
if havingCount>0:
|
|
467
|
+
sparqlQuery+=f"\n)"
|
|
451
468
|
return sparqlQuery
|
|
452
469
|
|
|
453
470
|
def mostFrequentPropertiesQuery(self,whereClause:str=None):
|
|
@@ -9,7 +9,7 @@ class Version(object):
|
|
|
9
9
|
Version handling for pyLoDStorage
|
|
10
10
|
'''
|
|
11
11
|
name="pylodstorage"
|
|
12
|
-
version='0.3.
|
|
12
|
+
version='0.3.3'
|
|
13
13
|
date = '2020-09-10'
|
|
14
|
-
updated = '2022-07-
|
|
14
|
+
updated = '2022-07-30'
|
|
15
15
|
description='python List of Dict (Table) Storage library'
|
|
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
|
|
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
|