eu.transformproject.provenance.service
public interface ProvenanceStorageInterface
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
addAnnotation(java.lang.String uriEntityOrDependence,
java.lang.String owl_prop,
java.lang.String value)
Adds an annotation to an entity or a dependence, owl_prop is the property to annotate which must appear in the ontology profile
(or set of domain-user ontologies) associated to the server, the value associated to the property is value.
|
java.lang.String[] |
addAnnotations(java.lang.String uriEntityOrDependence,
AnnotationSet annotations) |
java.lang.String |
addCausalDependence(java.lang.String uriEntityCause,
java.lang.String uriEntityDest)
As the previous method but the causal dependences to create must correspond with one of the five defined in \cite{Moreau2010}.
|
java.lang.String |
addCausalDependence(java.lang.String uriEntityCause,
java.lang.String opmo_dependenceClass,
java.lang.String uriEntityDest)
Defines a causal dependence from the entity uriEntityDest to uriEntityCause in the graph idGraph.
|
void |
associateToAccount(java.lang.String uriEntity,
java.lang.String uriAccount)
Specify an account for which an specific OPM entity can be viewed.
|
AnnotationSet |
composeAnnotation(java.lang.String owl_prop,
java.lang.String value)
Create an AnnotationSet object, initialising it with the annotation defined by the pair: owl_prop, value.
|
void |
endProcess(java.lang.String processUri)
Allows to store the date-time in which a process has finalised.
|
void |
endProcessWithStatus(java.lang.String processUri,
java.lang.String processStatus)
Allows to store the date-time in which a process has finalised together with its status.
|
java.lang.Object |
flushAndRefresh(java.lang.Object object) |
OPMGraph |
getCurrGraph() |
java.lang.String |
getEntityURI(java.lang.String owl_opm_Class,
AnnotationSet annotations)
Generate or retrieve an URI associated to the given parameters.
|
OPMEntity |
getOPMEntity(java.lang.String entityURI)
Recover an OPMEntity given its URI.
|
java.lang.String |
getOPMGraphForProject(java.lang.String projectName)
If it exists a graph associated to this project name, this method returns it, otherwise,
it creates a new graph, and adds to it an annotation associating it with a project.
|
java.util.Date |
getSyncTime() |
java.lang.String |
newGraph()
Adds a new graph in the provenance store.
|
void |
setCurrentGraph(java.lang.String idGraph)
Specify that all the new entity definitions belong to the OPM graph with URI idGraph.
|
void |
setProcessEndAt(java.lang.String processUri,
java.util.Date timeEnd) |
void |
setProcessStartAt(java.lang.String processUri,
java.util.Date timeStart) |
void |
setProcessStatus(java.lang.String processUri,
java.lang.String processStatus)
Allows to set the status of a process.
|
java.util.Date getSyncTime()
throws java.lang.Exception
java.lang.Exceptionjava.lang.String newGraph()
throws java.lang.Exception
java.lang.Exceptionjava.lang.String getOPMGraphForProject(java.lang.String projectName)
throws java.lang.Exception
projectName - name of the project described by the created graph.java.lang.ExceptionOPMEntity getOPMEntity(java.lang.String entityURI) throws java.lang.Exception
entityURI - URI of the entity to recover.java.lang.Exceptionjava.lang.Object flushAndRefresh(java.lang.Object object)
throws java.lang.Exception
java.lang.Exceptionvoid setCurrentGraph(java.lang.String idGraph)
throws java.lang.Exception
idGraph - URI of the graph for all new declared entities.java.lang.Exceptionjava.lang.String getEntityURI(java.lang.String owl_opm_Class,
AnnotationSet annotations)
throws java.lang.Exception
owl_opm_Class - class to which the opm entity belongsannotations - annotations associated to the entity to create/retrievejava.lang.Exceptionvoid endProcess(java.lang.String processUri)
throws java.lang.Exception
processUri - the process that has finishedjava.lang.Exceptionvoid endProcessWithStatus(java.lang.String processUri,
java.lang.String processStatus)
throws java.lang.Exception
processUri - the process that has finishedprocessStatus - status of the process that has finishedjava.lang.Exceptionvoid setProcessStatus(java.lang.String processUri,
java.lang.String processStatus)
throws java.lang.Exception
processStatus - string representing the status of a process. Only the current status of a process is maintained.
In future versions, other status annotations would be maintained at different times.java.lang.Exceptionvoid setProcessStartAt(java.lang.String processUri,
java.util.Date timeStart)
throws java.lang.Exception
java.lang.Exceptionvoid setProcessEndAt(java.lang.String processUri,
java.util.Date timeEnd)
throws java.lang.Exception
java.lang.Exceptionvoid associateToAccount(java.lang.String uriEntity,
java.lang.String uriAccount)
throws java.lang.Exception
uriEntity - OPM entity URI of the entity to associate to the accounturiAccount - OPM Account URI for the OPM entity.java.lang.Exceptionjava.lang.String addCausalDependence(java.lang.String uriEntityCause,
java.lang.String opmo_dependenceClass,
java.lang.String uriEntityDest)
throws java.lang.Exception
uriEntityCause - opmo_dependenceClass - uriEntityDest - java.lang.Exceptionjava.lang.String addCausalDependence(java.lang.String uriEntityCause,
java.lang.String uriEntityDest)
throws java.lang.Exception
uriEntityCause - uriEntityDest - java.lang.Exceptionjava.lang.String addAnnotation(java.lang.String uriEntityOrDependence,
java.lang.String owl_prop,
java.lang.String value)
throws java.lang.Exception
uriEntityOrDependence - owl_prop - value - java.lang.Exceptionjava.lang.String[] addAnnotations(java.lang.String uriEntityOrDependence,
AnnotationSet annotations)
throws java.lang.Exception
java.lang.ExceptionAnnotationSet composeAnnotation(java.lang.String owl_prop, java.lang.String value) throws java.lang.Exception
owl_prop - value - java.lang.ExceptionOPMGraph getCurrGraph() throws java.lang.Exception
java.lang.Exception