Re: Replacement for CSVInput and TSVInput?

2022-12-12 Thread Andy Seaborne
ResultsSetMgr which uses ResultsReader On 12/12/2022 15:45, Martynas Jusevičius wrote: Hi, I'm upgrading Jena 4.5.0 to 4.6.1. I can see that org.apache.jena.sparql.resultset.CSVInput is gone and org.apache.jena.sparql.resultset.TSVInput is deprecated. What are the replacements for them? My

Replacement for CSVInput and TSVInput?

2022-12-12 Thread Martynas Jusevičius
Hi, I'm upgrading Jena 4.5.0 to 4.6.1. I can see that org.apache.jena.sparql.resultset.CSVInput is gone and org.apache.jena.sparql.resultset.TSVInput is deprecated. What are the replacements for them? My code was the following: if

Re: How to handle optional lists in SPARQL

2022-12-12 Thread Lorenz Buehmann
I don't know your full query restrictions, but without given properties it would be a "simple" property path, no? Something like owl:someValuesFrom/((owl:intersectionOf|owl:unionOf)/list:member)? where the list closure is optional and if you want to make it nestested

How to handle optional lists in SPARQL

2022-12-12 Thread Mikael Pesonen
Is there a shortcut for making queries where a data value can be single item or list of items? For example this is how I do a query now using UNION. Both parts are identical except for the single/list section in owl:someValuesFrom []. This is still somewhat readable but if there are