jdrew.oo.util
Class SubsumesParser

java.lang.Object
  extended by jdrew.oo.util.SubsumesParser

public class SubsumesParser
extends java.lang.Object

This Class will implement the Subsumes Parser. This allows user to use the POSL syntax subsumes(superClass, subClass) to implement a user defined taxonomy.

Title: OO jDREW

Description: Reasoning Engine for the Semantic Web - Supporting OO RuleML 0.91

Copyright: Copyright (c) 2007

Version:
0.93
Author:
Ben Craig

Constructor Summary
SubsumesParser(java.lang.String parseString)
          This is the constructor for the subsumes parser.
 
Method Summary
 void buildRDFObjects()
          Iterating through all of the subsume objects to create RDF Objects RDF objects contain the the parent class and all of its sub classes.
 void buildSubsumeObjects()
          This method will parse through all the given subsumes relations and create objects for them.
 void buildTypes()
          This method will create the RDFS Types.
 void parseSubsumes()
          This method will parse the given String when the SubsumesParser was created.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubsumesParser

public SubsumesParser(java.lang.String parseString)
This is the constructor for the subsumes parser. All it needs is a string to be parsed.

Parameters:
String - - parseString this is the POSL representation of the type system to be parsed
Method Detail

parseSubsumes

public void parseSubsumes()
                   throws SubException
This method will parse the given String when the SubsumesParser was created.

Throws:
SubException - - a Exception that could occur depending on invalid formatting

buildSubsumeObjects

public void buildSubsumeObjects()
                         throws SubException
This method will parse through all the given subsumes relations and create objects for them. The objects contain a 2 strings one for the super class and one for the sub class.

Throws:
SubException - a Exception that could occur depending on invalid formatting

buildRDFObjects

public void buildRDFObjects()
Iterating through all of the subsume objects to create RDF Objects RDF objects contain the the parent class and all of its sub classes.


buildTypes

public void buildTypes()
This method will create the RDFS Types. Once the RDF Objects have been created all that is left to do is define them in the Type Graph.