Class DependentResourceDeleteJena


  • public class DependentResourceDeleteJena
    extends Object
    This class handles deletion of resources based on the annotation vitro:dependentResourceAnnot. For example, take a graph like: ex:bob ex:hasPositionHistory ex:positionHistory23 . ex:positionHistory23 ex:hasTitle "position 23 was great" . ex:hasPositionHistory vitro.dependentResourceAnnot "true"^^xsd:boolean . When the statement ex:bob ex:hasPositionHistory ex:positioinHisroty23 is deleted, then everything about ex:positionHistory23 should be deleted because ex:hasPositionHistory is a dependent resource property. This will be done recursively.
    Author:
    bdc34
    • Constructor Detail

      • DependentResourceDeleteJena

        public DependentResourceDeleteJena()
    • Method Detail

      • getDependentResourceDeleteList

        public static List<org.apache.jena.rdf.model.Statement> getDependentResourceDeleteList​(org.apache.jena.rdf.model.Statement stmt,
                                                                                               org.apache.jena.rdf.model.Model model)
      • getDependentResourceDeleteList

        public static List<org.apache.jena.rdf.model.Statement> getDependentResourceDeleteList​(org.apache.jena.rdf.model.Resource deleteMe,
                                                                                               org.apache.jena.rdf.model.Model sourceModel)
      • getDependentResourceDeleteForChange

        public static org.apache.jena.rdf.model.Model getDependentResourceDeleteForChange​(org.apache.jena.rdf.model.Model assertions,
                                                                                          org.apache.jena.rdf.model.Model retractions,
                                                                                          org.apache.jena.rdf.model.Model sourceModel)