Class ClassDescriptor

java.lang.Object
org.aksw.jenax.reprogen.hashid.ClassDescriptor

public class ClassDescriptor extends Object
  • Field Details

    • clazz

      protected Class<?> clazz
    • pathToPropertyDescriptor

      protected Map<org.apache.jena.sparql.path.P_Path0,PropertyDescriptor> pathToPropertyDescriptor
    • directHashIdProcessors

      protected Set<BiFunction<? super org.apache.jena.rdf.model.Resource,? super HashIdCxt,? extends com.google.common.hash.HashCode>> directHashIdProcessors
    • directStringIdProcessors

      protected Set<BiFunction<? super org.apache.jena.rdf.model.Resource,? super HashIdCxt,? extends String>> directStringIdProcessors
      A sequence of functions (managed in a LinkedHashSet) that can compute a string id for a given resource and a HashIdCxt. The functions are called in order can read and/or update the mapping in the context.
  • Constructor Details

    • ClassDescriptor

      public ClassDescriptor(Class<?> clazz)
  • Method Details

    • getOrCreatePropertyDescriptor

      public PropertyDescriptor getOrCreatePropertyDescriptor(org.apache.jena.sparql.path.P_Path0 path)
    • getPropertyDescriptors

      public Collection<PropertyDescriptor> getPropertyDescriptors()
    • registerDirectHashIdProcessor

      public ClassDescriptor registerDirectHashIdProcessor(BiFunction<? super org.apache.jena.rdf.model.Resource,? super HashIdCxt,? extends com.google.common.hash.HashCode> processor)
    • registerDirectStringIdProcessor

      public ClassDescriptor registerDirectStringIdProcessor(BiFunction<? super org.apache.jena.rdf.model.Resource,? super HashIdCxt,? extends String> processor)
    • computeHashId

      public com.google.common.hash.HashCode computeHashId(org.apache.jena.rdf.model.Resource node, HashIdCxt cxt)
    • collectReachableResources

      public void collectReachableResources(org.apache.jena.rdf.model.Resource node, HashIdCxt cxt)