Package org.semanticweb.owlapi.rio.utils
Class RioUtils
java.lang.Object
org.semanticweb.owlapi.rio.utils.RioUtils
Utilities for translating between OWLAPI and Sesame Rio.
- Since:
- 4.0.0
- Author:
- Peter Ansell p_ansell@yahoo.com
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.eclipse.rdf4j.model.StatementtripleAsStatement(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.
-
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 OWLAPIRDFTripleto convert.- Returns:
- An OpenRDF
Statementrepresenting 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 OWLAPIRDFTripleto 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.
-