Hi,

> On 6 Mar 2019, at 00:34, [email protected] wrote:
> 
> resource = rdflib.URIRef("http://dbpedia.org/resource/Adam Małysz")

2 problems here:
- space isn't allowed in URI
- ł isn't allowed in URI


> graph.value(resource, rdflib.RDFS.label)
> graph.load(resource) # << error here

this mostly looks like an inconsistency between py2 and py3 to me. My guess is 
that you use py3 where this errs with a UnicodeEncodeError.
In other words: it's possible that you have to "quote" the IRI into a URI 
yourself here, even though it happened implicitly in py2.


Best,
Jörn

-- 
http://github.com/RDFLib
--- 
You received this message because you are subscribed to the Google Groups 
"rdflib-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rdflib-dev/B3A7D4C2-7A6D-4F7D-909C-425C7A8ACEA0%40joernhees.de.
For more options, visit https://groups.google.com/d/optout.

Reply via email to