pyLodStorage 0.4.1__tar.gz → 0.4.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.4.1/pylodstorage.egg-info → pylodstorage-0.4.2}/PKG-INFO +1 -1
- {pylodstorage-0.4.1 → pylodstorage-0.4.2}/lodstorage/trulytabular.py +4 -1
- {pylodstorage-0.4.1 → pylodstorage-0.4.2}/lodstorage/version.py +1 -1
- {pylodstorage-0.4.1 → pylodstorage-0.4.2/pylodstorage.egg-info}/PKG-INFO +1 -1
- {pylodstorage-0.4.1 → pylodstorage-0.4.2}/LICENSE +0 -0
- {pylodstorage-0.4.1 → pylodstorage-0.4.2}/README.md +0 -0
- {pylodstorage-0.4.1 → pylodstorage-0.4.2}/lodstorage/__init__.py +0 -0
- {pylodstorage-0.4.1 → pylodstorage-0.4.2}/lodstorage/csv.py +0 -0
- {pylodstorage-0.4.1 → pylodstorage-0.4.2}/lodstorage/entity.py +0 -0
- {pylodstorage-0.4.1 → pylodstorage-0.4.2}/lodstorage/jsonable.py +0 -0
- {pylodstorage-0.4.1 → pylodstorage-0.4.2}/lodstorage/jsonpicklemixin.py +0 -0
- {pylodstorage-0.4.1 → pylodstorage-0.4.2}/lodstorage/lod.py +0 -0
- {pylodstorage-0.4.1 → pylodstorage-0.4.2}/lodstorage/mwTable.py +0 -0
- {pylodstorage-0.4.1 → pylodstorage-0.4.2}/lodstorage/plot.py +0 -0
- {pylodstorage-0.4.1 → pylodstorage-0.4.2}/lodstorage/query.py +0 -0
- {pylodstorage-0.4.1 → pylodstorage-0.4.2}/lodstorage/querymain.py +0 -0
- {pylodstorage-0.4.1 → pylodstorage-0.4.2}/lodstorage/sample.py +0 -0
- {pylodstorage-0.4.1 → pylodstorage-0.4.2}/lodstorage/schema.py +0 -0
- {pylodstorage-0.4.1 → pylodstorage-0.4.2}/lodstorage/sparql.py +0 -0
- {pylodstorage-0.4.1 → pylodstorage-0.4.2}/lodstorage/sql.py +0 -0
- {pylodstorage-0.4.1 → pylodstorage-0.4.2}/lodstorage/storageconfig.py +0 -0
- {pylodstorage-0.4.1 → pylodstorage-0.4.2}/lodstorage/tabulateCounter.py +0 -0
- {pylodstorage-0.4.1 → pylodstorage-0.4.2}/lodstorage/uml.py +0 -0
- {pylodstorage-0.4.1 → pylodstorage-0.4.2}/lodstorage/xml.py +0 -0
- {pylodstorage-0.4.1 → pylodstorage-0.4.2}/lodstorage/yamlablemixin.py +0 -0
- {pylodstorage-0.4.1 → pylodstorage-0.4.2}/pylodstorage.egg-info/SOURCES.txt +0 -0
- {pylodstorage-0.4.1 → pylodstorage-0.4.2}/pylodstorage.egg-info/dependency_links.txt +0 -0
- {pylodstorage-0.4.1 → pylodstorage-0.4.2}/pylodstorage.egg-info/entry_points.txt +0 -0
- {pylodstorage-0.4.1 → pylodstorage-0.4.2}/pylodstorage.egg-info/requires.txt +0 -0
- {pylodstorage-0.4.1 → pylodstorage-0.4.2}/pylodstorage.egg-info/top_level.txt +0 -0
- {pylodstorage-0.4.1 → pylodstorage-0.4.2}/sampledata/__init__.py +0 -0
- {pylodstorage-0.4.1 → pylodstorage-0.4.2}/sampledata/endpoints.yaml +0 -0
- {pylodstorage-0.4.1 → pylodstorage-0.4.2}/sampledata/formats.yaml +0 -0
- {pylodstorage-0.4.1 → pylodstorage-0.4.2}/sampledata/got.yaml +0 -0
- {pylodstorage-0.4.1 → pylodstorage-0.4.2}/sampledata/queries.yaml +0 -0
- {pylodstorage-0.4.1 → pylodstorage-0.4.2}/sampledata/scholia.yaml +0 -0
- {pylodstorage-0.4.1 → pylodstorage-0.4.2}/sampledata/trulytabular.yaml +0 -0
- {pylodstorage-0.4.1 → pylodstorage-0.4.2}/sampledata/wf.yaml +0 -0
- {pylodstorage-0.4.1 → pylodstorage-0.4.2}/sampledata/wikidata.yaml +0 -0
- {pylodstorage-0.4.1 → pylodstorage-0.4.2}/setup.cfg +0 -0
- {pylodstorage-0.4.1 → pylodstorage-0.4.2}/setup.py +0 -0
|
@@ -459,6 +459,8 @@ SELECT ?{item.varname} ?{item.varname}Label"""
|
|
|
459
459
|
sparqlQuery+=f"\n ({aggregateFunc} ({distinct}?{wdProp.varname}{aggregateParam}) AS ?{wdProp.varname}_{aggregate})"
|
|
460
460
|
elif aggregate=="label":
|
|
461
461
|
sparqlQuery+=f"\n ?{wdProp.varname}Label"
|
|
462
|
+
elif aggregate=="ignore":
|
|
463
|
+
sparqlQuery+=f"\n ?{wdProp.varname}"
|
|
462
464
|
sparqlQuery+=f"""
|
|
463
465
|
WHERE {{
|
|
464
466
|
# instanceof {item.qid}:{item.qlabel}
|
|
@@ -525,7 +527,7 @@ WHERE {{
|
|
|
525
527
|
sparqlQuery=f"""# get the most frequently used properties for
|
|
526
528
|
# {itemText}
|
|
527
529
|
{WikidataItem.getPrefixes()}
|
|
528
|
-
SELECT ?prop ?propLabel ?count WHERE {{
|
|
530
|
+
SELECT ?prop ?propLabel ?wbType ?count WHERE {{
|
|
529
531
|
{{"""
|
|
530
532
|
if self.endpointConf.database=="qlever":
|
|
531
533
|
sparqlQuery+=f"""
|
|
@@ -552,6 +554,7 @@ SELECT ?prop ?propLabel ?count WHERE {{
|
|
|
552
554
|
}}"""
|
|
553
555
|
sparqlQuery+=f"""
|
|
554
556
|
?prop rdfs:label ?propLabel.
|
|
557
|
+
?prop wikibase:propertyType ?wbType.
|
|
555
558
|
FILTER(LANG(?propLabel) = "{self.lang}").{minCountFilter}
|
|
556
559
|
}}
|
|
557
560
|
ORDER BY DESC (?count)
|
|
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
|
|
File without changes
|