|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.openrdf.sesame.query.rql.model.Intersection
An intersection of classes.
| Constructor Summary | |
Intersection()
Creates a new, empty Intersection. |
|
Intersection(StatementIterator statIter)
Creates a new Intersection that is initialized with the objects of the statements from the supplied StatementIterator. |
|
| Method Summary | |
void |
add(Resource resource)
Adds a resource to this intersection. |
void |
addProperty(URI property,
Value value)
Adds a property to this Resource in the RDF graph. |
int |
compareTo(Object o)
|
boolean |
containsInstance(Resource instance,
RdfSchemaSource rss)
Checks if the supplied resource is an instance of all classes of this intersection, using the supplied RdfSchemaSource to check the instance relations. |
boolean |
equals(Object other)
Compares this intersection to another object. |
Resource |
getFirstMember()
|
ValueIterator |
getInstances(RdfSchemaSource rss)
Gets all resources that are instances of all classes of this intersection. |
Set |
getMembers()
Gets the members of this intersection. |
StatementIterator |
getObjectStatements()
Gets all statements from the RDF graph for which this value is the object. |
StatementIterator |
getSubjectStatements()
Gets all statements from the RDF graph for which this resource is the subject. |
boolean |
greaterEqualThan(Intersection other,
RdfSchemaSource rss)
|
boolean |
greaterThan(Intersection other,
RdfSchemaSource rss)
|
int |
hashCode()
Returns a hashcode for use in hash tables. |
boolean |
lowerEqualThan(Intersection other,
RdfSchemaSource rss)
|
boolean |
lowerThan(Intersection other,
RdfSchemaSource rss)
|
Value |
minimize(RdfSchemaSource rss)
Minimizes the set of classes in this intersection by filtering out any superclasses for which there are also subclasseses in this intersection. |
int |
size()
Gets the size (number of resources) of this intersection. |
String |
toString()
Gives a String-representation of this Intersection that can be used for debugging. |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Intersection()
public Intersection(StatementIterator statIter)
| Method Detail |
public Set getMembers()
public Resource getFirstMember()
public void add(Resource resource)
resource - A Resource representing a class.public Value minimize(RdfSchemaSource rss)
rss - The RdfSchemaSource to use for checking the sub-superclass
relations.public int size()
public boolean containsInstance(Resource instance,
RdfSchemaSource rss)
public ValueIterator getInstances(RdfSchemaSource rss)
public boolean equals(Object other)
other - The Object to compare ths intersection to.
public boolean lowerEqualThan(Intersection other,
RdfSchemaSource rss)
public boolean greaterThan(Intersection other,
RdfSchemaSource rss)
public boolean greaterEqualThan(Intersection other,
RdfSchemaSource rss)
public boolean lowerThan(Intersection other,
RdfSchemaSource rss)
public int hashCode()
public int compareTo(Object o)
compareTo in interface Comparablepublic String toString()
public void addProperty(URI property,
Value value)
throws GraphException
Resource
addProperty in interface Resourceproperty - the predicate of the statement that should be added.value - the value of the statements that should be added.
GraphException
public StatementIterator getSubjectStatements()
throws GraphException
Resource
getSubjectStatements in interface ResourceGraphException
public StatementIterator getObjectStatements()
throws GraphException
Value
getObjectStatements in interface ValueGraphException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||