## Uses of Class
org.eclipse.rdf4j.model.util.ModelException

- Packages that use ModelException
  Package | Description
  --- | ---
  org.eclipse.rdf4j.model | RDF Model API
  org.eclipse.rdf4j.model.util |

- - ### Uses of ModelException in org.eclipse.rdf4j.model

    Methods in org.eclipse.rdf4j.model that throw ModelException
    Modifier and Type | Method and Description
    --- | ---
    `default Optional<IRI>` | Model.`objectIRI()` Deprecated. since 2.0. Instead, use `Models#objectURI(Model)` to retrieve an object URI value, and/or use the size of the set returned by `Model.objects()` to verify if the object is unique.
    `default Optional<Literal>` | Model.`objectLiteral()` Deprecated. since 2.0. Instead, use `Models.objectLiteral(Model)` to retrieve an object Literal value, and/or use the size of the set returned by `Model.objects()` to verify if the object is unique.
    `default Optional<Resource>` | Model.`objectResource()` Deprecated. since 2.0. Instead, use `Models.objectResource(Model)` to retrieve an object Resource value, and/or use the size of the set returned by `Model.objects()` to verify if the object is unique.
    `default Optional<String>` | Model.`objectString()` Deprecated. since 2.0. Instead, use `Models.objectString(Model)` to retrieve an object string value, and/or use the size of the set returned by `Model.objects()` to verify if the object is unique.
    `default Optional<IRI>` | Model.`objectURI()` Deprecated. use `Model.objectIRI()` instead.
    `default Optional<Value>` | Model.`objectValue()` Deprecated. since 2.0. Instead, use `Models.object(Model)` to retrieve an object value, and/or use the size of the set returned by `Model.objects()` to verify if the object is unique.
    `default Optional<BNode>` | Model.`subjectBNode()` Deprecated. since 2.0. Instead, use `Models.subjectBNode(Model)` to retrieve a subject BNode, and/or use the size of the set returned by `Model.subjects()` to verify if the subject is unique.
    `default Optional<IRI>` | Model.`subjectIRI()` Deprecated. since 2.0. Instead, use `Models#subjectURI(Model)` to retrieve a subject URI, and/or use the size of the set returned by `Model.subjects()` to verify if the subject is unique.
    `default Optional<Resource>` | Model.`subjectResource()` Deprecated. since 2.0. Instead, use `Models.subject(Model)` to retrieve a subject Resource, and/or use the size of the set returned by `Model.subjects()` to verify if the subject is unique.
    `default Optional<IRI>` | Model.`subjectURI()` Deprecated. use `Model.subjectIRI()` instead.

  - ### Uses of ModelException in org.eclipse.rdf4j.model.util

    Methods in org.eclipse.rdf4j.model.util that return types with arguments of type ModelException
    Modifier and Type | Method and Description
    --- | ---
    `static java.util.function.Supplier<ModelException>` | Models.`modelException(String message)` Creates a `Supplier` of `ModelException` objects that be passed to `Optional.orElseThrow(Supplier)` to generate exceptions as necessary.

    Methods in org.eclipse.rdf4j.model.util that throw ModelException
    Modifier and Type | Method and Description
    --- | ---
    `static <C extends Collection<Value>> C` | RDFCollections.`asValues(Model m, Resource head, C collection, Resource... contexts)` Converts an RDF Collection to a Java `Collection` of `Value` objects.
    `static void` | RDFCollections.`consumeValues(Model m, Resource head, java.util.function.Consumer<Value> consumer, Resource... contexts)` Reads an RDF Collection starting with the supplied list head from the supplied `Model` and sends each collection member `Value` to the supplied `Consumer` function.

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