Class TripleCount

  • All Implemented Interfaces:
    org.metafacture.framework.LifeCycle, org.metafacture.framework.ObjectPipe<org.metafacture.framework.objects.Triple,​org.metafacture.framework.ObjectReceiver<org.metafacture.framework.objects.Triple>>, org.metafacture.framework.ObjectReceiver<org.metafacture.framework.objects.Triple>, org.metafacture.framework.Receiver, org.metafacture.framework.Sender<org.metafacture.framework.ObjectReceiver<org.metafacture.framework.objects.Triple>>

    @Description("Counts triples")
    @In(org.metafacture.framework.objects.Triple.class)
    @Out(org.metafacture.framework.objects.Triple.class)
    @FluxCommand("count-triples")
    public final class TripleCount
    extends AbstractTripleSort
    Counts triples.
    • Field Detail

      • DEFAULT_COUNT_PREDICATE

        public static final java.lang.String DEFAULT_COUNT_PREDICATE
        See Also:
        Constant Field Values
      • DEFAULT_COUNTP_REDICATE

        @Deprecated
        public static final java.lang.String DEFAULT_COUNTP_REDICATE
        Deprecated.
        See Also:
        Constant Field Values
    • Constructor Detail

      • TripleCount

        public TripleCount()
        Creates an instance of TripleCount.
    • Method Detail

      • sortedTriple

        protected void sortedTriple​(org.metafacture.framework.objects.Triple triple)
        Specified by:
        sortedTriple in class AbstractTripleSort
      • setCountPredicate

        public void setCountPredicate​(java.lang.String countPredicate)
        Flags whether predicates should be counted.
        Parameters:
        countPredicate - true if predicates should be counted