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
This listener is not reusable across requests.
|
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.ModelChangedListeneraddedStatement in class org.apache.jena.rdf.listeners.StatementListenerinput - the input statementpublic void removedStatement(org.apache.jena.rdf.model.Statement s)
removedStatement in interface org.apache.jena.rdf.model.ModelChangedListenerremovedStatement in class org.apache.jena.rdf.listeners.StatementListeners - the given statementpublic void assertNoExceptions()
Copyright © 2013–2018 DuraSpace, Inc.. All rights reserved.