pyLodStorage 0.3.5__tar.gz → 0.3.6__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.5/pylodstorage.egg-info → pylodstorage-0.3.6}/PKG-INFO +1 -1
- {pylodstorage-0.3.5 → pylodstorage-0.3.6}/lodstorage/trulytabular.py +5 -2
- {pylodstorage-0.3.5 → pylodstorage-0.3.6}/lodstorage/version.py +2 -2
- {pylodstorage-0.3.5 → pylodstorage-0.3.6/pylodstorage.egg-info}/PKG-INFO +1 -1
- {pylodstorage-0.3.5 → pylodstorage-0.3.6}/LICENSE +0 -0
- {pylodstorage-0.3.5 → pylodstorage-0.3.6}/README.md +0 -0
- {pylodstorage-0.3.5 → pylodstorage-0.3.6}/lodstorage/__init__.py +0 -0
- {pylodstorage-0.3.5 → pylodstorage-0.3.6}/lodstorage/csv.py +0 -0
- {pylodstorage-0.3.5 → pylodstorage-0.3.6}/lodstorage/entity.py +0 -0
- {pylodstorage-0.3.5 → pylodstorage-0.3.6}/lodstorage/jsonable.py +0 -0
- {pylodstorage-0.3.5 → pylodstorage-0.3.6}/lodstorage/jsonpicklemixin.py +0 -0
- {pylodstorage-0.3.5 → pylodstorage-0.3.6}/lodstorage/lod.py +0 -0
- {pylodstorage-0.3.5 → pylodstorage-0.3.6}/lodstorage/mwTable.py +0 -0
- {pylodstorage-0.3.5 → pylodstorage-0.3.6}/lodstorage/plot.py +0 -0
- {pylodstorage-0.3.5 → pylodstorage-0.3.6}/lodstorage/query.py +0 -0
- {pylodstorage-0.3.5 → pylodstorage-0.3.6}/lodstorage/querymain.py +0 -0
- {pylodstorage-0.3.5 → pylodstorage-0.3.6}/lodstorage/sample.py +0 -0
- {pylodstorage-0.3.5 → pylodstorage-0.3.6}/lodstorage/schema.py +0 -0
- {pylodstorage-0.3.5 → pylodstorage-0.3.6}/lodstorage/sparql.py +0 -0
- {pylodstorage-0.3.5 → pylodstorage-0.3.6}/lodstorage/sql.py +0 -0
- {pylodstorage-0.3.5 → pylodstorage-0.3.6}/lodstorage/storageconfig.py +0 -0
- {pylodstorage-0.3.5 → pylodstorage-0.3.6}/lodstorage/tabulateCounter.py +0 -0
- {pylodstorage-0.3.5 → pylodstorage-0.3.6}/lodstorage/uml.py +0 -0
- {pylodstorage-0.3.5 → pylodstorage-0.3.6}/lodstorage/xml.py +0 -0
- {pylodstorage-0.3.5 → pylodstorage-0.3.6}/lodstorage/yamlablemixin.py +0 -0
- {pylodstorage-0.3.5 → pylodstorage-0.3.6}/pylodstorage.egg-info/SOURCES.txt +0 -0
- {pylodstorage-0.3.5 → pylodstorage-0.3.6}/pylodstorage.egg-info/dependency_links.txt +0 -0
- {pylodstorage-0.3.5 → pylodstorage-0.3.6}/pylodstorage.egg-info/entry_points.txt +0 -0
- {pylodstorage-0.3.5 → pylodstorage-0.3.6}/pylodstorage.egg-info/requires.txt +0 -0
- {pylodstorage-0.3.5 → pylodstorage-0.3.6}/pylodstorage.egg-info/top_level.txt +0 -0
- {pylodstorage-0.3.5 → pylodstorage-0.3.6}/sampledata/__init__.py +0 -0
- {pylodstorage-0.3.5 → pylodstorage-0.3.6}/sampledata/endpoints.yaml +0 -0
- {pylodstorage-0.3.5 → pylodstorage-0.3.6}/sampledata/formats.yaml +0 -0
- {pylodstorage-0.3.5 → pylodstorage-0.3.6}/sampledata/queries.yaml +0 -0
- {pylodstorage-0.3.5 → pylodstorage-0.3.6}/sampledata/scholia.yaml +0 -0
- {pylodstorage-0.3.5 → pylodstorage-0.3.6}/sampledata/trulytabular.yaml +0 -0
- {pylodstorage-0.3.5 → pylodstorage-0.3.6}/sampledata/wf.yaml +0 -0
- {pylodstorage-0.3.5 → pylodstorage-0.3.6}/sampledata/wikidata.yaml +0 -0
- {pylodstorage-0.3.5 → pylodstorage-0.3.6}/setup.cfg +0 -0
- {pylodstorage-0.3.5 → pylodstorage-0.3.6}/setup.py +0 -0
|
@@ -333,6 +333,8 @@ WHERE
|
|
|
333
333
|
}}"""
|
|
334
334
|
try:
|
|
335
335
|
count=self.sparql.getValue(query, "count")
|
|
336
|
+
# workaround https://github.com/ad-freiburg/qlever/issues/717
|
|
337
|
+
count=int(count)
|
|
336
338
|
except Exception as ex:
|
|
337
339
|
self.error=ex
|
|
338
340
|
count=None
|
|
@@ -538,16 +540,17 @@ ORDER BY DESC (?count)
|
|
|
538
540
|
sparql=f"""
|
|
539
541
|
# Count all {self.asText(long=True)} items
|
|
540
542
|
# with the given {propertyLabel}({propertyId}) https://www.wikidata.org/wiki/Property:{propertyId}
|
|
543
|
+
{WikidataItem.getPrefixes()}
|
|
541
544
|
SELECT ?item ?itemLabel (COUNT (?value) AS ?count)
|
|
542
545
|
WHERE
|
|
543
546
|
{{
|
|
544
547
|
# instance of {self.item.qlabel}
|
|
545
548
|
?item wdt:P31 wd:{self.itemQid}.{self.where}
|
|
546
549
|
?item rdfs:label ?itemLabel.
|
|
547
|
-
|
|
550
|
+
FILTER (LANG(?itemLabel) = "{self.lang}").
|
|
548
551
|
# {propertyLabel}
|
|
549
552
|
?item {wdProperty.getPredicate()} ?value.
|
|
550
|
-
}} GROUP
|
|
553
|
+
}} GROUP BY ?item ?itemLabel
|
|
551
554
|
"""
|
|
552
555
|
if asFrequency:
|
|
553
556
|
freqDesc="frequencies"
|
|
@@ -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.6'
|
|
13
13
|
date = '2020-09-10'
|
|
14
|
-
updated = '2022-07-
|
|
14
|
+
updated = '2022-07-31'
|
|
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
|