public class ProcessRdfForm extends Object
| Constructor and Description |
|---|
ProcessRdfForm(EditConfigurationVTwo config,
NewURIMaker newURIMaker)
Construct the ProcessRdfForm object.
|
| Modifier and Type | Method and Description |
|---|---|
static AdditionsAndRetractions |
addDependentDeletes(AdditionsAndRetractions changes,
org.apache.jena.rdf.model.Model queryModel) |
static void |
applyChangesToWriteModel(AdditionsAndRetractions changes,
org.apache.jena.rdf.model.Model queryModel,
org.apache.jena.rdf.model.Model writeModel,
String editorUri) |
protected AdditionsAndRetractions |
editExistingStatements(EditConfigurationVTwo editConfig,
MultiValueEditSubmission submission,
VitroRequest vreq)
Process an EditConfiguration to edit a set of existing statements.
|
protected static AdditionsAndRetractions |
getMinimalChanges(AdditionsAndRetractions changes) |
protected void |
logSubstitue(String msg,
List<String> requiredAsserts,
List<String> optionalAsserts,
List<String> requiredRetracts,
List<String> optionalRetracts) |
protected AdditionsAndRetractions |
parseN3ToChange(List<String> requiredAdds,
List<String> optionalAdds,
List<String> requiredDels,
List<String> optionalDels,
VitroRequest vreq,
EditConfigurationVTwo editConfig) |
protected static List<org.apache.jena.rdf.model.Model> |
parseN3ToRDF(List<String> n3Strings,
edu.cornell.mannlib.vitro.webapp.edit.n3editing.VTwo.ProcessRdfForm.N3ParseType parseType)
Parse the n3Strings to a List of RDF Model objects.
|
protected static List<org.apache.jena.rdf.model.Model> |
parseN3ToRDF(List<String> n3Strings,
edu.cornell.mannlib.vitro.webapp.edit.n3editing.VTwo.ProcessRdfForm.N3ParseType parseType,
String linguisticContext)
Parse the n3Strings to a List of RDF Model objects.
|
AdditionsAndRetractions |
process(EditConfigurationVTwo configuration,
MultiValueEditSubmission submission,
VitroRequest vreq)
This detects if this is an edit of an existing statement or an edit
to create a new statement or set of statements.
|
protected void |
subInValuesToN3(EditConfigurationVTwo editConfig,
MultiValueEditSubmission submission,
List<String> requiredAsserts,
List<String> optionalAsserts,
List<String> requiredRetracts,
List<String> optionalRetracts,
VitroRequest vreq) |
protected void |
substituteInSubPredObjURIs(EditConfigurationVTwo configuration,
List<String>... n3StrLists) |
Map<String,String> |
URIsForNewRsources(EditConfigurationVTwo configuration,
NewURIMaker newURIMaker) |
public ProcessRdfForm(EditConfigurationVTwo config, NewURIMaker newURIMaker)
public AdditionsAndRetractions process(EditConfigurationVTwo configuration, MultiValueEditSubmission submission, VitroRequest vreq) throws Exception
Exception - May throw an exception if Required N3 does not
parse correctly.protected void substituteInSubPredObjURIs(EditConfigurationVTwo configuration, List<String>... n3StrLists)
protected AdditionsAndRetractions editExistingStatements(EditConfigurationVTwo editConfig, MultiValueEditSubmission submission, VitroRequest vreq) throws Exception
vreq - For getting linguistic contextExceptionprotected void subInValuesToN3(EditConfigurationVTwo editConfig, MultiValueEditSubmission submission, List<String> requiredAsserts, List<String> optionalAsserts, List<String> requiredRetracts, List<String> optionalRetracts, VitroRequest vreq) throws InsertException
InsertExceptionpublic static AdditionsAndRetractions addDependentDeletes(AdditionsAndRetractions changes, org.apache.jena.rdf.model.Model queryModel)
public static void applyChangesToWriteModel(AdditionsAndRetractions changes, org.apache.jena.rdf.model.Model queryModel, org.apache.jena.rdf.model.Model writeModel, String editorUri)
protected AdditionsAndRetractions parseN3ToChange(List<String> requiredAdds, List<String> optionalAdds, List<String> requiredDels, List<String> optionalDels, VitroRequest vreq, EditConfigurationVTwo editConfig) throws Exception
Exceptionprotected static List<org.apache.jena.rdf.model.Model> parseN3ToRDF(List<String> n3Strings, edu.cornell.mannlib.vitro.webapp.edit.n3editing.VTwo.ProcessRdfForm.N3ParseType parseType, String linguisticContext) throws Exception
n3Strings - N3 Strings to parseparseType - if OPTIONAL, then don't throw exceptions on errorslinguisticContext - For Literals, Making parse only if the literal linguisticContext are same than linguisticContext parameter //UQAM
If REQUIRED, then throw exceptions on errors.Exceptionprotected static List<org.apache.jena.rdf.model.Model> parseN3ToRDF(List<String> n3Strings, edu.cornell.mannlib.vitro.webapp.edit.n3editing.VTwo.ProcessRdfForm.N3ParseType parseType) throws Exception
n3Strings - N3 Strings to parseparseType - if OPTIONAL, then don't throw exceptions on errors
If REQUIRED, then throw exceptions on errors.Exceptionprotected void logSubstitue(String msg, List<String> requiredAsserts, List<String> optionalAsserts, List<String> requiredRetracts, List<String> optionalRetracts)
protected static AdditionsAndRetractions getMinimalChanges(AdditionsAndRetractions changes)
public Map<String,String> URIsForNewRsources(EditConfigurationVTwo configuration, NewURIMaker newURIMaker) throws InsertException
InsertExceptionCopyright © 2021. All rights reserved.