We used to have a class that does something like that using SPIN:
https://github.com/AtomGraph/Web-Client/blob/5d0988e3a2c35a2bb045815459d4653d7c23d503/src/main/java/com/atomgraph/client/query/QueryBuilder.java
There's a SelectBuilder class in that folder as well.
Later on this took its place:
htt
Is there a way to parse a SPARQL string into a SelectBuilder instance so
that the SPARQL can be manipulated and added to?
in pseudo-ish code something like:
SelectBuilder sub = new SelectBuilder("select ?s where {?s ?p ?o}");
.addVar("p")
.addVar("o");
- Erich
Saw ExpreUtil.parse and stopped reading. Used the second part of your
email and it worked fine. TGIF
On Fri, Dec 18, 2020 at 2:17 PM Erich Bremer wrote:
> Using this will throw a "Exception in thread "main"
> org.apache.jena.query.QueryParseException: Line 1, column 2: Aggregate
> expression n
Using this will throw a "Exception in thread "main"
org.apache.jena.query.QueryParseException: Line 1, column 2: Aggregate
expression not legal at this point". So you may be right to use a query
builder :-)
On Fri, Dec 18, 2020 at 1:29 PM Andy Seaborne wrote:
>
>
> On 18/12/2020 18:04, Erich Br
On 18/12/2020 18:04, Erich Bremer wrote:
How would one create an Expr in order to add an expression like this:
SPARQLParser p = SPARQLParser.createParser(Syntax.syntaxSPARQL_11);
Query query = new Query();
p.parse(query, "select ?year where {?s :Year ?year; :Fruit ?fruit} group by
?year order
How would one create an Expr in order to add an expression like this:
SPARQLParser p = SPARQLParser.createParser(Syntax.syntaxSPARQL_11);
Query query = new Query();
p.parse(query, "select ?year where {?s :Year ?year; :Fruit ?fruit} group by
?year order by ?year");
query.addResultVar("fruits","(cou
On 18/12/2020 10:13, Sushanth Vaddaram wrote:
Hi Andy,
Am using TDB2, can we allow two different services to access the same database.
I thought that can be done in TBD1 and not TDB2 because of locking mechanism.
No problem (TDB1 or TDB2).
There is only ever one database object in the pro
Hi Andy,
Am using TDB2, can we allow two different services to access the same database.
I thought that can be done in TBD1 and not TDB2 because of locking mechanism.
Thanks!!!
On 2020/12/18 09:52:26, Andy Seaborne wrote:
>
>
> On 17/12/2020 14:53, Sushanth Vaddaram wrote:
> > We are trying
General comment: it is a good idea to validate the data before trying to
load the data. If there is an error in the data a long way into the
file, the bulk loader has already been domign some wokr so i
So if the data can have errors, it is useful to do a check by reading it
with "riot" first b
On 17/12/2020 14:53, Sushanth Vaddaram wrote:
We are trying to backup base model from Jena without inferred data using the
RDFConnectionFuseki connection. Is there any way that can be achieved?
Code:
try (RDFConnectionFuseki conn = (RDFConnectionFuseki)builder.build();
10 matches
Mail list logo