org.deri.wsmo4j.io.parser.rdf
Class RDFExprParser

java.lang.Object
  extended by org.deri.wsmo4j.io.parser.rdf.RDFExprParser

public class RDFExprParser
extends Object

Transformation from native rdf to wsml.

  Created on May 02, 2006
  Committed by $Author: nathaliest $
  $Source$
 

Version:
$Revision: 2644 $ $Date: 2008-08-08 02:20:48 +0300 (Fri, 08 Aug 2008) $
Author:
nathalie.steinmetz@deri.org
See Also:
RDFParserImpl

Field Summary
static String CONSTRAINING_ATTR
           
static String CONSTRAINING_REL_1
           
static String CONSTRAINING_REL_2
           
static String REFLEXIVE_ATTR
           
static String SYMMETRIC_ATTR
           
static String TRANSITIVE_ATTR
           
static String WSML_AXIOM
           
static String WSML_INVERSE_ATTR
           
static String WSML_ONTOLOGY_ID
           
 
Constructor Summary
RDFExprParser(org.wsmo.factory.WsmoFactory factory, org.wsmo.factory.LogicalExpressionFactory leFactory, org.wsmo.factory.DataFactory dataFactory, String properties, String labels, RDFParseErrorListener errorListener)
           
 
Method Summary
 org.omwg.ontology.Ontology getOntology()
          This method returns the ontology that results from transforming the rdf statements to a wsmo object model.
 void rdf2Wsml(org.openrdf.model.Graph graph, Map namespaces)
          This method takes an rdf graph as input and checks through all the statements, to transform the rdf input into wsmo objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WSML_AXIOM

public static final String WSML_AXIOM
See Also:
Constant Field Values

CONSTRAINING_ATTR

public static final String CONSTRAINING_ATTR
See Also:
Constant Field Values

TRANSITIVE_ATTR

public static final String TRANSITIVE_ATTR
See Also:
Constant Field Values

REFLEXIVE_ATTR

public static final String REFLEXIVE_ATTR
See Also:
Constant Field Values

SYMMETRIC_ATTR

public static final String SYMMETRIC_ATTR
See Also:
Constant Field Values

CONSTRAINING_REL_1

public static final String CONSTRAINING_REL_1
See Also:
Constant Field Values

CONSTRAINING_REL_2

public static final String CONSTRAINING_REL_2
See Also:
Constant Field Values

WSML_INVERSE_ATTR

public static final String WSML_INVERSE_ATTR
See Also:
Constant Field Values

WSML_ONTOLOGY_ID

public static final String WSML_ONTOLOGY_ID
See Also:
Constant Field Values
Constructor Detail

RDFExprParser

public RDFExprParser(org.wsmo.factory.WsmoFactory factory,
                     org.wsmo.factory.LogicalExpressionFactory leFactory,
                     org.wsmo.factory.DataFactory dataFactory,
                     String properties,
                     String labels,
                     RDFParseErrorListener errorListener)
Method Detail

rdf2Wsml

public void rdf2Wsml(org.openrdf.model.Graph graph,
                     Map namespaces)
              throws org.openrdf.model.GraphException,
                     org.wsmo.common.exception.SynchronisationException,
                     org.wsmo.common.exception.InvalidModelException,
                     org.wsmo.wsml.ParserException
This method takes an rdf graph as input and checks through all the statements, to transform the rdf input into wsmo objects.

Parameters:
graph - RDF Graph, containing all the parsed statements.
namespaces - HashMap containing all the namespaces of the RDF file.
Throws:
org.openrdf.model.GraphException
org.wsmo.common.exception.SynchronisationException
org.wsmo.common.exception.InvalidModelException
org.wsmo.wsml.ParserException

getOntology

public org.omwg.ontology.Ontology getOntology()
This method returns the ontology that results from transforming the rdf statements to a wsmo object model.

Returns:
Ontology, the ontology that results from the parsed rdf file


Copyright © 2004-2008 Ontotext Lab.. All Rights Reserved.