Questions tagged [jena-querybuilder]
6 questions
1
vote
0 answers
How to use the Jena query builder for RDF-star?
How to convert this simple query to Jena java query builder?
SELECT ?city
WHERE { <<:athens :connected ?city >> :distance 500}
I tried this in Clojure and it didn't work.
No need to write Clojure i just need the Java code.
I created a TipleNode…

Takis
- 8,314
- 2
- 14
- 25
1
vote
0 answers
Is it possible to valide an SparQL for Jena?
Is there any way to validate/check an SparQL query?
I'm asking for a a method simillar to oneClass.validateSparqlQuery(expectedSparQL).
And not forcing the exception "QueryException" while creating the SparQL, this way:
import…

tremendows
- 4,262
- 3
- 34
- 51
0
votes
1 answer
How to add a SERVICE clause to SelectBuilder using Apache Jena's query builder?
I’m using the Jena query builder from the Jena-extras and I was wondering if there was a way to add a SERVICE clause to a SelectBuilder object.
My code right now looks like this:
SelectBuilder builder = new SelectBuilder()
.addPrefix( "rdf",…

jDeJong
- 9
- 3
0
votes
0 answers
Jena querybuilder clearWhereValues isn't working
I want to clear the where clause values in a selectBuilder object, but I cannot get it work.
import org.apache.jena.arq.querybuilder.SelectBuilder;
public class TestClearWhere {
public static void main(String[] args) {
SelectBuilder sb…

soscler
- 227
- 4
- 4
0
votes
1 answer
getting the WHERE from an apache JENA ARQ Query
Is it possible to get the WHERE Clause from a Query org.apache.jena.query.Query ? Haven't found no info enywhere, no documentation anywhere.
Imagine I create a query from a String
String queryString = "
SELECT ?name ?mbox
WHERE
{ ?x…

tremendows
- 4,262
- 3
- 34
- 51
0
votes
2 answers
How do I build a SPARQL list input using jena querybuilder?
I have a bunch of code that uses the Apache Jena querybuilder API (SelectBuilder class). I am trying to add a term like this to my existing SPARQL query:
(?a ?b ?c) :hasMagicProperty ?this .
I have verified that this query works in…

RMorrisey
- 7,637
- 9
- 53
- 71