All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.ginf.helpers.RDFUtil

java.lang.Object
   |
   +----org.ginf.helpers.RDFUtil

public class RDFUtil
extends Object
Some useful utilities.


Constructor Index

 o RDFUtil()

Method Index

 o dumpModel(Model, PrintStream, RDFFactory)
Dumps the model in a serialized form.
 o get1(Model)
Returns the first triple of the model
 o getContainerProperties(Resource, Model)
Collects ordinal properties into a vector
 o getName(String)
Delivers the name out of the URI (without the namespace prefix).
 o getNS(String)
Extracts the namespace prefix out of a URI.
 o getOrd(Resource)
Converts an ordinal property to an integer.
 o getTripleVector(Model)
Collects the triples of a model in a vector.
 o instanceOf(Resource, Resource, Model)
 o isQualified(String)
Tests if the URI is qualified, i.e.
 o isRDF(Resource)
Tests if the resource belongs to the RDF syntax/model namespace.
 o isRDF(String)
Tests if the URI belongs to the RDF syntax/model namespace.
 o noname()
Creates a new unique unnamed resource.
 o ord(int)
Creates an ordinal property (rdf:li, rdf:_N)
 o printTriples(Model, PrintStream)
Prints the triples of a model to the given PrintStream.
 o removeNamespace(String, Model)
Removes all triples which have something to do with the given namespace
 o subPropertyOf(Resource, Resource, Model)

Constructors

 o RDFUtil
 public RDFUtil()

Methods

 o noname
 public static Resource noname()
Creates a new unique unnamed resource.

 o ord
 public static Resource ord(int i)
Creates an ordinal property (rdf:li, rdf:_N)

 o getContainerProperties
 public static Vector getContainerProperties(Resource container,
                                             Model m)
Collects ordinal properties into a vector

 o getOrd
 public static int getOrd(Resource r)
Converts an ordinal property to an integer.

 o isQualified
 public static boolean isQualified(String s)
Tests if the URI is qualified, i.e. has a namespace prefix.

 o getNS
 public static String getNS(String uri)
Extracts the namespace prefix out of a URI.

 o getName
 public static String getName(String uri)
Delivers the name out of the URI (without the namespace prefix).

 o isRDF
 public static boolean isRDF(String uri)
Tests if the URI belongs to the RDF syntax/model namespace.

 o isRDF
 public static boolean isRDF(Resource r)
Tests if the resource belongs to the RDF syntax/model namespace.

 o instanceOf
 public static boolean instanceOf(Resource r,
                                  Resource cls,
                                  Model model)
 o subPropertyOf
 public static boolean subPropertyOf(Resource r,
                                     Resource cls,
                                     Model model)
 o get1
 public static Triple get1(Model m)
Returns the first triple of the model

 o printTriples
 public static void printTriples(Model m,
                                 PrintStream ps)
Prints the triples of a model to the given PrintStream.

 o dumpModel
 public static void dumpModel(Model m,
                              PrintStream ps,
                              RDFFactory f) throws Exception
Dumps the model in a serialized form.

 o getTripleVector
 public static Vector getTripleVector(Model m)
Collects the triples of a model in a vector.

 o removeNamespace
 public static Model removeNamespace(String ns,
                                     Model m)
Removes all triples which have something to do with the given namespace


All Packages  Class Hierarchy  This Package  Previous  Next  Index