Skip to content

Commit

Permalink
Update csvw_parser.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ThHanke authored May 17, 2024
1 parent c16eaaa commit 0291832
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion csvw_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ def open_file(uri: str, authorization= None) -> Tuple["filedata": str, "filename
if uri_parsed.scheme in ["https", "http"]:
# r = urlopen(uri)
s= requests.Session()
s.verify=False
s.headers.update({"Authorization": authorization})
r = s.get(uri, allow_redirects=True, stream=True)

Expand Down Expand Up @@ -322,4 +323,4 @@ def csvwtordf_prov(graph: Graph, api_url: str, csv_url: str, metadata_url: str)
graph.add((meta_usage,RDF.type,PROV.Usage))
graph.add((meta_usage,PROV.hadRole,CSVW.tabularMetadata))
graph.add((table,PROV.qualifiedUsage,meta_usage))
return graph
return graph

0 comments on commit 0291832

Please sign in to comment.