pyLodStorage 0.3.6__tar.gz → 0.3.7__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.6/pylodstorage.egg-info → pylodstorage-0.3.7}/PKG-INFO +1 -1
- {pylodstorage-0.3.6 → pylodstorage-0.3.7}/lodstorage/trulytabular.py +5 -5
- {pylodstorage-0.3.6 → pylodstorage-0.3.7}/lodstorage/version.py +1 -1
- {pylodstorage-0.3.6 → pylodstorage-0.3.7/pylodstorage.egg-info}/PKG-INFO +1 -1
- {pylodstorage-0.3.6 → pylodstorage-0.3.7}/LICENSE +0 -0
- {pylodstorage-0.3.6 → pylodstorage-0.3.7}/README.md +0 -0
- {pylodstorage-0.3.6 → pylodstorage-0.3.7}/lodstorage/__init__.py +0 -0
- {pylodstorage-0.3.6 → pylodstorage-0.3.7}/lodstorage/csv.py +0 -0
- {pylodstorage-0.3.6 → pylodstorage-0.3.7}/lodstorage/entity.py +0 -0
- {pylodstorage-0.3.6 → pylodstorage-0.3.7}/lodstorage/jsonable.py +0 -0
- {pylodstorage-0.3.6 → pylodstorage-0.3.7}/lodstorage/jsonpicklemixin.py +0 -0
- {pylodstorage-0.3.6 → pylodstorage-0.3.7}/lodstorage/lod.py +0 -0
- {pylodstorage-0.3.6 → pylodstorage-0.3.7}/lodstorage/mwTable.py +0 -0
- {pylodstorage-0.3.6 → pylodstorage-0.3.7}/lodstorage/plot.py +0 -0
- {pylodstorage-0.3.6 → pylodstorage-0.3.7}/lodstorage/query.py +0 -0
- {pylodstorage-0.3.6 → pylodstorage-0.3.7}/lodstorage/querymain.py +0 -0
- {pylodstorage-0.3.6 → pylodstorage-0.3.7}/lodstorage/sample.py +0 -0
- {pylodstorage-0.3.6 → pylodstorage-0.3.7}/lodstorage/schema.py +0 -0
- {pylodstorage-0.3.6 → pylodstorage-0.3.7}/lodstorage/sparql.py +0 -0
- {pylodstorage-0.3.6 → pylodstorage-0.3.7}/lodstorage/sql.py +0 -0
- {pylodstorage-0.3.6 → pylodstorage-0.3.7}/lodstorage/storageconfig.py +0 -0
- {pylodstorage-0.3.6 → pylodstorage-0.3.7}/lodstorage/tabulateCounter.py +0 -0
- {pylodstorage-0.3.6 → pylodstorage-0.3.7}/lodstorage/uml.py +0 -0
- {pylodstorage-0.3.6 → pylodstorage-0.3.7}/lodstorage/xml.py +0 -0
- {pylodstorage-0.3.6 → pylodstorage-0.3.7}/lodstorage/yamlablemixin.py +0 -0
- {pylodstorage-0.3.6 → pylodstorage-0.3.7}/pylodstorage.egg-info/SOURCES.txt +0 -0
- {pylodstorage-0.3.6 → pylodstorage-0.3.7}/pylodstorage.egg-info/dependency_links.txt +0 -0
- {pylodstorage-0.3.6 → pylodstorage-0.3.7}/pylodstorage.egg-info/entry_points.txt +0 -0
- {pylodstorage-0.3.6 → pylodstorage-0.3.7}/pylodstorage.egg-info/requires.txt +0 -0
- {pylodstorage-0.3.6 → pylodstorage-0.3.7}/pylodstorage.egg-info/top_level.txt +0 -0
- {pylodstorage-0.3.6 → pylodstorage-0.3.7}/sampledata/__init__.py +0 -0
- {pylodstorage-0.3.6 → pylodstorage-0.3.7}/sampledata/endpoints.yaml +0 -0
- {pylodstorage-0.3.6 → pylodstorage-0.3.7}/sampledata/formats.yaml +0 -0
- {pylodstorage-0.3.6 → pylodstorage-0.3.7}/sampledata/queries.yaml +0 -0
- {pylodstorage-0.3.6 → pylodstorage-0.3.7}/sampledata/scholia.yaml +0 -0
- {pylodstorage-0.3.6 → pylodstorage-0.3.7}/sampledata/trulytabular.yaml +0 -0
- {pylodstorage-0.3.6 → pylodstorage-0.3.7}/sampledata/wf.yaml +0 -0
- {pylodstorage-0.3.6 → pylodstorage-0.3.7}/sampledata/wikidata.yaml +0 -0
- {pylodstorage-0.3.6 → pylodstorage-0.3.7}/setup.cfg +0 -0
- {pylodstorage-0.3.6 → pylodstorage-0.3.7}/setup.py +0 -0
|
@@ -537,11 +537,7 @@ ORDER BY DESC (?count)
|
|
|
537
537
|
# work around https://github.com/RDFLib/sparqlwrapper/issues/211
|
|
538
538
|
if "described at" in propertyLabel:
|
|
539
539
|
propertyLabel=propertyLabel.replace("described at","describ'd at")
|
|
540
|
-
sparql=f"""
|
|
541
|
-
# Count all {self.asText(long=True)} items
|
|
542
|
-
# with the given {propertyLabel}({propertyId}) https://www.wikidata.org/wiki/Property:{propertyId}
|
|
543
|
-
{WikidataItem.getPrefixes()}
|
|
544
|
-
SELECT ?item ?itemLabel (COUNT (?value) AS ?count)
|
|
540
|
+
sparql=f"""SELECT ?item ?itemLabel (COUNT (?value) AS ?count)
|
|
545
541
|
WHERE
|
|
546
542
|
{{
|
|
547
543
|
# instance of {self.item.qlabel}
|
|
@@ -564,6 +560,10 @@ ORDER BY DESC (?frequency)"""
|
|
|
564
560
|
sparql=f"""{sparql}
|
|
565
561
|
HAVING (COUNT (?value) > 1)
|
|
566
562
|
ORDER BY DESC(?count)"""
|
|
563
|
+
sparql=f"""# Count all {self.asText(long=True)} items
|
|
564
|
+
# with the given {propertyLabel}({propertyId}) https://www.wikidata.org/wiki/Property:{propertyId}
|
|
565
|
+
{WikidataItem.getPrefixes()}
|
|
566
|
+
"""+sparql
|
|
567
567
|
title=f"non tabular entries for {self.item.qlabel}/{propertyLabel}:{freqDesc}"
|
|
568
568
|
name=f"NonTabular {self.item.qlabel}/{propertyLabel}:{freqDesc}"
|
|
569
569
|
query=Query(query=sparql,name=name,title=title)
|
|
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
|