pyLodStorage 0.1.34__tar.gz → 0.2.1__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.
Files changed (38) hide show
  1. {pylodstorage-0.1.34 → pylodstorage-0.2.1}/PKG-INFO +1 -1
  2. {pylodstorage-0.1.34 → pylodstorage-0.2.1}/lodstorage/trulytabular.py +2 -3
  3. {pylodstorage-0.1.34 → pylodstorage-0.2.1}/lodstorage/version.py +3 -3
  4. {pylodstorage-0.1.34 → pylodstorage-0.2.1}/pylodstorage.egg-info/PKG-INFO +1 -1
  5. {pylodstorage-0.1.34 → pylodstorage-0.2.1}/pylodstorage.egg-info/requires.txt +1 -0
  6. {pylodstorage-0.1.34 → pylodstorage-0.2.1}/sampledata/endpoints.yaml +37 -1
  7. {pylodstorage-0.1.34 → pylodstorage-0.2.1}/sampledata/queries.yaml +3 -2
  8. {pylodstorage-0.1.34 → pylodstorage-0.2.1}/setup.py +2 -1
  9. {pylodstorage-0.1.34 → pylodstorage-0.2.1}/LICENSE +0 -0
  10. {pylodstorage-0.1.34 → pylodstorage-0.2.1}/README.md +0 -0
  11. {pylodstorage-0.1.34 → pylodstorage-0.2.1}/lodstorage/csv.py +0 -0
  12. {pylodstorage-0.1.34 → pylodstorage-0.2.1}/lodstorage/entity.py +0 -0
  13. {pylodstorage-0.1.34 → pylodstorage-0.2.1}/lodstorage/jsonable.py +0 -0
  14. {pylodstorage-0.1.34 → pylodstorage-0.2.1}/lodstorage/jsonpicklemixin.py +0 -0
  15. {pylodstorage-0.1.34 → pylodstorage-0.2.1}/lodstorage/lod.py +0 -0
  16. {pylodstorage-0.1.34 → pylodstorage-0.2.1}/lodstorage/mwTable.py +0 -0
  17. {pylodstorage-0.1.34 → pylodstorage-0.2.1}/lodstorage/plot.py +0 -0
  18. {pylodstorage-0.1.34 → pylodstorage-0.2.1}/lodstorage/query.py +0 -0
  19. {pylodstorage-0.1.34 → pylodstorage-0.2.1}/lodstorage/querymain.py +0 -0
  20. {pylodstorage-0.1.34 → pylodstorage-0.2.1}/lodstorage/sample.py +0 -0
  21. {pylodstorage-0.1.34 → pylodstorage-0.2.1}/lodstorage/schema.py +0 -0
  22. {pylodstorage-0.1.34 → pylodstorage-0.2.1}/lodstorage/sparql.py +0 -0
  23. {pylodstorage-0.1.34 → pylodstorage-0.2.1}/lodstorage/sql.py +0 -0
  24. {pylodstorage-0.1.34 → pylodstorage-0.2.1}/lodstorage/storageconfig.py +0 -0
  25. {pylodstorage-0.1.34 → pylodstorage-0.2.1}/lodstorage/tabulateCounter.py +0 -0
  26. {pylodstorage-0.1.34 → pylodstorage-0.2.1}/lodstorage/uml.py +0 -0
  27. {pylodstorage-0.1.34 → pylodstorage-0.2.1}/lodstorage/yamlablemixin.py +0 -0
  28. {pylodstorage-0.1.34 → pylodstorage-0.2.1}/pylodstorage.egg-info/SOURCES.txt +0 -0
  29. {pylodstorage-0.1.34 → pylodstorage-0.2.1}/pylodstorage.egg-info/dependency_links.txt +0 -0
  30. {pylodstorage-0.1.34 → pylodstorage-0.2.1}/pylodstorage.egg-info/entry_points.txt +0 -0
  31. {pylodstorage-0.1.34 → pylodstorage-0.2.1}/pylodstorage.egg-info/top_level.txt +0 -0
  32. {pylodstorage-0.1.34 → pylodstorage-0.2.1}/sampledata/__init__.py +0 -0
  33. {pylodstorage-0.1.34 → pylodstorage-0.2.1}/sampledata/formats.yaml +0 -0
  34. {pylodstorage-0.1.34 → pylodstorage-0.2.1}/sampledata/scholia.yaml +0 -0
  35. {pylodstorage-0.1.34 → pylodstorage-0.2.1}/sampledata/trulytabular.yaml +0 -0
  36. {pylodstorage-0.1.34 → pylodstorage-0.2.1}/sampledata/wf.yaml +0 -0
  37. {pylodstorage-0.1.34 → pylodstorage-0.2.1}/sampledata/wikidata.yaml +0 -0
  38. {pylodstorage-0.1.34 → pylodstorage-0.2.1}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pylodstorage
3
- Version: 0.1.34
3
+ Version: 0.2.1
4
4
  Summary: python List of Dict (Table) Storage library
5
5
  Home-page: https://github.com/WolfgangFahl/pyLodStorage
6
6
  Author: Wolfgang Fahl
@@ -8,7 +8,6 @@ from lodstorage.query import Query,QueryManager,YamlPath
8
8
  import os
9
9
  import re
10
10
 
11
-
12
11
  class WikidataProperty():
13
12
  '''
14
13
  a WikidataProperty
@@ -425,8 +424,8 @@ ORDER BY DESC(?count)"""
425
424
  total+=f
426
425
  statsRow["max"]=maxCount
427
426
  if withQuery:
428
- statsRow["queryf"]=self.noneTabularQuery(wdProperty)
429
- statsRow["queryex"]=self.noneTabularQuery(wdProperty,asFrequency=False)
427
+ statsRow["queryf"]=self.noneTabularQuery(wdProperty).query
428
+ statsRow["queryex"]=self.noneTabularQuery(wdProperty,asFrequency=False).query
430
429
  self.addStatsColWithPercent(statsRow,"total",total,itemCount)
431
430
  self.addStatsColWithPercent(statsRow,"non tabular",nttotal,total)
432
431
  return statsRow
@@ -8,7 +8,7 @@ class Version(object):
8
8
  '''
9
9
  Version handling for pyLoDStorage
10
10
  '''
11
- name="pyLodStorage"
12
- version='0.1.34'
11
+ name="pylodstorage"
12
+ version='0.2.1'
13
13
  date = '2020-09-10'
14
- updated = '2022-03-23'
14
+ updated = '2022-03-27'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pylodstorage
3
- Version: 0.1.34
3
+ Version: 0.2.1
4
4
  Summary: python List of Dict (Table) Storage library
5
5
  Home-page: https://github.com/WolfgangFahl/pyLodStorage
6
6
  Author: Wolfgang Fahl
@@ -3,4 +3,5 @@ PyYAML
3
3
  pandas
4
4
  jsonpickle
5
5
  tabulate
6
+ pygments
6
7
  pylatexenc~=2.10
@@ -109,4 +109,40 @@
109
109
  PREFIX wdtn: <http://www.wikidata.org/prop/direct-normalized/>
110
110
  PREFIX wdv: <http://www.wikidata.org/value/>
111
111
  PREFIX wikibase: <http://wikiba.se/ontology#>
112
- PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
112
+ PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
113
+ 'wikidata-openlinksw':
114
+ lang: sparql
115
+ endpoint: https://wikidata.demo.openlinksw.com/sparql
116
+ prefixes: |
117
+ PREFIX bd: <http://www.bigdata.com/rdf#>
118
+ PREFIX cc: <http://creativecommons.org/ns#>
119
+ PREFIX dct: <http://purl.org/dc/terms/>
120
+ PREFIX geo: <http://www.opengis.net/ont/geosparql#>
121
+ PREFIX ontolex: <http://www.w3.org/ns/lemon/ontolex#>
122
+ PREFIX owl: <http://www.w3.org/2002/07/owl#>
123
+ PREFIX p: <http://www.wikidata.org/prop/>
124
+ PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
125
+ PREFIX pqn: <http://www.wikidata.org/prop/qualifier/value-normalized/>
126
+ PREFIX pqv: <http://www.wikidata.org/prop/qualifier/value/>
127
+ PREFIX pr: <http://www.wikidata.org/prop/reference/>
128
+ PREFIX prn: <http://www.wikidata.org/prop/reference/value-normalized/>
129
+ PREFIX prov: <http://www.w3.org/ns/prov#>
130
+ PREFIX prv: <http://www.
131
+ wikidata.org/prop/reference/value/>
132
+ PREFIX ps: <http://www.wikidata.org/prop/statement/>
133
+ PREFIX psn: <http://www.wikidata.org/prop/statement/value-normalized/>
134
+ PREFIX psv: <http://www.wikidata.org/prop/statement/value/>
135
+ PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
136
+ PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
137
+ PREFIX schema: <http://schema.org/>
138
+ PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
139
+ PREFIX wd: <http://www.wikidata.org/entity/>
140
+ PREFIX wdata: <http://www.wikidata.org/wiki/Special:EntityData/>
141
+ PREFIX wdno: <http://www.wikidata.org/prop/novalue/>
142
+ PREFIX wdref: <http://www.wikidata.org/reference/>
143
+ PREFIX wds: <http://www.wikidata.org/entity/statement/>
144
+ PREFIX wdt: <http://www.wikidata.org/prop/direct/>
145
+ PREFIX wdtn: <http://www.wikidata.org/prop/direct-normalized/>
146
+ PREFIX wdv: <http://www.wikidata.org/value/>
147
+ PREFIX wikibase: <http://wikiba.se/ontology#>
148
+ PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
@@ -87,8 +87,9 @@
87
87
  # president
88
88
  ?president wdt:P39 wd:Q11696.
89
89
  # nickname
90
- ?president wdt:P1449 ?nickName
91
- SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
90
+ ?president wdt:P1449 ?nickName.
91
+ ?president rdfs:label ?presidentLabel.
92
+ FILTER (LANG(?presidentLabel)="en")
92
93
  } GROUP BY ?president ?presidentLabel
93
94
  title: Nick names of US Presidents
94
95
  tryItUrl: https://query.wikidata.org
@@ -11,7 +11,7 @@ with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
11
11
  long_description = f.read()
12
12
 
13
13
  setup(
14
- name='pylodstorage',
14
+ name=Version.name,
15
15
  version=Version.version,
16
16
 
17
17
  packages=['lodstorage','sampledata'],
@@ -37,6 +37,7 @@ setup(
37
37
  'pandas',
38
38
  'jsonpickle',
39
39
  'tabulate',
40
+ 'pygments',
40
41
  'pylatexenc~=2.10'
41
42
  ],
42
43
  classifiers=[
File without changes
File without changes
File without changes