Closed Gautamshahi closed 5 years ago
I don't think I understand the question...
Hi,
I am sorry.
I wanted to use pyrdfa3 with some modification to get the XPath of the parsed data dynamically (by using some driver like selenium). Is it possible with pyrdfa3?
I hope now it's clear to you.
Thanks & Regards,
On Mon, Oct 2, 2017 at 1:01 PM, Ivan Herman notifications@github.com wrote:
I don't think I understand the question...
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/RDFLib/pyrdfa3/issues/21#issuecomment-333459975, or mute the thread https://github.com/notifications/unsubscribe-auth/ADyFFnkI-Y-VJloeS0f9CUxpFclRcdv1ks5soJFNgaJpZM4PqE_D .
-- Gautam Kishore Shahi, Master Student, DISI- University of Trento, Italy
@Gautamshahi I am still not sure what exactly you want to get to.
Pyrdfa parses the input (using standard XML/HTML5 parsers) right at the beginning to turn the data into a DOM (Python's minidom, to be precise), and uses the DOM to extract the RDF information, turned into objects as part of an RDFLib Graph. Once the parsing is done, it is all static and I am not sure what and how you would/could extract.
How can I adapt the pyrdfa3 parser to get the dynamic XPath?