pyLodStorage 0.3.1__tar.gz → 0.3.2__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.2}/PKG-INFO +1 -1
- {pylodstorage-0.3.1 → pylodstorage-0.3.2}/lodstorage/trulytabular.py +10 -1
- {pylodstorage-0.3.1 → pylodstorage-0.3.2}/lodstorage/version.py +2 -2
- {pylodstorage-0.3.1 → pylodstorage-0.3.2/pylodstorage.egg-info}/PKG-INFO +1 -1
- {pylodstorage-0.3.1 → pylodstorage-0.3.2}/LICENSE +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.2}/README.md +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.2}/lodstorage/__init__.py +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.2}/lodstorage/csv.py +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.2}/lodstorage/entity.py +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.2}/lodstorage/jsonable.py +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.2}/lodstorage/jsonpicklemixin.py +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.2}/lodstorage/lod.py +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.2}/lodstorage/mwTable.py +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.2}/lodstorage/plot.py +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.2}/lodstorage/query.py +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.2}/lodstorage/querymain.py +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.2}/lodstorage/sample.py +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.2}/lodstorage/schema.py +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.2}/lodstorage/sparql.py +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.2}/lodstorage/sql.py +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.2}/lodstorage/storageconfig.py +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.2}/lodstorage/tabulateCounter.py +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.2}/lodstorage/uml.py +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.2}/lodstorage/xml.py +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.2}/lodstorage/yamlablemixin.py +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.2}/pylodstorage.egg-info/SOURCES.txt +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.2}/pylodstorage.egg-info/dependency_links.txt +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.2}/pylodstorage.egg-info/entry_points.txt +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.2}/pylodstorage.egg-info/requires.txt +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.2}/pylodstorage.egg-info/top_level.txt +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.2}/sampledata/__init__.py +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.2}/sampledata/endpoints.yaml +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.2}/sampledata/formats.yaml +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.2}/sampledata/queries.yaml +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.2}/sampledata/scholia.yaml +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.2}/sampledata/trulytabular.yaml +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.2}/sampledata/wf.yaml +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.2}/sampledata/wikidata.yaml +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.2}/setup.cfg +0 -0
- {pylodstorage-0.3.1 → pylodstorage-0.3.2}/setup.py +0 -0
|
@@ -443,11 +443,20 @@ WHERE {{
|
|
|
443
443
|
# optionally add Aggregate
|
|
444
444
|
if not naive:
|
|
445
445
|
sparqlQuery+=f"GROUP BY ?{item.varname} ?{item.varname}Label"
|
|
446
|
+
havingCount=0
|
|
447
|
+
havingDelim=" "
|
|
446
448
|
for wdProp in self.properties.values():
|
|
447
449
|
if wdProp.pid in genMap:
|
|
448
450
|
genList=genMap[wdProp.pid]
|
|
449
451
|
if "ignore" in genList:
|
|
450
|
-
|
|
452
|
+
havingCount+=1
|
|
453
|
+
if havingCount==1:
|
|
454
|
+
sparqlQuery+=f"\nHAVING ("
|
|
455
|
+
|
|
456
|
+
sparqlQuery+=f"\n {havingDelim}COUNT(?{wdProp.varname})=1"
|
|
457
|
+
havingDelim="&& "
|
|
458
|
+
if havingCount>0:
|
|
459
|
+
sparqlQuery+=f"\n)"
|
|
451
460
|
return sparqlQuery
|
|
452
461
|
|
|
453
462
|
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.2'
|
|
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
|