Package com.apicatalog.rdf.model
Interface RdfQuad
-
- 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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Optional<RdfResource>graphName()Returns the optional graph name for this N-Quad statement.-
Methods inherited from interface com.apicatalog.rdf.model.RdfTerm
asLiteral, asResource, equals, hashCode, isLiteral, isResource, toString
-
-
-
-
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
Optionalcontaining the graph name. Otherwise, it returnsOptional.empty()if no graph name is specified.- Returns:
- an
Optionalcontaining the graph name if present, orOptional.empty()if not set
-
-