Re: Fuseki 2: Security issue “Information Exposure”

2016-01-31 Thread A. Soroka
Just for the record, Andy, do we now have a standard way of determining a running version for when it is necessary to answer a question? I’m thinking here of folks who may have “inherited” a deployed Fuseki install and who then run into questions or troubles (it could happen to anyone {grin}),

Re: Fuseki 2: Security issue “Information Exposure”

2016-01-31 Thread Andy Seaborne
https://issues.apache.org/jira/browse/JENA-1125 Output of version should only be in developer mode now. "developer mode" means anything that is not a formal release, i.e. with a version number without SNAPSHOT. Andy On 28/01/16 21:03, Andy Seaborne wrote: If you want to lock down a

Re: How to remove consistently a triple pattern given a SPARQL query?

2016-01-31 Thread Lorenz Bühmann
Hello Carlo, there is usually no link from a child node to its parent in the JENA datastructures. That means you have to keep track of it when you're processing the parents. Why not run some "clean up" after each child has been processed? E.g. check if there is no BGP left and thus mark this

Re: Fuseki 2 & Cross Site Scripting (XSS) vulnerability

2016-01-31 Thread Andy Seaborne
Thanks to Laurens Rietveld, the author of YASGUI, we have a fix for Jena. The fix [*] is in the way Jena uses yasr. JENA-1123 is resolved. The latest dev build has it in. Caution: you have to flush the changed javascript into the browser. Browsers seem to be obstinate about doing this but (1)

Re: How to remove consistently a triple pattern given a SPARQL query?

2016-01-31 Thread Carlo . Allocca
Hello Lorenz, Thank you very much for your help. Some comments follow in line. > On 31 Jan 2016, at 13:36, Lorenz Bühmann > wrote: > > Hello Carlo, > > there is usually no link from a child node to its parent in the JENA data > structures. It is very

Re: How to remove consistently a triple pattern given a SPARQL query?

2016-01-31 Thread Carlo . Allocca
Hello Lorenz, Sure no problem. I can share it here. In case you have suggest any other place I will do so. Please, let me know. Many Thanks, Best Regards, Carlo > On 31 Jan 2016, at 15:07, Lorenz Bühmann > wrote: > > Hello Carlo, > > I'm sure

Re: How to remove consistently a triple pattern given a SPARQL query?

2016-01-31 Thread Lorenz Bühmann
Hello Carlo, I'm sure you'll make it, but maybe you should also share the complete code somehow? Maybe this makes it easier for people to help you. Lorenz Hello Lorenz, Thank you very much for your help. Some comments follow in line. On 31 Jan 2016, at 13:36, Lorenz Bühmann

Re: How to remove consistently a triple pattern given a SPARQL query?

2016-01-31 Thread Andy Seaborne
Cleaning up is slightly easier in the syntax because BGPs and filters are inside a group (nothing to do with GROUP - a syntax group is things between {}. So when you want to delete something, have some custom Element class 'ElementDeleteMe' to return from the ElementFilter or

Re: How to remove consistently a triple pattern given a SPARQL query?

2016-01-31 Thread Carlo . Allocca
Dear Andy, > On 31 Jan 2016, at 15:25, Andy Seaborne wrote: > > Cleaning up is slightly easier in the syntax because BGPs and filters are > inside a group (nothing to do with GROUP - a syntax group is things between > {}. > > So when you want to delete something, have some