Created
March 18, 2021 18:37
-
-
Save hsolbrig/d83d828dedcf090888871164c12f290a to your computer and use it in GitHub Desktop.
Urllib/rdflib parser issue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from urllib.parse import urlparse | |
from rdflib import Namespace | |
url = "https://w3id.org/linkml/" | |
print(urlparse(url)) | |
print(urlparse(Namespace(url))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The output of line 6 is:
ParseResult(scheme='https', netloc='w3id.org', path='/linkml/', params='', query='', fragment='')
and line 7 is:
ParseResult(scheme='', netloc='', path=Namespace('https://w3id.org/linkml/'), params='', query='', fragment='')