Title:
[ENH] Re-add data.world integration in dissmodel.io
Labels:
enhancement data-world io sparql
Objective:
Restore the ability to load geospatial data directly from data.world via SPARQL queries, returning a GeoDataFrame ready for use in DisSModel.
Previous functionality (reference):
def dw_query(dataset, query, geo_column='wkt', query_type='sparql'):
results = dw.query(dataset, query, query_type)
gdf = gpd.GeoDataFrame(
results.dataframe,
geometry=gpd.GeoSeries.from_wkt(results.dataframe[geo_column])
)
return gdf
Initial ideas:
- Create
dissmodel/io/dataworld.py with query functions
- Support for SPARQL and SQL (if applicable)
- Automatic WKT/WKB to geometry conversion
- Integration with
vector_to_raster_backend for direct flow: data.world → GeoDataFrame → RasterBackend
- Credentials via environment variables (
.env)
Next steps:
Notes:
Detailed implementation to be defined after investigation. Consider credential security and connection error handling.
Title:
[ENH] Re-add data.world integration in dissmodel.ioLabels:
enhancementdata-worldiosparqlObjective:
Restore the ability to load geospatial data directly from data.world via SPARQL queries, returning a
GeoDataFrameready for use in DisSModel.Previous functionality (reference):
Initial ideas:
dissmodel/io/dataworld.pywith query functionsvector_to_raster_backendfor direct flow:data.world → GeoDataFrame → RasterBackend.env)Next steps:
datadotworldAPI (changes since last version)load_dbcells())Notes:
Detailed implementation to be defined after investigation. Consider credential security and connection error handling.