public abstract class ParameterizedHTTPEntitySource extends Object implements RemoteEntitySource
| Modifier and Type | Field and Description |
|---|---|
static String |
OWL_THING |
static String |
RDF_TYPE |
| Constructor and Description |
|---|
ParameterizedHTTPEntitySource() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canDereference(URI remoteEntity) |
boolean |
canSuggestRemoteEntity() |
void |
dereferenceIntoFromModel(DocumentModel localEntity,
URI remoteEntity,
com.hp.hpl.jena.rdf.model.Model rdfModel,
boolean override,
boolean lazyResourceFetch)
Dereference a remote entity into an existing document model from a
pre-fetched RDF description of the entity.
|
void |
setDescriptor(RemoteEntitySourceDescriptor descriptor) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdereferenceInto, getAdmissibleTypes, suggestRemoteEntitypublic static final String OWL_THING
public static final String RDF_TYPE
public void setDescriptor(RemoteEntitySourceDescriptor descriptor)
public boolean canDereference(URI remoteEntity)
canDereference in interface RemoteEntitySourcepublic boolean canSuggestRemoteEntity()
canSuggestRemoteEntity in interface RemoteEntitySourcepublic void dereferenceIntoFromModel(DocumentModel localEntity, URI remoteEntity, com.hp.hpl.jena.rdf.model.Model rdfModel, boolean override, boolean lazyResourceFetch) throws DereferencingException
RemoteEntitySourceoverride is set to true.
This is typically useful for the SemanticAnalysisService that might
receive pre-fetched entity link suggestion and description from the
enhancement engines.
It is the responsibility of the method caller to save the updated
document model back to the repository.dereferenceIntoFromModel in interface RemoteEntitySourcelocalEntity - local document model to store a copy of the entity
attributeremoteEntity - the URI of the entity to dereferenceoverride - replace non-empty local fields with values from the
remote entitylazyResourceFetch - if true, delay the fetch of the content of
referenced resources (e.g. JPEG images) to first access.DereferencingExceptionCopyright © 2011 Nuxeo SA. All Rights Reserved.