Re: listresourceswithproperty()

2016-12-29 Thread A. Soroka
Please, please read the Javadocs. StmtIterator listStatements(Resource s, Property p, RDFNode o) returns a StmtIterator, an iterator of _Statements_. ResIterator listResourcesWithProperty(Property p, RDFNode o) returns a ResIterator, an iterator of _Resources_. Neither of the examples you

Re: listresourceswithproperty()

2016-12-29 Thread neha gupta
> > > >> 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 a

Re: listresourceswithproperty()

2016-12-29 Thread A. Soroka
and objects of the Property p, > right? > > > > On Thu, Dec 29, 2016 at 4:29 PM, A. Soroka wrote: > >> Please consult the Javadocs. >> >> https://jena.apache.org/documentation/javadoc/jena/ >> org/apache/jena/rdf/model/Model.html#listResourcesWithPrope

Re: listresourceswithproperty()

2016-12-29 Thread neha gupta
Hi Soroka, it will lists both the subjects and objects of the Property p, right? On Thu, Dec 29, 2016 at 4:29 PM, A. Soroka wrote: > Please consult the Javadocs. > > https://jena.apache.org/documentation/javadoc/jena/ > org/apache/jena/rdf/model/Model.html#listResourcesWith

Re: listresourceswithproperty()

2016-12-29 Thread A. Soroka
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() i

listresourceswithproperty()

2016-12-29 Thread neha gupta
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