org.eclipse.rdf4j.model

## Interface Resource

- All Superinterfaces:
    Serializable, Value
  All Known Subinterfaces:
    BNode, IRI, MemResource, NativeResource, Triple, URI
  All Known Implementing Classes:
    AbstractBNode, AbstractIRI, AbstractTriple, BNodeImpl, MemBNode, MemIRI, MemTriple, NativeBNode, NativeIRI, SimpleBNode, SimpleIRI, SimpleTriple, URIImpl

      public interface Resource
      extends Value

  The supertype of all RDF resources (IRIs and blank nodes).

- - ### Method Summary

    All Methods Instance Methods Default Methods
    Modifier and Type | Method and Description
    --- | ---
    `default boolean` | `isResource()` Check if the object is an instance of the given type.

    - ### Methods inherited from interface org.eclipse.rdf4j.model.Value

      `isBNode, isIRI, isLiteral, isTriple, stringValue`

- - ### Method Detail

    - #### isResource

          default boolean isResource()

      Description copied from interface: `Value`
      Check if the object is an instance of the given type. Typically 2x than using instanceof. For implementers: This default implementation is overridden in the repsective sub-interface.
      Specified by:
        `isResource` in interface `Value`
      Returns:
        true if instance of `Resource`

Copyright © 2015-2022 Eclipse Foundation. All Rights Reserved.