Open hiiroo opened 1 year ago
Additional details;
When the following code run it returns a string "http://example.org/subject1"
s1 = rdflib.URIRef("http://example.org/subject1")
However, when it run in python it returns rdflib.term.URIRef('http://example.org/subject1')
subject = rdflib.URIRef(ex + "subject1")
You can suppress PyCall's automatic conversion with:
pycall(rdflib.URIRef, PyObject, "http://example.org/subject1")
which tells it to return a raw PyObject
rather than trying to convert to a native Julia object (which I guess happens here because rdflib.term.URIRef
is a subtype of string).
Hello everyone and thanks for the great library. I was trying to use rdflib of Python in PyCall.jl. I'm using macos, Julia 1.9.1 and using
ENV["Python"]=""
with Conda.jl. With this code,I got the following output