Class GraphL3
java.lang.Object
org.biopax.paxtools.query.model.AbstractGraph
org.biopax.paxtools.query.wrapperL3.GraphL3
- All Implemented Interfaces:
Graph
Wrapper for L3 Graphs.
- Author:
- Ozgun Babur
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.slf4j.LoggerLog for logging.protected ModelThe model to be wrapped.Fields inherited from class org.biopax.paxtools.query.model.AbstractGraph
objectMap -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRDF IDs of elements is used as key in the object map.getModel()getWrappedSet(Set<? extends GraphObject> wrappers) Gets the wrapped objects of the given wrappers.getWrapperMap(Set<?> objects) Gets an element-to-wrapper map for the given elements.getWrapperSet(Set<?> objects) Gets wrappers of given elementsThis method creates a wrapper for every wrappable L3 element.Methods inherited from class org.biopax.paxtools.query.model.AbstractGraph
clear, getGraphObject, getGraphObject, getObjectMap
-
Field Details
-
model
The model to be wrapped. -
filters
-
log
protected final org.slf4j.Logger logLog for logging.
-
-
Constructor Details
-
GraphL3
Constructor with the model and the IDs of the ubiquitous molecules. IDs can be null, meaning no labeling is desired.- Parameters:
model- Model to wrapfilters- for filtering graph elements
-
-
Method Details
-
wrap
This method creates a wrapper for every wrappable L3 element.- Specified by:
wrapin classAbstractGraph- Parameters:
obj- Object to wrap- Returns:
- The wrapper
-
getKey
RDF IDs of elements is used as key in the object map.- Specified by:
getKeyin classAbstractGraph- Parameters:
wrapped- Object to wrap- Returns:
- Key
-
getWrapperSet
Gets wrappers of given elements- Parameters:
objects- Wrapped objects- Returns:
- wrappers
-
getWrapperMap
Gets an element-to-wrapper map for the given elements.- Parameters:
objects- Wrapped objects- Returns:
- object-to-wrapper map
-
getWrappedSet
Gets the wrapped objects of the given wrappers.- Parameters:
wrappers- Wrappers- Returns:
- Wrapped objects
-
getModel
- Returns:
- Wrapped model
-