fedora.server.resourceIndex
Class MethodAwareTripleGenerator
java.lang.Object
fedora.server.resourceIndex.BaseTripleGenerator
fedora.server.resourceIndex.MethodAwareTripleGenerator
- All Implemented Interfaces:
- Constants, TripleGenerator
public class MethodAwareTripleGenerator
- extends BaseTripleGenerator
Generates RDF triples for Fedora objects with the help of a
MethodInfoProvider.
This implementation produces a superset of the triples generated
by BaseTripleGenerator. Specifically, it includes
the following triples for each method the object exposes:
For all methods:
- object usesBMech bMech
- object disseminates method
- method dependsOn datastream (for each input datastream)
- method lastModifiedDate (latest of dependent datastreams,
or disseminator's)
- method state (disseminator's)
- method mimeType (possibly multiple, based on bMech)
- method isVolatile (true if any dependent datastreams are
E or R type)
- method disseminationType disTypeURI (for each permutation)
- Author:
- cwilper@cs.cornell.edu
| Fields inherited from interface fedora.common.Constants |
ACTION, BDEF, BMECH, DATASTREAM, DC, DISSEMINATOR, ENVIRONMENT, FEDORA, FEDORA_HOME, FEDORA_SYSTEM_DEF_PID, FEDORA_SYSTEM_DEF_URI, HTTP_REQUEST, MODEL, OBJECT, RDF, RECOVERY, RELS_EXT, RESOURCE, SUBJECT, TUCANA, VIEW, XSD |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MethodAwareTripleGenerator
public MethodAwareTripleGenerator(MethodInfoProvider provider)
- Construct an instance that will use the given provider.
- Parameters:
provider - the provider to use for behavior mechanism info.
getTriplesForBDef
public java.util.Set<org.jrdf.graph.Triple> getTriplesForBDef(BDefReader reader)
throws ResourceIndexException
- Get the triples for the given Fedora behavior definition object.
- Specified by:
getTriplesForBDef in interface TripleGenerator- Overrides:
getTriplesForBDef in class BaseTripleGenerator
- Parameters:
reader - the behavior definition object.
- Returns:
- the set of triples.
- Throws:
ResourceIndexException
getTriplesForBMech
public java.util.Set<org.jrdf.graph.Triple> getTriplesForBMech(BMechReader reader)
throws ResourceIndexException
- Get the triples for the given Fedora behavior mechanism object.
- Specified by:
getTriplesForBMech in interface TripleGenerator- Overrides:
getTriplesForBMech in class BaseTripleGenerator
- Parameters:
reader - the behavior mechanism object.
- Returns:
- the set of triples.
- Throws:
ResourceIndexException
getTriplesForDataObject
public java.util.Set<org.jrdf.graph.Triple> getTriplesForDataObject(DOReader reader)
throws ResourceIndexException
- Get the triples for the given Fedora data object.
- Specified by:
getTriplesForDataObject in interface TripleGenerator- Overrides:
getTriplesForDataObject in class BaseTripleGenerator
- Parameters:
reader - the data object.
- Returns:
- the set of triples.
- Throws:
ResourceIndexException