pyLodStorage 0.4.0__tar.gz → 0.4.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 (41) hide show
  1. {pylodstorage-0.4.0/pylodstorage.egg-info → pylodstorage-0.4.1}/PKG-INFO +1 -1
  2. {pylodstorage-0.4.0 → pylodstorage-0.4.1}/lodstorage/trulytabular.py +5 -2
  3. {pylodstorage-0.4.0 → pylodstorage-0.4.1}/lodstorage/version.py +1 -1
  4. {pylodstorage-0.4.0 → pylodstorage-0.4.1/pylodstorage.egg-info}/PKG-INFO +1 -1
  5. {pylodstorage-0.4.0 → pylodstorage-0.4.1}/LICENSE +0 -0
  6. {pylodstorage-0.4.0 → pylodstorage-0.4.1}/README.md +0 -0
  7. {pylodstorage-0.4.0 → pylodstorage-0.4.1}/lodstorage/__init__.py +0 -0
  8. {pylodstorage-0.4.0 → pylodstorage-0.4.1}/lodstorage/csv.py +0 -0
  9. {pylodstorage-0.4.0 → pylodstorage-0.4.1}/lodstorage/entity.py +0 -0
  10. {pylodstorage-0.4.0 → pylodstorage-0.4.1}/lodstorage/jsonable.py +0 -0
  11. {pylodstorage-0.4.0 → pylodstorage-0.4.1}/lodstorage/jsonpicklemixin.py +0 -0
  12. {pylodstorage-0.4.0 → pylodstorage-0.4.1}/lodstorage/lod.py +0 -0
  13. {pylodstorage-0.4.0 → pylodstorage-0.4.1}/lodstorage/mwTable.py +0 -0
  14. {pylodstorage-0.4.0 → pylodstorage-0.4.1}/lodstorage/plot.py +0 -0
  15. {pylodstorage-0.4.0 → pylodstorage-0.4.1}/lodstorage/query.py +0 -0
  16. {pylodstorage-0.4.0 → pylodstorage-0.4.1}/lodstorage/querymain.py +0 -0
  17. {pylodstorage-0.4.0 → pylodstorage-0.4.1}/lodstorage/sample.py +0 -0
  18. {pylodstorage-0.4.0 → pylodstorage-0.4.1}/lodstorage/schema.py +0 -0
  19. {pylodstorage-0.4.0 → pylodstorage-0.4.1}/lodstorage/sparql.py +0 -0
  20. {pylodstorage-0.4.0 → pylodstorage-0.4.1}/lodstorage/sql.py +0 -0
  21. {pylodstorage-0.4.0 → pylodstorage-0.4.1}/lodstorage/storageconfig.py +0 -0
  22. {pylodstorage-0.4.0 → pylodstorage-0.4.1}/lodstorage/tabulateCounter.py +0 -0
  23. {pylodstorage-0.4.0 → pylodstorage-0.4.1}/lodstorage/uml.py +0 -0
  24. {pylodstorage-0.4.0 → pylodstorage-0.4.1}/lodstorage/xml.py +0 -0
  25. {pylodstorage-0.4.0 → pylodstorage-0.4.1}/lodstorage/yamlablemixin.py +0 -0
  26. {pylodstorage-0.4.0 → pylodstorage-0.4.1}/pylodstorage.egg-info/SOURCES.txt +0 -0
  27. {pylodstorage-0.4.0 → pylodstorage-0.4.1}/pylodstorage.egg-info/dependency_links.txt +0 -0
  28. {pylodstorage-0.4.0 → pylodstorage-0.4.1}/pylodstorage.egg-info/entry_points.txt +0 -0
  29. {pylodstorage-0.4.0 → pylodstorage-0.4.1}/pylodstorage.egg-info/requires.txt +0 -0
  30. {pylodstorage-0.4.0 → pylodstorage-0.4.1}/pylodstorage.egg-info/top_level.txt +0 -0
  31. {pylodstorage-0.4.0 → pylodstorage-0.4.1}/sampledata/__init__.py +0 -0
  32. {pylodstorage-0.4.0 → pylodstorage-0.4.1}/sampledata/endpoints.yaml +0 -0
  33. {pylodstorage-0.4.0 → pylodstorage-0.4.1}/sampledata/formats.yaml +0 -0
  34. {pylodstorage-0.4.0 → pylodstorage-0.4.1}/sampledata/got.yaml +0 -0
  35. {pylodstorage-0.4.0 → pylodstorage-0.4.1}/sampledata/queries.yaml +0 -0
  36. {pylodstorage-0.4.0 → pylodstorage-0.4.1}/sampledata/scholia.yaml +0 -0
  37. {pylodstorage-0.4.0 → pylodstorage-0.4.1}/sampledata/trulytabular.yaml +0 -0
  38. {pylodstorage-0.4.0 → pylodstorage-0.4.1}/sampledata/wf.yaml +0 -0
  39. {pylodstorage-0.4.0 → pylodstorage-0.4.1}/sampledata/wikidata.yaml +0 -0
  40. {pylodstorage-0.4.0 → pylodstorage-0.4.1}/setup.cfg +0 -0
  41. {pylodstorage-0.4.0 → pylodstorage-0.4.1}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pylodstorage
3
- Version: 0.4.0
3
+ Version: 0.4.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
@@ -80,11 +80,12 @@ class WikidataProperty():
80
80
  valuesClause+=f' "{propertyLabel}"@{lang}\n'
81
81
  query=f"""# get the properties for the given labels
82
82
  {WikidataItem.getPrefixes(["rdf","rdfs","wikibase"])}
83
- SELECT ?property ?propertyLabel WHERE {{
83
+ SELECT ?property ?propertyLabel ?wbType WHERE {{
84
84
  VALUES ?propertyLabel {{
85
85
  {valuesClause}
86
86
  }}
87
87
  ?property rdf:type wikibase:Property;rdfs:label ?propertyLabel.
88
+ ?property wikibase:propertyType ?wbType.
88
89
  FILTER(LANG(?propertyLabel) = "{lang}")
89
90
  }}"""
90
91
  cls.addPropertiesForQuery(wdProperties,sparql,query)
@@ -109,11 +110,12 @@ SELECT ?property ?propertyLabel WHERE {{
109
110
  query=f"""
110
111
  # get the property for the given property Ids
111
112
  {WikidataItem.getPrefixes(["rdf","rdfs","wd","wikibase"])}
112
- SELECT ?property ?propertyLabel WHERE {{
113
+ SELECT ?property ?propertyLabel ?wbType WHERE {{
113
114
  VALUES ?property {{
114
115
  {valuesClause}
115
116
  }}
116
117
  ?property rdf:type wikibase:Property;rdfs:label ?propertyLabel.
118
+ ?property wikibase:propertyType ?wbType.
117
119
  FILTER(LANG(?propertyLabel) = "{lang}")
118
120
  }}"""
119
121
  cls.addPropertiesForQuery(wdProperties,sparql,query)
@@ -135,6 +137,7 @@ SELECT ?property ?propertyLabel WHERE {{
135
137
  pid=re.sub(r"http://www.wikidata.org/entity/(.*)",r"\1",url)
136
138
  prop=WikidataProperty(pid)
137
139
  prop.plabel=record["propertyLabel"]
140
+ prop.wbtype=record["wbType"]
138
141
  prop.url=url
139
142
  wdProperties[prop.plabel]=prop
140
143
  prop.varname=Variable.validVarName(prop.plabel)
@@ -9,7 +9,7 @@ class Version(object):
9
9
  Version handling for pyLoDStorage
10
10
  '''
11
11
  name="pylodstorage"
12
- version='0.4.0'
12
+ version='0.4.1'
13
13
  date = '2020-09-10'
14
14
  updated = '2022-08-03'
15
15
  description='python List of Dict (Table) Storage library'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pylodstorage
3
- Version: 0.4.0
3
+ Version: 0.4.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
File without changes
File without changes
File without changes
File without changes