pyLodStorage 0.3.2__tar.gz → 0.3.4__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.2/pylodstorage.egg-info → pylodstorage-0.3.4}/PKG-INFO +1 -1
- {pylodstorage-0.3.2 → pylodstorage-0.3.4}/lodstorage/query.py +1 -0
- {pylodstorage-0.3.2 → pylodstorage-0.3.4}/lodstorage/trulytabular.py +10 -2
- {pylodstorage-0.3.2 → pylodstorage-0.3.4}/lodstorage/version.py +1 -1
- {pylodstorage-0.3.2 → pylodstorage-0.3.4/pylodstorage.egg-info}/PKG-INFO +1 -1
- {pylodstorage-0.3.2 → pylodstorage-0.3.4}/sampledata/endpoints.yaml +4 -0
- {pylodstorage-0.3.2 → pylodstorage-0.3.4}/LICENSE +0 -0
- {pylodstorage-0.3.2 → pylodstorage-0.3.4}/README.md +0 -0
- {pylodstorage-0.3.2 → pylodstorage-0.3.4}/lodstorage/__init__.py +0 -0
- {pylodstorage-0.3.2 → pylodstorage-0.3.4}/lodstorage/csv.py +0 -0
- {pylodstorage-0.3.2 → pylodstorage-0.3.4}/lodstorage/entity.py +0 -0
- {pylodstorage-0.3.2 → pylodstorage-0.3.4}/lodstorage/jsonable.py +0 -0
- {pylodstorage-0.3.2 → pylodstorage-0.3.4}/lodstorage/jsonpicklemixin.py +0 -0
- {pylodstorage-0.3.2 → pylodstorage-0.3.4}/lodstorage/lod.py +0 -0
- {pylodstorage-0.3.2 → pylodstorage-0.3.4}/lodstorage/mwTable.py +0 -0
- {pylodstorage-0.3.2 → pylodstorage-0.3.4}/lodstorage/plot.py +0 -0
- {pylodstorage-0.3.2 → pylodstorage-0.3.4}/lodstorage/querymain.py +0 -0
- {pylodstorage-0.3.2 → pylodstorage-0.3.4}/lodstorage/sample.py +0 -0
- {pylodstorage-0.3.2 → pylodstorage-0.3.4}/lodstorage/schema.py +0 -0
- {pylodstorage-0.3.2 → pylodstorage-0.3.4}/lodstorage/sparql.py +0 -0
- {pylodstorage-0.3.2 → pylodstorage-0.3.4}/lodstorage/sql.py +0 -0
- {pylodstorage-0.3.2 → pylodstorage-0.3.4}/lodstorage/storageconfig.py +0 -0
- {pylodstorage-0.3.2 → pylodstorage-0.3.4}/lodstorage/tabulateCounter.py +0 -0
- {pylodstorage-0.3.2 → pylodstorage-0.3.4}/lodstorage/uml.py +0 -0
- {pylodstorage-0.3.2 → pylodstorage-0.3.4}/lodstorage/xml.py +0 -0
- {pylodstorage-0.3.2 → pylodstorage-0.3.4}/lodstorage/yamlablemixin.py +0 -0
- {pylodstorage-0.3.2 → pylodstorage-0.3.4}/pylodstorage.egg-info/SOURCES.txt +0 -0
- {pylodstorage-0.3.2 → pylodstorage-0.3.4}/pylodstorage.egg-info/dependency_links.txt +0 -0
- {pylodstorage-0.3.2 → pylodstorage-0.3.4}/pylodstorage.egg-info/entry_points.txt +0 -0
- {pylodstorage-0.3.2 → pylodstorage-0.3.4}/pylodstorage.egg-info/requires.txt +0 -0
- {pylodstorage-0.3.2 → pylodstorage-0.3.4}/pylodstorage.egg-info/top_level.txt +0 -0
- {pylodstorage-0.3.2 → pylodstorage-0.3.4}/sampledata/__init__.py +0 -0
- {pylodstorage-0.3.2 → pylodstorage-0.3.4}/sampledata/formats.yaml +0 -0
- {pylodstorage-0.3.2 → pylodstorage-0.3.4}/sampledata/queries.yaml +0 -0
- {pylodstorage-0.3.2 → pylodstorage-0.3.4}/sampledata/scholia.yaml +0 -0
- {pylodstorage-0.3.2 → pylodstorage-0.3.4}/sampledata/trulytabular.yaml +0 -0
- {pylodstorage-0.3.2 → pylodstorage-0.3.4}/sampledata/wf.yaml +0 -0
- {pylodstorage-0.3.2 → pylodstorage-0.3.4}/sampledata/wikidata.yaml +0 -0
- {pylodstorage-0.3.2 → pylodstorage-0.3.4}/setup.cfg +0 -0
- {pylodstorage-0.3.2 → pylodstorage-0.3.4}/setup.py +0 -0
|
@@ -579,6 +579,7 @@ class Endpoint(JSONAble):
|
|
|
579
579
|
"name": "wikidata",
|
|
580
580
|
"lang": "sparql",
|
|
581
581
|
"endpoint": "https://query.wikidata.org/sparql",
|
|
582
|
+
"website": "https://query.wikidata.org/",
|
|
582
583
|
"method": "POST",
|
|
583
584
|
"prefixes": "PREFIX bd: <http://www.bigdata.com/rdf#>\nPREFIX cc: <http://creativecommons.org/ns#>"
|
|
584
585
|
}
|
|
@@ -442,7 +442,15 @@ 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"
|
|
446
454
|
havingCount=0
|
|
447
455
|
havingDelim=" "
|
|
448
456
|
for wdProp in self.properties.values():
|
|
@@ -453,7 +461,7 @@ WHERE {{
|
|
|
453
461
|
if havingCount==1:
|
|
454
462
|
sparqlQuery+=f"\nHAVING ("
|
|
455
463
|
|
|
456
|
-
sparqlQuery+=f"\n {havingDelim}COUNT(?{wdProp.varname})
|
|
464
|
+
sparqlQuery+=f"\n {havingDelim}COUNT(?{wdProp.varname})<=1"
|
|
457
465
|
havingDelim="&& "
|
|
458
466
|
if havingCount>0:
|
|
459
467
|
sparqlQuery+=f"\n)"
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
'wikidata':
|
|
4
4
|
lang: sparql
|
|
5
5
|
endpoint: https://query.wikidata.org/sparql
|
|
6
|
+
website: https://query.wikidata.org/
|
|
6
7
|
method: POST
|
|
7
8
|
prefixes: |
|
|
8
9
|
PREFIX bd: <http://www.bigdata.com/rdf#>
|
|
@@ -41,6 +42,7 @@
|
|
|
41
42
|
lang: sparql
|
|
42
43
|
method: GET
|
|
43
44
|
endpoint: https://qlever.cs.uni-freiburg.de/api/wikidata
|
|
45
|
+
website: https://qlever.cs.uni-freiburg.de/wikidata
|
|
44
46
|
prefixes: |
|
|
45
47
|
PREFIX bd: <http://www.bigdata.com/rdf#>
|
|
46
48
|
PREFIX cc: <http://creativecommons.org/ns#>
|
|
@@ -78,6 +80,7 @@
|
|
|
78
80
|
lang: sparql
|
|
79
81
|
method: GET
|
|
80
82
|
endpoint: https://qlever.cs.uni-freiburg.de/api/wikidata-proxy
|
|
83
|
+
website: https://qlever.cs.uni-freiburg.de/wikidata
|
|
81
84
|
prefixes: |
|
|
82
85
|
PREFIX bd: <http://www.bigdata.com/rdf#>
|
|
83
86
|
PREFIX cc: <http://creativecommons.org/ns#>
|
|
@@ -113,6 +116,7 @@
|
|
|
113
116
|
'wikidata-openlinksw':
|
|
114
117
|
lang: sparql
|
|
115
118
|
endpoint: https://wikidata.demo.openlinksw.com/sparql
|
|
119
|
+
website: https://wikidata.demo.openlinksw.com/sparql
|
|
116
120
|
prefixes: |
|
|
117
121
|
PREFIX bd: <http://www.bigdata.com/rdf#>
|
|
118
122
|
PREFIX cc: <http://creativecommons.org/ns#>
|
|
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
|