org.topbraid.core.model
Class SubProperties

java.lang.Object
  extended by org.topbraid.core.model.SubProperties

public class SubProperties
extends java.lang.Object


Constructor Summary
SubProperties()
           
 
Method Summary
static com.hp.hpl.jena.rdf.model.Statement getProperty(com.hp.hpl.jena.rdf.model.Resource subject, com.hp.hpl.jena.rdf.model.Property predicate)
          Gets the first object of a given subject/predicate pair.
static com.hp.hpl.jena.rdf.model.StmtIterator listProperties(com.hp.hpl.jena.rdf.model.Resource subject, com.hp.hpl.jena.rdf.model.Property predicate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubProperties

public SubProperties()
Method Detail

getProperty

public static com.hp.hpl.jena.rdf.model.Statement getProperty(com.hp.hpl.jena.rdf.model.Resource subject,
                                                              com.hp.hpl.jena.rdf.model.Property predicate)
Gets the first object of a given subject/predicate pair. If the subject has a direct value of predicate then this is returned. Otherwise, the method will also look into values of all subproperties of predicate.

Parameters:
subject - the subject
predicate - the predicate
Returns:
a matching Statement

listProperties

public static com.hp.hpl.jena.rdf.model.StmtIterator listProperties(com.hp.hpl.jena.rdf.model.Resource subject,
                                                                    com.hp.hpl.jena.rdf.model.Property predicate)