Class RioUtils

java.lang.Object
org.semanticweb.owlapi.rio.utils.RioUtils

public final class RioUtils extends Object
Utilities for translating between OWLAPI and Sesame Rio.
Since:
4.0.0
Author:
Peter Ansell p_ansell@yahoo.com
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.eclipse.rdf4j.model.Statement
    tripleAsStatement(org.semanticweb.owlapi.io.RDFTriple triple)
    Create a Statement based on the given RDFTriple, with an empty context.
    static Collection<org.eclipse.rdf4j.model.Statement>
    tripleAsStatements(org.semanticweb.owlapi.io.RDFTriple triple, org.eclipse.rdf4j.model.Resource... contexts)
    Create a collection of Statements with the given contexts.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • tripleAsStatement

      @Nullable public static org.eclipse.rdf4j.model.Statement tripleAsStatement(org.semanticweb.owlapi.io.RDFTriple triple)
      Create a Statement based on the given RDFTriple, with an empty context.
      Parameters:
      triple - The OWLAPI RDFTriple to convert.
      Returns:
      An OpenRDF Statement representing the given RDFTriple.
    • tripleAsStatements

      public static Collection<org.eclipse.rdf4j.model.Statement> tripleAsStatements(org.semanticweb.owlapi.io.RDFTriple triple, org.eclipse.rdf4j.model.Resource... contexts)
      Create a collection of Statements with the given contexts.
      Parameters:
      triple - The OWLAPI RDFTriple to convert.
      contexts - If context is not null, it is used to create a context statement
      Returns:
      A collection of OpenRDF Statements representing the given RDFTriple in each of the given contexts.