org.deri.wsmo4j.io.parser.rdf
Class RDFExprParser
java.lang.Object
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
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 |
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
RDFExprParser
public RDFExprParser(org.wsmo.factory.WsmoFactory factory,
org.wsmo.factory.LogicalExpressionFactory leFactory,
org.wsmo.factory.DataFactory dataFactory,
String properties,
String labels,
RDFParseErrorListener errorListener)
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.