Interface TriplePattern

    • Method Detail

      • andHas

        default TriplePattern andHas​(RdfPredicate predicate,
                                     RdfObject... objects)
        Add predicate-object lists describing this triple pattern's subject
        Parameters:
        predicate - the predicate to use to describe this triple pattern's subject
        objects - the corresponding object(s)
        Returns:
        this triple pattern
      • andHas

        default TriplePattern andHas​(IRI predicate,
                                     RdfObject... objects)
        Add predicate-object lists describing this triple pattern's subject
        Parameters:
        predicate - the predicate to use to describe this triple pattern's subject
        objects - the corresponding object(s)
        Returns:
        this triple pattern
      • andHas

        default TriplePattern andHas​(RdfPredicate predicate,
                                     Value... objects)
        Convenience version of andHas(RdfPredicate, RdfObject...) that takes Values and converts them to StringLiterals
        Parameters:
        predicate - the predicate to use to describe this triple pattern's subject
        objects - the corresponding object(s)
        Returns:
        this triple pattern
      • andHas

        default TriplePattern andHas​(RdfPredicate predicate,
                                     java.lang.String... objects)
        Convenience version of andHas(RdfPredicate, RdfObject...) that takes Strings and converts them to StringLiterals
        Parameters:
        predicate - the predicate to use to describe this triple pattern's subject
        objects - the corresponding object(s)
        Returns:
        this triple pattern
      • andHas

        default TriplePattern andHas​(IRI predicate,
                                     java.lang.String... objects)
        Convenience version of andHas(RdfPredicate, RdfObject...) that takes Strings and converts them to StringLiterals
        Parameters:
        predicate - the predicate to use to describe this triple pattern's subject
        objects - the corresponding object(s)
        Returns:
        this triple pattern
      • andHas

        default TriplePattern andHas​(RdfPredicate predicate,
                                     java.lang.Boolean... objects)
        Convenience version of andHas(RdfPredicate, RdfObject...) that takes Boolean and converts them to BooleanLiterals
        Parameters:
        predicate - the predicate to use to describe this triple pattern's subject
        objects - the corresponding object(s)
        Returns:
        this triple pattern
      • andHas

        default TriplePattern andHas​(IRI predicate,
                                     java.lang.Boolean... objects)
        Convenience version of andHas(RdfPredicate, RdfObject...) that takes Boolean and converts them to BooleanLiterals
        Parameters:
        predicate - the predicate to use to describe this triple pattern's subject
        objects - the corresponding object(s)
        Returns:
        this triple pattern
      • andHas

        default TriplePattern andHas​(RdfPredicate predicate,
                                     java.lang.Number... objects)
        Convenience version of andHas(RdfPredicate, RdfObject...) that takes Numbers and converts them to NumberLiterals
        Parameters:
        predicate - the predicate to use to describe this triple pattern's subject
        objects - the corresponding object(s)
        Returns:
        this triple pattern
      • andHas

        default TriplePattern andHas​(IRI predicate,
                                     java.lang.Number... objects)
        Convenience version of andHas(RdfPredicate, RdfObject...) that takes Numbers and converts them to NumberLiterals
        Parameters:
        predicate - the predicate to use to describe this triple pattern's subject
        objects - the corresponding object(s)
        Returns:
        this triple pattern
      • andHas

        default TriplePattern andHas​(java.util.function.Consumer<EmptyPropertyPathBuilder> propertyPathConfigurer,
                                     RdfObject... objects)
        Add a property path with an object list describing this triple pattern's subject
        Parameters:
        propertyPathConfigurer - an object accepting an EmptyPropertyPathBuilder that configures it as needed
        objects - the corresponding object(s)
        Returns:
        this triple pattern
      • andIsA

        default TriplePattern andIsA​(RdfObject object)
        Use the built-in RDF shortcut a for rdf:type to specify the subject's type
        Parameters:
        object - the object describing this triple pattern's subject's rdf:type
        Returns:
        this triple pattern
        See Also:
        RDF Type abbreviation
      • isEmpty

        default boolean isEmpty()
        Specified by:
        isEmpty in interface GraphPattern
        Returns:
        if this pattern is a collection of GraphPatterns (ie., Group or Alternative patterns), returns if the collection contains any patterns