public class JcrPropertyStatementListener extends org.apache.jena.rdf.listeners.StatementListener
Constructor and Description |
---|
JcrPropertyStatementListener(IdentifierConverter<org.apache.jena.rdf.model.Resource,FedoraResource> idTranslator,
JcrRdfTools jcrRdfTools,
org.apache.jena.graph.Node topic)
Construct a statement listener within the given session
|
JcrPropertyStatementListener(IdentifierConverter<org.apache.jena.rdf.model.Resource,FedoraResource> idTranslator,
javax.jcr.Session session,
org.apache.jena.graph.Node topic)
Construct a statement listener within the given session
|
Modifier and Type | Method and Description |
---|---|
void |
addedStatement(org.apache.jena.rdf.model.Statement input)
When a statement is added to the graph, serialize it to a JCR property
|
void |
assertNoExceptions()
Assert that no exceptions were thrown while this listener was processing change
|
void |
removedStatement(org.apache.jena.rdf.model.Statement s)
When a statement is removed, remove it from the JCR properties
|
public JcrPropertyStatementListener(IdentifierConverter<org.apache.jena.rdf.model.Resource,FedoraResource> idTranslator, javax.jcr.Session session, org.apache.jena.graph.Node topic)
idTranslator
- the id translatorsession
- the sessiontopic
- the topic of the RDF statementpublic JcrPropertyStatementListener(IdentifierConverter<org.apache.jena.rdf.model.Resource,FedoraResource> idTranslator, JcrRdfTools jcrRdfTools, org.apache.jena.graph.Node topic)
idTranslator
- the id translatorjcrRdfTools
- the jcr rdf toolstopic
- the topic of the RDF statementpublic void addedStatement(org.apache.jena.rdf.model.Statement input)
addedStatement
in interface org.apache.jena.rdf.model.ModelChangedListener
addedStatement
in class org.apache.jena.rdf.listeners.StatementListener
input
- the input statementpublic void removedStatement(org.apache.jena.rdf.model.Statement s)
removedStatement
in interface org.apache.jena.rdf.model.ModelChangedListener
removedStatement
in class org.apache.jena.rdf.listeners.StatementListener
s
- the given statementpublic void assertNoExceptions()
Copyright © 2013–2017 DuraSpace, Inc.. All rights reserved.