treebolic.provider.owl
Class OwlParser

java.lang.Object
  extended by treebolic.provider.owl.OwlParser

public class OwlParser
extends java.lang.Object

OWL parser

Author:
Bernard Bou

Field Summary
(package private) static boolean asTree
          As tree
private static java.awt.Image theClassImage
          Class image
private static java.awt.Image theClassWithPropertiesImage
          Class with property image
(package private) static java.awt.Color theDefaultClassBackColor
          Default class color
private static java.awt.Image theFocusImage
          Focus image
private static java.awt.Image thePropertyImage
          Property image
 
Constructor Summary
OwlParser()
           
 
Method Summary
static java.lang.String getName(java.lang.String thisUriString)
          Get name
static Model parseModel(java.lang.String thisUrlString)
          Parse model
static Tree parseTree(java.lang.String thisUrlString)
          Parse tree
static void walkClasses(INode thisParentClassNode, com.hp.hpl.jena.util.iterator.ExtendedIterator theseClasses, java.lang.String thisUrlString)
          Walk classes in iterator
static void walkProperties(INode thisParentNode, com.hp.hpl.jena.util.iterator.ExtendedIterator theseProperties)
          Walk properties in iterator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

asTree

static boolean asTree
As tree


theDefaultClassBackColor

static java.awt.Color theDefaultClassBackColor
Default class color


theFocusImage

private static final java.awt.Image theFocusImage
Focus image


theClassImage

private static final java.awt.Image theClassImage
Class image


theClassWithPropertiesImage

private static final java.awt.Image theClassWithPropertiesImage
Class with property image


thePropertyImage

private static final java.awt.Image thePropertyImage
Property image

Constructor Detail

OwlParser

public OwlParser()
Method Detail

parseModel

public static Model parseModel(java.lang.String thisUrlString)
Parse model

Returns:
model if successful

parseTree

public static Tree parseTree(java.lang.String thisUrlString)
Parse tree

Returns:
tree if successful

walkClasses

public static void walkClasses(INode thisParentClassNode,
                               com.hp.hpl.jena.util.iterator.ExtendedIterator theseClasses,
                               java.lang.String thisUrlString)
Walk classes in iterator

Parameters:
thisParentClassNode - treebolic parent node to attach to
theseClasses - class iterator
thisUrlString - URL string

walkProperties

public static void walkProperties(INode thisParentNode,
                                  com.hp.hpl.jena.util.iterator.ExtendedIterator theseProperties)
Walk properties in iterator

Parameters:
thisParentNode - treebolic parent node to attach to
theseProperties - property iterator

getName

public static java.lang.String getName(java.lang.String thisUriString)
Get name

Parameters:
thisUriString - uri string
Returns:
name