Re: model.empty()

2015-03-02 Thread Martynas Jusevičius
model.isEmpty() should be enough: http://jena.apache.org/documentation/javadoc/jena/com/hp/hpl/jena/rdf/model/Model.html#isEmpty() On Mon, Mar 2, 2015 at 6:58 PM, Maarten van Dessel maarten.vandes...@ugent.be wrote: I'm sorry for the inconvenience, it was a mistake on my end. Apparently

model.empty()

2015-03-02 Thread Maarten van Dessel
Hi everyone, I'm using construct queries in a project. I want to make decisions based on wether the constructed model contains any data. Is there any way on how this can be known? Example query: CONSTRUCT { ?person http://example.com#hasStatus http://example.com#Occupied .} WHERE {

Re: model.empty()

2015-03-02 Thread Maarten van Dessel
I'm sorry for the inconvenience, it was a mistake on my end. Apparently model.listStatements.hasNext() does seem to test correctly if a model is empty. Op 2-mrt.-2015, om 18:04 heeft Martynas Jusevičius marty...@graphity.org het volgende geschreven: What's the query code? You are