AtomGraph / Web-Client

Generic Linked Data browser and UX component framework. Apache license.
https://hub.docker.com/r/atomgraph/web-client/
Apache License 2.0
121 stars 13 forks source link

Error running RDFXML2SVG.xsl from the command line #73

Closed diptenduLF closed 2 years ago

diptenduLF commented 4 years ago

I tried the command

java -cp saxon9he.jar net.sf.saxon.Transform -t -s:test.xml -xsl:RDFXML2SVG.xsl -o:out.svg

and got the error

Saxon-HE 9.9.1.7J from Saxonica Java version 1.8.0_144 Static error in {math:random()} in expression in xsl:sequence/@select on line 90 column 112 of RDFXML2SVG.xsl: XPST0017: Cannot find a 0-argument function named Q{http://exslt.org/math}random() Static error in {math:abs($number)} in expression in xsl:sequence/@select on line 98 column 116 of RDFXML2SVG.xsl: XPST0017: Cannot find a 1-argument function named Q{http://exslt.org/math}abs() Static error in {math:sqrt($number)} in expression in xsl:sequence/@select on line 106 column 117 of RDFXML2SVG.xsl: XPST0017: Cannot find a 1-argument function named Q{http://exslt.org/math}sqrt() Errors were reported during stylesheet compilation

namedgraph commented 4 years ago

Hmm something must have changed in Saxon's support of EXSLT...

Can you try with version 9.1.0.8, which is what Web-Client is using? https://sourceforge.net/projects/saxon/files/Saxon-B/9.1.0.8/

diptenduLF commented 4 years ago

Yes it works with the older version but this is what I get.

[image: image.png]

As you can see this is not of much use. How can I visualise the triples Subject --> Predicate --> Object ?

Regards,

Diptendu Dutta

On Mon, Mar 9, 2020 at 8:44 PM Martynas Jusevičius notifications@github.com wrote:

Hmm something must have changed in Saxon's support of EXSLT...

Can you try with version 9.1.0.8, which is what Web-Client is using? https://sourceforge.net/projects/saxon/files/Saxon-B/9.1.0.8/

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/AtomGraph/Web-Client/issues/73?email_source=notifications&email_token=AD2VZB5TFGVOG75IK4Z6O5DRGUBT3A5CNFSM4LEJGBD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEOHUKJQ#issuecomment-596591910, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD2VZB5MQFTHBW6DX5TXVLDRGUBT3ANCNFSM4LEJGBDQ .

namedgraph commented 4 years ago

Cannot see the image unfortunately. Can you upload it somewhere else?

And may I see the RDF/XML file? Or a portion of it. If so, please put it on Gist or upload it somewhere.

diptenduLF commented 4 years ago

I have attached the screenshot with this email.

The RDF is given below:

<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">

TheConsignor theConsignedUnits rulesofinterpretation thisConsignmentAgreement . . On Wed, Mar 11, 2020 at 1:35 PM Martynas Jusevičius < notifications@github.com> wrote: > Cannot see the image unfortunately. Can you upload it somewhere else? > > And may I see the RDF/XML file? Or a portion of it. If so, please put it > on Gist or upload it somewhere. > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > , > or unsubscribe > > . >
namedgraph commented 4 years ago

Attachments are not coming through here.

This is some weird RDF/XML. Is it from Jena?

The stylesheet will not support just any RDF/XML, it is tailored for Jena's RDF/XML: https://jena.apache.org/documentation/io/rdfxml_howto.html#rdfxml-rdfxml-abbrev

diptenduLF commented 4 years ago

You can see the image at https://ibb.co/ygbTy0c

The RDF was generated using the "RDF/XML" format in Apache Jena

Should I use the "RDF/XML-ABBREV"format?

On Wed, Mar 11, 2020 at 1:48 PM Martynas Jusevičius < notifications@github.com> wrote:

Attachements are not coming through here.

This is some weird RDF/XML. Is it from Jena?

The stylesheet will not support just any RDF/XML, it is tailored for Jena's RDF/XML:

https://jena.apache.org/documentation/io/rdfxml_howto.html#rdfxml-rdfxml-abbrev

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/AtomGraph/Web-Client/issues/73?email_source=notifications&email_token=AD2VZB4HRGM3XQQGCW6UYGLRG5CO7A5CNFSM4LEJGBD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEOOSJIA#issuecomment-597501088, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD2VZB6CBSVXPE4XM6QLL3DRG5CO7ANCNFSM4LEJGBDQ .

namedgraph commented 4 years ago

Yes, please try RDF/XML-ABBREV.

namedgraph commented 4 years ago

@diptenduLF did it work?

diptenduLF commented 4 years ago

Not really.

The number of nodes is less (I guess due to the use of the RDF/XML-ABBREV format) but the diagram is just a collection of nodes.

Please check https://ibb.co/s5jGx0W

Regards,

Diptendu Dutta

On Tue, Mar 17, 2020 at 3:33 AM Martynas Jusevičius < notifications@github.com> wrote:

@diptenduLF https://github.com/diptenduLF did it work?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/AtomGraph/Web-Client/issues/73#issuecomment-599777923, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD2VZB75FBUWGPDOVQTVP7DRH2OZLANCNFSM4LEJGBDQ .

namedgraph commented 4 years ago

Could you upload the RDF/XML data somewhere?

diptenduLF commented 4 years ago

I am including it inline since attachments are not going thru

<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">

Consignor consignee Consignee protection of such Intellectual Property Rights it requirement 15 days Party negotiations administrator appointed CONSIGNMENT AGREEMENT dated liability for 10.2.1 by control cease Consigned Units MAXIMUM CONSIGNMENT PERIOD 7.1 Maximum period consignee agreement suspend connection Consignment Agreement OEM Intellectual Property Rights part-provision invalid other Party breach of other term of Consignment Agreement Obligations willing obligation termination of Consignment Agreement petition filed shall governed Nothing business of marketing death its negligence sale invoice rules claim respect of breach of Consignment Agreement units in Pilot project rights designs prices Documentation Inflow Technologies Pvt Ltd India units On Wed, Mar 18, 2020 at 1:53 AM Martynas Jusevičius < notifications@github.com> wrote: > Could you upload the RDF/XML data somewhere? > > — > You are receiving this because you were mentioned. > Reply to this email directly, view it on GitHub > , > or unsubscribe > > . >
diptenduLF commented 4 years ago

Hello Martynas,

Were you able to find anything wrong in the RDF/XML?

Regards,

Diptendu Dutta

On Thu 19 Mar, 2020 8:13 pm Diptendu Dutta, dutta.diptendu@gmail.com wrote:

I am including it inline since attachments are not going thru

<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">

Consignor consignee Consignee protection of such Intellectual Property Rights it requirement 15 days Party negotiations administrator appointed CONSIGNMENT AGREEMENT dated liability for 10.2.1 by control cease Consigned Units MAXIMUM CONSIGNMENT PERIOD 7.1 Maximum period consignee agreement suspend connection Consignment Agreement OEM Intellectual Property Rights part-provision invalid other Party breach of other term of Consignment Agreement Obligations willing obligation termination of Consignment Agreement petition filed shall governed Nothing business of marketing death its negligence sale invoice rules claim respect of breach of Consignment Agreement units in Pilot project rights designs prices Documentation Inflow Technologies Pvt Ltd India units On Wed, Mar 18, 2020 at 1:53 AM Martynas Jusevičius < notifications@github.com> wrote: > Could you upload the RDF/XML data somewhere? > > — > You are receiving this because you were mentioned. > Reply to this email directly, view it on GitHub > , > or unsubscribe > > . >
namedgraph commented 4 years ago

Sorry, not yet... I'm planning to look at it, but can't give you any timeline.

namedgraph commented 3 years ago

@diptenduLF would you be able to try again? There have been some changes/optimizations to the SVG graph stylesheet.

Looking at the RDF/XML example, rdf:parseType="Resource" is not supported. If you'd run your file through Jena's riot parser utility and produced RDFXML_PLAIN, there would be a higher chance of your data rendering correctly.