[jira] [Created] (JENA-1739) Using Path in UpdateBuilder#addWhere throws an Exception

2019-08-07 Thread Vadim Gubin (JIRA)
Vadim Gubin created JENA-1739:
-

 Summary: Using Path in UpdateBuilder#addWhere throws an Exception
 Key: JENA-1739
 URL: https://issues.apache.org/jira/browse/JENA-1739
 Project: Apache Jena
  Issue Type: Bug
  Components: ARQ
Affects Versions: Jena 3.10.0
Reporter: Vadim Gubin


java.lang.IllegalArgumentException: Predicate ("[some path here, for example 
(S|^S)/((S|^S))?]"^^java:org.apache.jena.sparql.path.P_Seq) must be a Path, URI 
, variable, or a wildcard. 
Is a prefix missing? Prefix must be defined before use.


 at 
org.apache.jena.arq.querybuilder.updatebuilder.WhereQuadHolder.testTriple(WhereQuadHolder.java:190)
 at 
org.apache.jena.arq.querybuilder.updatebuilder.WhereQuadHolder.addWhere(WhereQuadHolder.java:204)
 at 
org.apache.jena.arq.querybuilder.UpdateBuilder.addWhere(UpdateBuilder.java:813)
 at 
org.apache.jena.arq.querybuilder.UpdateBuilder.addWhere(UpdateBuilder.java:983)
 at 
org.apache.jena.arq.querybuilder.UpdateBuilder.addWhere(UpdateBuilder.java:1012)

 
h4. How to reproduce:

Path path = createSomePath()...

UpdateRequest update = new UpdateRequest(new UpdateBuilder()

.addWhere(subject, path, object)

.build());

 

RDFConnectionRemoteBuilder connectionBuilder = 
connectionBuilderFactory.createConnectionBuilder();


try (RDFConnection connection = connectionBuilder.build()) {
 connection.update(update);
}
h4. Workaround:

.addWhere(new TriplePath(subject, path, object));



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)


Re: CMS diff: Data Access Control for Fuseki

2019-08-07 Thread ajs6f
Hi, Pierre--

Thanks for sending in some corrections for the documentation, but you seem to 
have left some notes in there. I see text like 

> +Next to last line has an incorrect command for running fuseki with a jetty 
> configuration.
> +
> +It should read --jetty-config, not --jetty.
> +
> +(A link to the default jetty config shipped with fuseki would be useful. An 
> how-to change the main jetty options would be useful to. )

to be added to the page, which I assume you meant as notes to yourself? I'm not 
sure what part of this to merge. 

ajs6f

> On Aug 7, 2019, at 6:28 AM, pierre grenon  wrote:
> 
> Clone URL (Committers only):
> https://cms.apache.org/redirect?new=anonymous;action=diff;uri=http://jena.apache.org/documentation%2Ffuseki2%2Fdata-access-control.md
> 
> pierre grenon
> 
> Index: trunk/content/documentation/fuseki2/data-access-control.md
> ===
> --- trunk/content/documentation/fuseki2/data-access-control.md
> (revision 1864576)
> +++ trunk/content/documentation/fuseki2/data-access-control.md
> (working copy)
> @@ -1,5 +1,10 @@
> Title: Data Access Control for Fuseki
> 
> +Next to last line has an incorrect command for running fuseki with a jetty 
> configuration.
> +
> +It should read --jetty-config, not --jetty.
> +
> +(A link to the default jetty config shipped with fuseki would be useful. An 
> how-to change the main jetty options would be useful to. )
> Fuseki can provide access control at the level on the server, on datasets,
> on endpoints and also on specific graphs within a dataset. It also
> provides native https to protect data in-flight.
> @@ -290,6 +295,6 @@
> For authentication configuration not covered by Fuseki configuration,
> the deployed server can be run using a Jetty configuration.
> 
> -Server command line: --jetty=jetty.xml.
> +Server command line: --jetty-config=jetty.xml.
> 
> [Documentation for 
> `jetty.xml`](https://www.eclipse.org/jetty/documentation/current/jetty-xml-config.html).
> 



CMS diff: Data Access Control for Fuseki

2019-08-07 Thread pierre grenon
Clone URL (Committers only):
https://cms.apache.org/redirect?new=anonymous;action=diff;uri=http://jena.apache.org/documentation%2Ffuseki2%2Fdata-access-control.md

pierre grenon

Index: trunk/content/documentation/fuseki2/data-access-control.md
===
--- trunk/content/documentation/fuseki2/data-access-control.md  (revision 
1864576)
+++ trunk/content/documentation/fuseki2/data-access-control.md  (working copy)
@@ -1,5 +1,10 @@
 Title: Data Access Control for Fuseki
 
+Next to last line has an incorrect command for running fuseki with a jetty 
configuration.
+
+It should read --jetty-config, not --jetty.
+
+(A link to the default jetty config shipped with fuseki would be useful. An 
how-to change the main jetty options would be useful to. )
 Fuseki can provide access control at the level on the server, on datasets,
 on endpoints and also on specific graphs within a dataset. It also
 provides native https to protect data in-flight.
@@ -290,6 +295,6 @@
 For authentication configuration not covered by Fuseki configuration,
 the deployed server can be run using a Jetty configuration.
 
-Server command line: --jetty=jetty.xml.
+Server command line: --jetty-config=jetty.xml.
 
 [Documentation for 
`jetty.xml`](https://www.eclipse.org/jetty/documentation/current/jetty-xml-config.html).