Class HistoryRepositories
java.lang.Object
it.uniroma2.art.semanticturkey.changetracking.model.HistoryRepositories
Utility class encapsulating common operations with connections to history repositories.
- Author:
- Manuel Fiorelli
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.eclipse.rdf4j.model.Statement
cloneStatement
(org.eclipse.rdf4j.model.Statement stmt, org.eclipse.rdf4j.model.ValueFactory vf, Map<org.eclipse.rdf4j.model.BNode, org.eclipse.rdf4j.model.BNode> bnodeRewriting) static org.eclipse.rdf4j.model.BNode
cloneValue
(org.eclipse.rdf4j.model.BNode input, org.eclipse.rdf4j.model.ValueFactory vf, Map<org.eclipse.rdf4j.model.BNode, org.eclipse.rdf4j.model.BNode> bnodeRewriting) static org.eclipse.rdf4j.model.IRI
cloneValue
(org.eclipse.rdf4j.model.IRI input, org.eclipse.rdf4j.model.ValueFactory vf, Map<org.eclipse.rdf4j.model.BNode, org.eclipse.rdf4j.model.BNode> bnodeRewriting) static org.eclipse.rdf4j.model.Literal
cloneValue
(org.eclipse.rdf4j.model.Literal input, org.eclipse.rdf4j.model.ValueFactory vf, Map<org.eclipse.rdf4j.model.BNode, org.eclipse.rdf4j.model.BNode> bnodeRewriting) static org.eclipse.rdf4j.model.Resource
cloneValue
(org.eclipse.rdf4j.model.Resource input, org.eclipse.rdf4j.model.ValueFactory vf, Map<org.eclipse.rdf4j.model.BNode, org.eclipse.rdf4j.model.BNode> bnodeRewriting) static org.eclipse.rdf4j.model.Value
cloneValue
(org.eclipse.rdf4j.model.Value input, org.eclipse.rdf4j.model.ValueFactory vf, Map<org.eclipse.rdf4j.model.BNode, org.eclipse.rdf4j.model.BNode> bnodeRewriting) static org.eclipse.rdf4j.query.QueryResult<org.eclipse.rdf4j.model.Statement>
getAddedStaments
(org.eclipse.rdf4j.repository.RepositoryConnection conn, org.eclipse.rdf4j.model.Resource commit, org.eclipse.rdf4j.model.IRI historyGraph) Returns the statements additions associated with a commitstatic org.eclipse.rdf4j.model.Model
getCommitUserMetadata
(org.eclipse.rdf4j.repository.RepositoryConnection supportRepoConn, org.eclipse.rdf4j.model.IRI commit, org.eclipse.rdf4j.model.IRI graph, boolean rewriteCommit) static Optional<org.eclipse.rdf4j.model.Resource>
getParent
(org.eclipse.rdf4j.repository.RepositoryConnection conn, org.eclipse.rdf4j.model.Resource commit, org.eclipse.rdf4j.model.IRI historyGraph) static org.eclipse.rdf4j.query.QueryResult<org.eclipse.rdf4j.model.Statement>
getRemovedStaments
(org.eclipse.rdf4j.repository.RepositoryConnection conn, org.eclipse.rdf4j.model.Resource commit, org.eclipse.rdf4j.model.IRI historyGraph) Returns the statements removals associated with a commitstatic Optional<org.eclipse.rdf4j.model.Resource>
getTip
(org.eclipse.rdf4j.repository.RepositoryConnection conn, org.eclipse.rdf4j.model.IRI historyGraph) Return the tips of the MASTER branch in the connected history repository.
-
Constructor Details
-
HistoryRepositories
public HistoryRepositories()
-
-
Method Details
-
getTip
public static Optional<org.eclipse.rdf4j.model.Resource> getTip(org.eclipse.rdf4j.repository.RepositoryConnection conn, org.eclipse.rdf4j.model.IRI historyGraph) throws IllegalStateException, org.eclipse.rdf4j.common.exception.RDF4JException Return the tips of the MASTER branch in the connected history repository. This method throws an IllegalStateException, if more than one tip is found for MASTER.- Parameters:
conn
-historyGraph
-- Returns:
- Throws:
IllegalStateException
org.eclipse.rdf4j.common.exception.RDF4JException
-
getAddedStaments
public static org.eclipse.rdf4j.query.QueryResult<org.eclipse.rdf4j.model.Statement> getAddedStaments(org.eclipse.rdf4j.repository.RepositoryConnection conn, org.eclipse.rdf4j.model.Resource commit, org.eclipse.rdf4j.model.IRI historyGraph) Returns the statements additions associated with a commit- Parameters:
conn
-commit
-historyGraph
-- Returns:
-
getRemovedStaments
public static org.eclipse.rdf4j.query.QueryResult<org.eclipse.rdf4j.model.Statement> getRemovedStaments(org.eclipse.rdf4j.repository.RepositoryConnection conn, org.eclipse.rdf4j.model.Resource commit, org.eclipse.rdf4j.model.IRI historyGraph) Returns the statements removals associated with a commit- Parameters:
conn
-commit
-historyGraph
-- Returns:
-
getParent
public static Optional<org.eclipse.rdf4j.model.Resource> getParent(org.eclipse.rdf4j.repository.RepositoryConnection conn, org.eclipse.rdf4j.model.Resource commit, org.eclipse.rdf4j.model.IRI historyGraph) -
getCommitUserMetadata
public static org.eclipse.rdf4j.model.Model getCommitUserMetadata(org.eclipse.rdf4j.repository.RepositoryConnection supportRepoConn, org.eclipse.rdf4j.model.IRI commit, org.eclipse.rdf4j.model.IRI graph, boolean rewriteCommit) -
cloneValue
public static org.eclipse.rdf4j.model.IRI cloneValue(org.eclipse.rdf4j.model.IRI input, org.eclipse.rdf4j.model.ValueFactory vf, Map<org.eclipse.rdf4j.model.BNode, org.eclipse.rdf4j.model.BNode> bnodeRewriting) -
cloneValue
public static org.eclipse.rdf4j.model.BNode cloneValue(org.eclipse.rdf4j.model.BNode input, org.eclipse.rdf4j.model.ValueFactory vf, Map<org.eclipse.rdf4j.model.BNode, org.eclipse.rdf4j.model.BNode> bnodeRewriting) -
cloneValue
public static org.eclipse.rdf4j.model.Resource cloneValue(org.eclipse.rdf4j.model.Resource input, org.eclipse.rdf4j.model.ValueFactory vf, Map<org.eclipse.rdf4j.model.BNode, org.eclipse.rdf4j.model.BNode> bnodeRewriting) -
cloneValue
public static org.eclipse.rdf4j.model.Literal cloneValue(org.eclipse.rdf4j.model.Literal input, org.eclipse.rdf4j.model.ValueFactory vf, Map<org.eclipse.rdf4j.model.BNode, org.eclipse.rdf4j.model.BNode> bnodeRewriting) -
cloneValue
public static org.eclipse.rdf4j.model.Value cloneValue(org.eclipse.rdf4j.model.Value input, org.eclipse.rdf4j.model.ValueFactory vf, Map<org.eclipse.rdf4j.model.BNode, org.eclipse.rdf4j.model.BNode> bnodeRewriting) -
cloneStatement
public static org.eclipse.rdf4j.model.Statement cloneStatement(org.eclipse.rdf4j.model.Statement stmt, org.eclipse.rdf4j.model.ValueFactory vf, Map<org.eclipse.rdf4j.model.BNode, org.eclipse.rdf4j.model.BNode> bnodeRewriting)
-