I assume that you know what resources and properties in RDF graphs are. Given the property p, indeed one can check for all triples (s_i, p, o_j), i.e. all triples that have the property p in predicate position. The methods:
listResourcesWithProperty(Property p) returns all resources s_i listResourcesWithProperty(Property p, RDFNode o) returns all subjects s_i that occur in triples in which o_j matches o Lorenz > Thank you Chris and Soroka. > > I have read this and could not understand it properly, that is why I asked > the question here. I will be happy if some one give an example with > model.listResourcesWithProperty() > used in it. > > > > On Thu, Nov 10, 2016 at 5:35 PM, A. Soroka <[email protected]> wrote: > >> https://jena.apache.org/documentation/javadoc/jena/ >> org/apache/jena/rdf/model/Model.html#listResourcesWithProperty-org. >> apache.jena.rdf.model.Property- >> >> Please learn to read Javadocs for software you are using. >> >> --- >> A. Soroka >> The University of Virginia Library >> >>> On Nov 10, 2016, at 10:32 AM, kumar rohit <[email protected]> wrote: >>> >>> What is mean my model.listResourcesWithProperty()? >>> What it accepts as parameters and what it returns as output? >> -- Lorenz Bühmann AKSW group, University of Leipzig Group: http://aksw.org - semantic web research center
