Package org.aksw.jenax.reprogen.hashid
Class ClassDescriptor
java.lang.Object
org.aksw.jenax.reprogen.hashid.ClassDescriptor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Class<?>protected Set<BiFunction<? super org.apache.jena.rdf.model.Resource,? super HashIdCxt, ? extends com.google.common.hash.HashCode>> protected Set<BiFunction<? super org.apache.jena.rdf.model.Resource,? super HashIdCxt, ? extends String>> A sequence of functions (managed in a LinkedHashSet) that can compute a string id for a given resource and a HashIdCxt.protected Map<org.apache.jena.sparql.path.P_Path0,PropertyDescriptor> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcollectReachableResources(org.apache.jena.rdf.model.Resource node, HashIdCxt cxt) com.google.common.hash.HashCodecomputeHashId(org.apache.jena.rdf.model.Resource node, HashIdCxt cxt) getOrCreatePropertyDescriptor(org.apache.jena.sparql.path.P_Path0 path) registerDirectHashIdProcessor(BiFunction<? super org.apache.jena.rdf.model.Resource, ? super HashIdCxt, ? extends com.google.common.hash.HashCode> processor) registerDirectStringIdProcessor(BiFunction<? super org.apache.jena.rdf.model.Resource, ? super HashIdCxt, ? extends String> processor)
-
Field Details
-
clazz
-
pathToPropertyDescriptor
-
directHashIdProcessors
protected Set<BiFunction<? super org.apache.jena.rdf.model.Resource,? super HashIdCxt, directHashIdProcessors? extends com.google.common.hash.HashCode>> -
directStringIdProcessors
protected Set<BiFunction<? super org.apache.jena.rdf.model.Resource,? super HashIdCxt, directStringIdProcessors? extends String>> 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
-
-
Method Details
-
getOrCreatePropertyDescriptor
-
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
-