Package no.hasmac.rdf

Interface RdfResource

  • All Superinterfaces:
    RdfValue
    All Known Implementing Classes:
    RdfResourceImpl

    public interface RdfResource
    extends RdfValue
    An immutable RDF statement's value. Represents an absolute IRI or blank node identifier.
    • Method Detail

      • isLiteral

        default boolean isLiteral()
        Description copied from interface: RdfValue
        Indicates if the value type is RDF literal.
        Specified by:
        isLiteral in interface RdfValue
        Returns:
        true if the value type is literal, false otherwise.
      • asLiteral

        default RdfLiteral asLiteral()
        Description copied from interface: RdfValue
        Return the RdfValue as a RdfLiteral
        Specified by:
        asLiteral in interface RdfValue
        Returns:
        the RdfValue as a RdfLiteral