You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use codemetapy on Windows, the below error has occured.
file://C:\Users\MUSTAF~1\AppData\Local\Temp\codemeta.jsonld does not look like a valid URI, trying to serialize this will break.
file://C:\Users\MUSTAF~1\AppData\Local\Temp\schemaorgcontext.jsonld does not look like a valid URI, trying to serialize this will break.
file://C:\Users\MUSTAF~1\AppData\Local\Temp\stype.jsonld does not look like a valid URI, trying to serialize this will break.
file://C:\Users\MUSTAF~1\AppData\Local\Temp\iodata.jsonld does not look like a valid URI, trying to serialize this will break.
file://C:\Users\MUSTAF~1\AppData\Local\Temp\repostatus.jsonld does not look like a valid URI, trying to serialize this will break.
I checked where the error occurs and it looks like when creating file path, you add 'file://' to the string, such as below.
Since Windows paths does not start with '/', when you only add 'file://' to the beginning, rdflib cannot read the files and the errors I mentioned occurs.
The text was updated successfully, but these errors were encountered:
I would like to add that this is not an rdflib-specific problem, but in fact rdflib is correct in expecting a path starting with file:/// also on Windows, e.g. see here
As on Unix (i.e. linux and mac) absolute paths start with /, prepending file:// yields the desired result. On Windows, one needs to prepend file:/// and replace \ with /, so that the correct path looks like file:///c:/.../....
But this means that codemetapy must be fixed in multiple places (probably it needs a proper cross-platform "to file uri"/"from file uri" utility function), I tried to find a minimal non-invasive fix, but failed (because of many inline uses of replace with file:// in certain methods).
When I use codemetapy on Windows, the below error has occured.
I checked where the error occurs and it looks like when creating file path, you add 'file://' to the string, such as below.
If you check this issue, I opened in rdflib, you can see rdflib make a string replacement like below.
Since Windows paths does not start with '/', when you only add 'file://' to the beginning, rdflib cannot read the files and the errors I mentioned occurs.
The text was updated successfully, but these errors were encountered: