Class AbstractDataPropertyStatementAction
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.auth.requestedAction.AuthorizationRequest
-
- edu.cornell.mannlib.vitro.webapp.auth.requestedAction.RequestedAction
-
- edu.cornell.mannlib.vitro.webapp.auth.requestedAction.propstmt.AbstractPropertyStatementAction
-
- edu.cornell.mannlib.vitro.webapp.auth.requestedAction.propstmt.AbstractDataPropertyStatementAction
-
- Direct Known Subclasses:
AddDataPropertyStatement,DropDataPropertyStatement,EditDataPropertyStatement,PublishDataPropertyStatement
public abstract class AbstractDataPropertyStatementAction extends AbstractPropertyStatementAction
A base class for requested actions that involve adding, editing, or dropping data property statements from a model.
-
-
Field Summary
-
Fields inherited from class edu.cornell.mannlib.vitro.webapp.auth.requestedAction.RequestedAction
ACTION_NAMESPACE, SOME_LITERAL, SOME_PREDICATE, SOME_URI
-
Fields inherited from class edu.cornell.mannlib.vitro.webapp.auth.requestedAction.AuthorizationRequest
AUTHORIZED, UNAUTHORIZED
-
-
Constructor Summary
Constructors Constructor Description AbstractDataPropertyStatementAction(org.apache.jena.ontology.OntModel ontModel, DataPropertyStatement dps)AbstractDataPropertyStatementAction(org.apache.jena.ontology.OntModel ontModel, String subjectUri, String predicateUri, String dataValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringdataValue()PropertygetPredicate()StringgetPredicateUri()String[]getResourceUris()Get the URI of the Resources that are involved in this statement.StringgetSubjectUri()StringtoString()-
Methods inherited from class edu.cornell.mannlib.vitro.webapp.auth.requestedAction.propstmt.AbstractPropertyStatementAction
getOntModel
-
Methods inherited from class edu.cornell.mannlib.vitro.webapp.auth.requestedAction.RequestedAction
getURI, isAuthorized
-
Methods inherited from class edu.cornell.mannlib.vitro.webapp.auth.requestedAction.AuthorizationRequest
and, andAll, andAll, or
-
-
-
-
Constructor Detail
-
AbstractDataPropertyStatementAction
public AbstractDataPropertyStatementAction(org.apache.jena.ontology.OntModel ontModel, String subjectUri, String predicateUri, String dataValue)
-
AbstractDataPropertyStatementAction
public AbstractDataPropertyStatementAction(org.apache.jena.ontology.OntModel ontModel, DataPropertyStatement dps)
-
-
Method Detail
-
getSubjectUri
public String getSubjectUri()
-
getPredicate
public Property getPredicate()
- Specified by:
getPredicatein classAbstractPropertyStatementAction
-
getPredicateUri
public String getPredicateUri()
- Specified by:
getPredicateUriin classAbstractPropertyStatementAction
-
getResourceUris
public String[] getResourceUris()
Description copied from class:AbstractPropertyStatementActionGet the URI of the Resources that are involved in this statement. Those are the Subject, and the Object if this is an ObjectProperty request.- Specified by:
getResourceUrisin classAbstractPropertyStatementAction
-
dataValue
public String dataValue()
-
toString
public String toString()
- Overrides:
toStringin classRequestedAction
-
-