pyLodStorage 0.3.13__tar.gz → 0.3.14__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.13/pylodstorage.egg-info → pylodstorage-0.3.14}/PKG-INFO +1 -1
- {pylodstorage-0.3.13 → pylodstorage-0.3.14}/lodstorage/query.py +13 -5
- {pylodstorage-0.3.13 → pylodstorage-0.3.14}/lodstorage/version.py +1 -1
- {pylodstorage-0.3.13 → pylodstorage-0.3.14/pylodstorage.egg-info}/PKG-INFO +1 -1
- {pylodstorage-0.3.13 → pylodstorage-0.3.14}/LICENSE +0 -0
- {pylodstorage-0.3.13 → pylodstorage-0.3.14}/README.md +0 -0
- {pylodstorage-0.3.13 → pylodstorage-0.3.14}/lodstorage/__init__.py +0 -0
- {pylodstorage-0.3.13 → pylodstorage-0.3.14}/lodstorage/csv.py +0 -0
- {pylodstorage-0.3.13 → pylodstorage-0.3.14}/lodstorage/entity.py +0 -0
- {pylodstorage-0.3.13 → pylodstorage-0.3.14}/lodstorage/jsonable.py +0 -0
- {pylodstorage-0.3.13 → pylodstorage-0.3.14}/lodstorage/jsonpicklemixin.py +0 -0
- {pylodstorage-0.3.13 → pylodstorage-0.3.14}/lodstorage/lod.py +0 -0
- {pylodstorage-0.3.13 → pylodstorage-0.3.14}/lodstorage/mwTable.py +0 -0
- {pylodstorage-0.3.13 → pylodstorage-0.3.14}/lodstorage/plot.py +0 -0
- {pylodstorage-0.3.13 → pylodstorage-0.3.14}/lodstorage/querymain.py +0 -0
- {pylodstorage-0.3.13 → pylodstorage-0.3.14}/lodstorage/sample.py +0 -0
- {pylodstorage-0.3.13 → pylodstorage-0.3.14}/lodstorage/schema.py +0 -0
- {pylodstorage-0.3.13 → pylodstorage-0.3.14}/lodstorage/sparql.py +0 -0
- {pylodstorage-0.3.13 → pylodstorage-0.3.14}/lodstorage/sql.py +0 -0
- {pylodstorage-0.3.13 → pylodstorage-0.3.14}/lodstorage/storageconfig.py +0 -0
- {pylodstorage-0.3.13 → pylodstorage-0.3.14}/lodstorage/tabulateCounter.py +0 -0
- {pylodstorage-0.3.13 → pylodstorage-0.3.14}/lodstorage/trulytabular.py +0 -0
- {pylodstorage-0.3.13 → pylodstorage-0.3.14}/lodstorage/uml.py +0 -0
- {pylodstorage-0.3.13 → pylodstorage-0.3.14}/lodstorage/xml.py +0 -0
- {pylodstorage-0.3.13 → pylodstorage-0.3.14}/lodstorage/yamlablemixin.py +0 -0
- {pylodstorage-0.3.13 → pylodstorage-0.3.14}/pylodstorage.egg-info/SOURCES.txt +0 -0
- {pylodstorage-0.3.13 → pylodstorage-0.3.14}/pylodstorage.egg-info/dependency_links.txt +0 -0
- {pylodstorage-0.3.13 → pylodstorage-0.3.14}/pylodstorage.egg-info/entry_points.txt +0 -0
- {pylodstorage-0.3.13 → pylodstorage-0.3.14}/pylodstorage.egg-info/requires.txt +0 -0
- {pylodstorage-0.3.13 → pylodstorage-0.3.14}/pylodstorage.egg-info/top_level.txt +0 -0
- {pylodstorage-0.3.13 → pylodstorage-0.3.14}/sampledata/__init__.py +0 -0
- {pylodstorage-0.3.13 → pylodstorage-0.3.14}/sampledata/endpoints.yaml +0 -0
- {pylodstorage-0.3.13 → pylodstorage-0.3.14}/sampledata/formats.yaml +0 -0
- {pylodstorage-0.3.13 → pylodstorage-0.3.14}/sampledata/got.yaml +0 -0
- {pylodstorage-0.3.13 → pylodstorage-0.3.14}/sampledata/queries.yaml +0 -0
- {pylodstorage-0.3.13 → pylodstorage-0.3.14}/sampledata/scholia.yaml +0 -0
- {pylodstorage-0.3.13 → pylodstorage-0.3.14}/sampledata/trulytabular.yaml +0 -0
- {pylodstorage-0.3.13 → pylodstorage-0.3.14}/sampledata/wf.yaml +0 -0
- {pylodstorage-0.3.13 → pylodstorage-0.3.14}/sampledata/wikidata.yaml +0 -0
- {pylodstorage-0.3.13 → pylodstorage-0.3.14}/setup.cfg +0 -0
- {pylodstorage-0.3.13 → pylodstorage-0.3.14}/setup.py +0 -0
|
@@ -548,9 +548,13 @@ class EndpointManager(object):
|
|
|
548
548
|
"""
|
|
549
549
|
|
|
550
550
|
@staticmethod
|
|
551
|
-
def getEndpoints(endpointPath=None):
|
|
551
|
+
def getEndpoints(endpointPath:str=None,lang:str=None):
|
|
552
552
|
'''
|
|
553
|
-
get the
|
|
553
|
+
get the endpoints for the given endpointPath
|
|
554
|
+
|
|
555
|
+
Args:
|
|
556
|
+
endpointPath(str): the path to the yaml file with the endpoint configurations
|
|
557
|
+
lang(str): if lang is given filter by the given language
|
|
554
558
|
'''
|
|
555
559
|
endpointPaths=YamlPath.getPaths("endpoints.yaml",endpointPath)
|
|
556
560
|
endpoints={}
|
|
@@ -558,9 +562,13 @@ class EndpointManager(object):
|
|
|
558
562
|
with open(lEndpointPath, 'r') as stream:
|
|
559
563
|
endpointRecords = yaml.safe_load(stream)
|
|
560
564
|
for name, record in endpointRecords.items():
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
565
|
+
select=True
|
|
566
|
+
if lang is not None:
|
|
567
|
+
select=record["lang"]==lang
|
|
568
|
+
if select:
|
|
569
|
+
endpoint=Endpoint()
|
|
570
|
+
endpoint.fromDict({"name": name, **record})
|
|
571
|
+
endpoints[name]=endpoint
|
|
564
572
|
return endpoints
|
|
565
573
|
|
|
566
574
|
@staticmethod
|
|
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
|