org.fenfire.loom
Class ModelUtil

java.lang.Object
  |
  +--org.fenfire.loom.ModelUtil

public class ModelUtil
extends java.lang.Object

Utility methods for RDF models.


Constructor Summary
ModelUtil()
           
 
Method Summary
static java.util.Set getClasses(Model m)
          Get the classes used in an RDF model.
static java.util.Set getNonNumericProperties(Model m)
           
static java.util.Set getProperties(Model m)
          Get the set of all properties of all statements in a model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelUtil

public ModelUtil()
Method Detail

getClasses

public static java.util.Set getClasses(Model m)
                                throws RDFException
Get the classes used in an RDF model. A resource is considered a class if it is the object of an rdf:type triple.

RDFException

getProperties

public static java.util.Set getProperties(Model m)
                                   throws RDFException
Get the set of all properties of all statements in a model.

RDFException

getNonNumericProperties

public static java.util.Set getNonNumericProperties(Model m)
                                             throws RDFException
RDFException