RDFLib / pyrdfa3

RDFa 1.1 distiller/parser library: can extract RDFa 1.1 (and RDFa 1.0, if properly set via a @version attribute) from (X)HTML, SVG, or XML in general. The module can be used to produce serialized versions of the extracted graph, or simply an RDFLib Graph.
http://www.w3.org/2012/pyRdfa/
Other
67 stars 22 forks source link

pydfa3 Adaption #21

Closed Gautamshahi closed 5 years ago

Gautamshahi commented 7 years ago

How can I adapt the pyrdfa3 parser to get the dynamic XPath?

iherman commented 7 years ago

I don't think I understand the question...

Gautamshahi commented 7 years ago

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

iherman commented 7 years ago

@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.