http://dassault-aviation.com/jena:applyOperations
service allows to chain a list of update or creation operations in the underlying database in only one transaction.reqSchema
: the schema of the Owl databaseoperations
: the operations, which is an instance of the org.da.protoframework.jena.common.operations.Operations
classorg.da.protoframework.jena.common.operations.AddInstanceOperation
class allows to add an instance. The arguments for the creation are:AddInstanceOperation op = new AddInstanceOperation("PabloPicasso", "NamedIndividual"); operations.addOperation(op);
org.da.protoframework.jena.common.operations.RemoveInstanceOperation
class allows to remove an instance. The arguments for the creation are:RemoveInstanceOperation op = new RemoveInstanceOperation("PabloPicasso", "NamedIndividual"); operations.addOperation(op);
org.da.protoframework.jena.common.operations.AddDataPropertyOperation
class allows to add a data property on an existing instance. The arguments for the creation are:AddDataPropertyOperation op = new AddDataPropertyOperation("pablo", "firstName", "Pablo"); operations.addOperation(op);
org.da.protoframework.jena.common.operations.AddPropertyOperation
class allows to add an object property on an existing instance. The arguments for the creation are:AddPropertyOperation op = new AddPropertyOperation("pablo", "Wife", "jacqueline"); operations.addOperation(op);
org.da.protoframework.jena.common.operations.SetGeoSPARQLGeometryOperation
class allows to set the Geosparql geometry on an existing instance. The arguments for the creation are:AddInstanceOperation op = new AddInstanceOperation("PabloPicasso", "NamedIndividual"); operations.addOperation(op); String bookmark = op.setBookMark("pablo"); AddDataPropertyOperation op = new AddDataPropertyOperation("firstName", "Pablo"); op.useBookmark("pablo"); operations.addOperation(op); AddPropertyOperation op2 = new AddPropertyOperation("Wife", "jacqueline"); op2.useBookmark("pablo"); operations.addOperation(op);
org.da.protoframework.jena.common.operations.SetOwlTimeOperation
class allows to set the owl-time value on an existing instance. The arguments for the creation are:AddInstanceOperation op = new AddInstanceOperation("PabloPicasso", "NamedIndividual"); operations.addOperation(op); String bookmark = op.setBookMark("pablo"); AddDataPropertyOperation op = new AddDataPropertyOperation("firstName", "Pablo"); op.useBookmark("pablo"); operations.addOperation(op); AddPropertyOperation op2 = new AddPropertyOperation("Wife", "jacqueline"); op2.useBookmark("pablo"); operations.addOperation(op);
ObjectMappings
with the following code:ElementsOperations operationsBatch = new ElementsOperations(module, mappings);
Copyright 2017-2020 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence