Comments (2)
Can you try using file URIs as per IETF RFC 8089:
https://datatracker.ietf.org/doc/html/rfc8089
D.2. DOS- and Windows-Like Systems
When mapping a DOS- or Windows-like file path to a file URI, the
drive letter (e.g., "c:") is typically mapped into the first path
segment.Appendix E lists some nonstandard techniques for interacting with
DOS- or Windows-like file paths and URIs.
So that would then be file:///C:/...
instead of file://C:/...
.
I believe this is how python works also:
https://docs.python.org/3/library/pathlib.html#pathlib.PurePath.as_uri
>>> p = PurePosixPath('/etc/passwd')
>>> p.as_uri()
'file:///etc/passwd'
>>> p = PureWindowsPath('c:/Windows')
>>> p.as_uri()
'file:///c:/Windows'
from rdflib.
Thank you very much for the answer.
from rdflib.
Related Issues (20)
- Empty answer fuseki/SPARQLStore from sparql query
- Incorrect result from optional sub-select
- turtle parser fails to parse "<" under some circumstances HOT 1
- csv2rdf cannot parse config file
- Incorrect handling of falsy literals in SPARQLStore HOT 1
- Issue with namespaces when concepts begin with a numeral. HOT 2
- OSS-Fuzz Integration
- RDF/XML Blank node parsing HOT 1
- How to generate a standard ontology title? HOT 3
- apidocs/rdflib.extras.html varies between builds HOT 1
- 7.0.0: pytest is failing in 2 units and many pytest warnings HOT 2
- Binding user-defined Namespace HOT 1
- Unable to embed rdflib in a python extension
- Bug when using FROM statements HOT 2
- Bug: Comparison and arithmetic on xsd:duration HOT 1
- SPARQL Subquey parse error HOT 5
- typo in Container method name: type_of_conatiner --> type_of_container
- Turning rdflib jsonld into a "full processor" (a.o. for schema.org compliance) HOT 3
- Incorrect working when deleting triplets in a BerkeleyDB store HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rdflib.