Interface RdfQuad

  • All Superinterfaces:
    RdfTerm, RdfTriple
    All Known Implementing Classes:
    Quad

    public interface RdfQuad
    extends RdfTriple
    Represents an immutable N-Quad statement in the RDF data model.

    An N-Quad extends the RDF triple by including an optional graph name, which provides context or scoping for the triple. In contrast to a simple RDF triple, which only consists of a subject, predicate, and object, an N-Quad includes an additional graph name to specify the graph within which the triple belongs.

    • Method Detail

      • graphName

        java.util.Optional<RdfResource> graphName()
        Returns the optional graph name for this N-Quad statement.

        If the N-Quad is part of a named graph, this method returns an Optional containing the graph name. Otherwise, it returns Optional.empty() if no graph name is specified.

        Returns:
        an Optional containing the graph name if present, or Optional.empty() if not set