Please consult the Javadocs. https://jena.apache.org/documentation/javadoc/jena/org/apache/jena/rdf/model/Model.html#listResourcesWithProperty-org.apache.jena.rdf.model.Property-
"Answer an iterator [with no duplicates] over all the resources in this model that have property p. remove() is not implemented on this iterator." --- A. Soroka The University of Virginia Library > On Dec 29, 2016, at 8:23 AM, neha gupta <neha.bang...@gmail.com> wrote: > > Hello, I want to ask what is the function of this method: > listresourceswithproperty() > > And is it the same as when we query SPARQL like: > > Select ?x > where { ?x rdf:type ?someclass } > > A simple example is highly appreciated as I did not find any solid examples > on web about it. > > Thank you