org.openanzo.jastor
Class PropertyIterator<E>
java.lang.Object
org.openanzo.jastor.FilteredMappedIterator<E,org.openrdf.model.Value,org.openrdf.model.Statement>
org.openanzo.jastor.PropertyIterator<E>
- Type Parameters:
E - The Jastor Type for the values that this iterator of properties represents
- All Implemented Interfaces:
- info.aduna.collections.iterators.CloseableIterator<E>, java.io.Closeable, java.util.Iterator<E>
- Direct Known Subclasses:
- DummyPropertyIterator
public abstract class PropertyIterator<E>
- extends FilteredMappedIterator<E,org.openrdf.model.Value,org.openrdf.model.Statement>
Iterator that iterates over the set of object values for a given property on a given subject. Based on doing a find within
the NamedGraph for the given subject and property
- Author:
- Ben Szekely (bhszekel@us.ibm.com)
|
Constructor Summary |
PropertyIterator(INamedGraph graph,
org.openrdf.model.Resource resource,
org.openrdf.model.URI property,
org.openrdf.model.URI type)
Create iterator of object values for a given property on a given subject. |
|
Method Summary |
abstract E |
getPropertyValue(org.openrdf.model.Value value)
Converts the Value resource into the expected Jastor Type |
void |
remove()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertyIterator
public PropertyIterator(INamedGraph graph,
org.openrdf.model.Resource resource,
org.openrdf.model.URI property,
org.openrdf.model.URI type)
- Create iterator of object values for a given property on a given subject.
- Parameters:
graph - INamedGraph that contains data to searchresource - Subject of statements to findproperty - Property of statements to findtype - rdf:type of expected object
remove
public void remove()
- Specified by:
remove in interface java.util.Iterator<E>- Overrides:
remove in class FilteredMappedIterator<E,org.openrdf.model.Value,org.openrdf.model.Statement>
getPropertyValue
public abstract E getPropertyValue(org.openrdf.model.Value value)
- Converts the Value resource into the expected Jastor Type
- Parameters:
value - Value to convert
- Returns:
- Converted value based on expected Jastor Type
Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.