Class TurtleLoader


  • public final class TurtleLoader
    extends Object
    • Method Detail

      • loadTurtle

        public static io.vavr.control.Try<org.apache.jena.rdf.model.Model> loadTurtle​(@Nullable
                                                                                      InputStream inputStream)
        Loads a Turtle model from an input stream
        Parameters:
        inputStream - The input stream
        Returns:
        The model on success, a corresponding exception otherwise
      • openUrl

        public static InputStream openUrl​(URL url)
        Opens an URL and returns its InputStream, but does not throw a checked exception.
        Parameters:
        url - The URL to open
        Returns:
        The InputStream on success
        Throws:
        IllegalArgumentException - if an IOException occurs