Class ModelUtils

java.lang.Object
org.aksw.jenax.arq.util.triple.ModelUtils

public class ModelUtils extends Object
Author:
Claus Stadler
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Iterator<org.apache.jena.graph.Node>
    iterateNodes(org.apache.jena.rdf.model.Model model)
     
    static org.apache.jena.rdf.model.Model
    optimizePrefixes(org.apache.jena.rdf.model.Model model)
    Remove all unused prefixes form the given model's prefix mapping.
    static Stream<org.apache.jena.graph.Node>
    streamNodes(org.apache.jena.rdf.model.Model model)
     
    static String
    toString(org.apache.jena.rdf.model.Model model, org.apache.jena.riot.RDFFormat rdfFormat)
     
    static org.apache.jena.rdf.model.Model
    union(org.apache.jena.rdf.model.Model... models)
    Create a union model of all unique non-null arguments

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ModelUtils

      public ModelUtils()
  • Method Details

    • union

      public static org.apache.jena.rdf.model.Model union(org.apache.jena.rdf.model.Model... models)
      Create a union model of all unique non-null arguments
    • streamNodes

      public static Stream<org.apache.jena.graph.Node> streamNodes(org.apache.jena.rdf.model.Model model)
    • iterateNodes

      public static Iterator<org.apache.jena.graph.Node> iterateNodes(org.apache.jena.rdf.model.Model model)
    • optimizePrefixes

      public static org.apache.jena.rdf.model.Model optimizePrefixes(org.apache.jena.rdf.model.Model model)
      Remove all unused prefixes form the given model's prefix mapping. Assumes that the model delegates to the prefix mapping of an underlying Graph.
      Parameters:
      graph - The model whose prefix mapping to optimize
      Returns:
      The given model
    • toString

      public static String toString(org.apache.jena.rdf.model.Model model, org.apache.jena.riot.RDFFormat rdfFormat)