|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjdrew.oo.util.RDFSParser
public class RDFSParser
This class implements a parser for type sorts definitions in RDFS syntax; This allows users to define new types than can be used by the reasoning engine.
Title: OO jDREW
Description: Reasoning Engine for the Semantic Web - Supporting OO RuleML 0.88
Copyright: Copyright (c) 2005
| Constructor Summary | |
|---|---|
RDFSParser()
|
|
| Method Summary | |
|---|---|
static void |
parseRDFS(java.lang.String filename)
Method to parse an RDFS file and load the type information in the RDFS into the engines type sorts. |
static void |
parseRDFSString(java.lang.String contents)
Method that parses an RDFS document contained in a string and load the type information in the RDFS into the engines type sorts. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RDFSParser()
| Method Detail |
|---|
public static void parseRDFS(java.lang.String filename)
throws ParsingException,
ValidityException,
java.io.IOException
filename - String A string containing the complete path to the RDFS
file.
ParsingException - Thrown if there is an error in the RDFS file
that causes parsing to fail.
ValidityException - Thrown if the XML document is not wellformed
or does not conform to the RDFS DTD.
java.io.IOException - Thrown if there is an error reading the file from
disk.
public static void parseRDFSString(java.lang.String contents)
throws ParseException,
ParsingException,
ValidityException,
java.io.IOException
contents - String
ParseException - Thrown if there is an error in the RDFS document
that causes parsing to fail.
ParsingException - Thrown if there is an error parsing at an XML
level.
ValidityException - Thrown if the XML document is not wellformed
or does not conform to the RDFS DTD.
java.io.IOException - Thrown if there is an error reading the string -
this should not occur.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||