Skip to content

Commit

Permalink
Add type hint for SPARQL results
Browse files Browse the repository at this point in the history
This assists with type review.

No appreciable effects were observed on output files.

Signed-off-by: Alex Nelson <[email protected]>
  • Loading branch information
ajnelson-nist committed Aug 27, 2024
1 parent e7b5b7a commit 2140697
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/CASE2GeoJSON.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from geotypes import GeoRecord
from geoutilities import records_to_geojson, remove_nulls
from rdflib import Graph
from rdflib.query import ResultRow

# Parse the arguments from the CLI to get the input and output filenames
if len(sys.argv) != 3:
Expand Down Expand Up @@ -64,6 +65,7 @@

# Loop through the results and add them to the list of GeoRecords if the latitude and longitude are present
for row in results:
assert isinstance(row, ResultRow)
geo_record: GeoRecord = GeoRecord()
geo_record.Latitude = row.lLatitude
geo_record.Longitude = row.lLongitude
Expand Down

0 comments on commit 2140697

Please sign in to comment.