Re: Issue while reading Model or Graph from Trig Strings

2019-11-22 Thread Andy Seaborne
If you read TriG into model, it takes the default graph only. The TriG has a named graphs in it. bdg:T1642 { ... } Remove the name and it should work. The Turtle does not have a name (so it is the same as Trig+default graph) Andy On 22/11/2019 17:22, Marc Agate wrote: Hi Martynas ! The

Re: Access control on Jena/fuseki datasets

2019-11-22 Thread ajs6f
I think that the issue is that Shiro, out of the box, does not address matching by query param. You may wish to configure RegExPatternMatcher, which would be more flexible. https://shiro.apache.org/static/1.4.2/apidocs/org/apache/shiro/util/RegExPatternMatcher.html ajs6f > On Nov 22, 2019, at

Re: Access control on Jena/fuseki datasets

2019-11-22 Thread Jean-Claude Moissinac
@ajs6f I doesnt think that shiro is the problem (perhaps, it is part of the solution). I think that the web UI of Fuseki call something which is protected. But what? The index.html page doesn't contain an evident candidate. I think that we have to look in js/app/main.index.js, but it becomes an

Re: Issue while reading Model or Graph from Trig Strings

2019-11-22 Thread Marc Agate
Hi Martynas ! The method you are pointing me to effectively works and I can use it to solve the issue for now. However, the RDFDataMgr documentation says (about read methods/operations): read -- Read data from a location into a Model, Dataset, etc. The methods in this class treat all types of

Re: Access control on Jena/fuseki datasets

2019-11-22 Thread ajs6f
This isn't really a question about Jena, it's a question about Shiro. Have you tried asking that community? ajs6f > On Nov 22, 2019, at 11:41 AM, Jean-Claude Moissinac > wrote: > > Dear Marco, > > I think my previous reading of this documentation was right. > My understanding is that the

Re: Access control on Jena/fuseki datasets

2019-11-22 Thread Jean-Claude Moissinac
Dear Marco, I think my previous reading of this documentation was right. My understanding is that the proposed solution is to develop specific Java code (like the ShiroExampleEvaluator) to implement the permissions. I would like just to configure and use fuseki, not start a Java development I

Re: Caching in Fuseki service

2019-11-22 Thread ajs6f
You would provide both datasets at Fuseki and then us a reverse proxy (like Varnish) to switch between the two endpoints. Anything more specific would depend on the reverse proxy you select. ajs6f > On Nov 22, 2019, at 1:06 AM, Martynas Jusevičius > wrote: > > Varnish is a reverse proxy

Re: Access control on Jena/fuseki datasets

2019-11-22 Thread Jean-Claude Moissinac
Dear Andy, Thank's for your reply. But, as said in my starting email, my problem is to control the access of the datasets in the user interface? Because, I need the user interface. A tuned configuration for Shiro does the job for the sparql endpoints A way could be to produce a specific user

Re: Issue while reading Model or Graph from Trig Strings

2019-11-22 Thread Martynas Jusevičius
I think you want to read a Dataset: https://jena.apache.org/documentation/javadoc/arq/org/apache/jena/riot/RDFDataMgr.html#read-org.apache.jena.query.Dataset-java.io.StringReader-java.lang.String-org.apache.jena.riot.Lang- On Fri, 22 Nov 2019 at 16.45, Marc Agate wrote: > Hi all, > > I need to

Issue while reading Model or Graph from Trig Strings

2019-11-22 Thread Marc Agate
Hi all, I need to build Models or Graphs from strings being a trig serialization of a rdf resource. I tried to do using Model.read or RDFDataMgr but both produce empty models or graphs. When I do the same operation with Turtle serialization, it works just fine. What do you think ? Run the