Class Skolemize

java.lang.Object
org.aksw.jenax.reprogen.util.Skolemize

public class Skolemize extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.apache.jena.rdf.model.Property
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static List<org.apache.jena.graph.Triple>
    createRawSignature(org.apache.jena.graph.Graph g, org.apache.jena.graph.Node n, Function<? super org.apache.jena.graph.Node,? extends org.apache.jena.graph.Node> nodeTransform)
     
    static String
    createSignature(org.apache.jena.graph.Graph g, org.apache.jena.graph.Node n, Function<? super org.apache.jena.graph.Node,? extends org.apache.jena.graph.Node> nodeTransform)
     
    static void
    skolemize(org.apache.jena.rdf.model.Resource r)
    Skolemizes blank nodes using a two phase approach: First, for each individual blank node a signature string is created from its direct neighbors with blank nodes replaced with a constant.
    static <T extends org.apache.jena.rdf.model.RDFNode>
    T
    skolemize(org.apache.jena.rdf.model.Resource root, String baseIri, Class<T> cls, BiConsumer<org.apache.jena.rdf.model.Resource,Map<org.apache.jena.graph.Node,org.apache.jena.graph.Node>> postProcessor)
     
    static <T extends org.apache.jena.rdf.model.RDFNode>
    T
    skolemize(org.apache.jena.rdf.model.Resource root, org.apache.jena.rdf.model.Model staticModel, String baseIri, Class<T> cls)
     
    static <T extends org.apache.jena.rdf.model.RDFNode>
    T
    skolemize(org.apache.jena.rdf.model.Resource root, org.apache.jena.rdf.model.Model staticModel, String baseIri, Class<T> cls, BiConsumer<org.apache.jena.rdf.model.Resource,Map<org.apache.jena.graph.Node,org.apache.jena.graph.Node>> postProcessor)
    Skolemize the resource root and all relevant reachable resources.
    static void
    skolemize2(org.apache.jena.rdf.model.Resource r)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • skolemId

      public static final org.apache.jena.rdf.model.Property skolemId
  • Constructor Details

    • Skolemize

      public Skolemize()
  • Method Details

    • skolemize2

      public static void skolemize2(org.apache.jena.rdf.model.Resource r)
    • skolemize

      public static void skolemize(org.apache.jena.rdf.model.Resource r)
      Skolemizes blank nodes using a two phase approach: First, for each individual blank node a signature string is created from its direct neighbors with blank nodes replaced with a constant. Finally, computes the signature again, with blank node neighbors replaced by their signature string of the first pass.
      Parameters:
      r -
    • createSignature

      public static String createSignature(org.apache.jena.graph.Graph g, org.apache.jena.graph.Node n, Function<? super org.apache.jena.graph.Node,? extends org.apache.jena.graph.Node> nodeTransform)
    • createRawSignature

      public static List<org.apache.jena.graph.Triple> createRawSignature(org.apache.jena.graph.Graph g, org.apache.jena.graph.Node n, Function<? super org.apache.jena.graph.Node,? extends org.apache.jena.graph.Node> nodeTransform)
    • skolemize

      public static <T extends org.apache.jena.rdf.model.RDFNode> T skolemize(org.apache.jena.rdf.model.Resource root, String baseIri, Class<T> cls, BiConsumer<org.apache.jena.rdf.model.Resource,Map<org.apache.jena.graph.Node,org.apache.jena.graph.Node>> postProcessor)
    • skolemize

      public static <T extends org.apache.jena.rdf.model.RDFNode> T skolemize(org.apache.jena.rdf.model.Resource root, org.apache.jena.rdf.model.Model staticModel, String baseIri, Class<T> cls)
    • skolemize

      public static <T extends org.apache.jena.rdf.model.RDFNode> T skolemize(org.apache.jena.rdf.model.Resource root, org.apache.jena.rdf.model.Model staticModel, String baseIri, Class<T> cls, BiConsumer<org.apache.jena.rdf.model.Resource,Map<org.apache.jena.graph.Node,org.apache.jena.graph.Node>> postProcessor)
      Skolemize the resource root and all relevant reachable resources. The root's model is internally unioned with the staticModel (if non null). Resources that appear in the static model are excluded from renaming. Note, that for the computation of structural hashes, the static model may still need to be traversed even if the traversed resources are excluded from renaming.
      Type Parameters:
      T -
      Parameters:
      root -
      staticModel - Model that will be union'd in but renames will not be applied to it.
      baseIri -
      cls -
      postProcessor -
      Returns: