|
Alignment API and Server 4.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.inrialpes.exmo.align.parser.RDFParser
public class RDFParser
Parser for the EDOAL syntax. The reader is Jena, input is an EDOALAlignment The input document format shall be consistent with format document
$Id: RDFParser.java 1412 2010-03-31 13:57:07Z euzenat $
Field Summary | |
---|---|
private EDOALAlignment |
alignment
|
private int |
debug
|
private boolean |
isPattern
|
private static Logger |
logger
|
private static com.hp.hpl.jena.rdf.model.Model |
rDFModel
|
Constructor Summary | |
---|---|
RDFParser()
Creates an RDF Parser. |
|
RDFParser(int debugMode)
Creates an RDF Parser. |
Method Summary | |
---|---|
protected URI |
getNodeId(com.hp.hpl.jena.rdf.model.Resource node)
|
static void |
initSyntax()
Initialisation of the structures This creates an RDF Model which contains all the syntactic elements. |
EDOALAlignment |
parse(File file)
|
EDOALAlignment |
parse(InputStream is)
|
EDOALAlignment |
parse(com.hp.hpl.jena.rdf.model.Model rdfmodel)
Parse the input model. |
EDOALAlignment |
parse(Reader is)
|
EDOALAlignment |
parse(String uri)
|
EDOALAlignment |
parseAlignment(com.hp.hpl.jena.rdf.model.Resource node)
Parses a mapping document. |
protected void |
parseAnnotation(com.hp.hpl.jena.rdf.model.Statement stmt,
EDOALAlignment al)
Parses a given annotaion in the the given node. |
protected EDOALCell |
parseCell(com.hp.hpl.jena.rdf.model.Resource node)
Parses a mapping rule. |
protected ClassExpression |
parseClass(com.hp.hpl.jena.rdf.model.Resource node)
|
protected Expression |
parseExpression(com.hp.hpl.jena.rdf.model.Resource node)
|
protected InstanceExpression |
parseInstance(com.hp.hpl.jena.rdf.model.Resource node)
|
protected Ontology |
parseOntology(com.hp.hpl.jena.rdf.model.Resource node)
Parse an ontology node <onto1> or
<onto2> Node to an Ontology object. |
protected PathExpression |
parsePathExpression(com.hp.hpl.jena.rdf.model.Resource node)
|
protected PropertyExpression |
parseProperty(com.hp.hpl.jena.rdf.model.Resource node)
|
protected RelationExpression |
parseRelation(com.hp.hpl.jena.rdf.model.Resource node)
|
protected ValueExpression |
parseValue(com.hp.hpl.jena.rdf.model.RDFNode node)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static Logger logger
private static com.hp.hpl.jena.rdf.model.Model rDFModel
private int debug
private boolean isPattern
private EDOALAlignment alignment
Constructor Detail |
---|
public RDFParser()
public RDFParser(int debugMode)
debugMode
- The value of the debug modeMethod Detail |
---|
public static void initSyntax()
public EDOALAlignment parse(com.hp.hpl.jena.rdf.model.Model rdfmodel) throws AlignmentException
align
-
AlignmentException
- if there is any exception, throw AlignmentException that include describe infomation
and a caused exception.public EDOALAlignment parse(File file) throws AlignmentException
AlignmentException
public EDOALAlignment parse(Reader is) throws AlignmentException
AlignmentException
public EDOALAlignment parse(InputStream is) throws AlignmentException
AlignmentException
public EDOALAlignment parse(String uri) throws AlignmentException
AlignmentException
public EDOALAlignment parseAlignment(com.hp.hpl.jena.rdf.model.Resource node) throws AlignmentException
<Alignment>
tag.
node
- the alignment resource
AlignmentException
protected Ontology parseOntology(com.hp.hpl.jena.rdf.model.Resource node) throws AlignmentException
<onto1>
or
<onto2>
Node to an Ontology object. The node must
contain the <onto...>
element.
node
- the ontology node
NullPointerException
- if the node is null
AlignmentException
protected EDOALCell parseCell(com.hp.hpl.jena.rdf.model.Resource node) throws AlignmentException
<Cell>
tag.
node
- the <Cell>
tag
AlignmentException
protected Expression parseExpression(com.hp.hpl.jena.rdf.model.Resource node) throws AlignmentException
AlignmentException
protected ClassExpression parseClass(com.hp.hpl.jena.rdf.model.Resource node) throws AlignmentException
AlignmentException
protected PathExpression parsePathExpression(com.hp.hpl.jena.rdf.model.Resource node) throws AlignmentException
AlignmentException
protected PropertyExpression parseProperty(com.hp.hpl.jena.rdf.model.Resource node) throws AlignmentException
AlignmentException
protected RelationExpression parseRelation(com.hp.hpl.jena.rdf.model.Resource node) throws AlignmentException
AlignmentException
protected InstanceExpression parseInstance(com.hp.hpl.jena.rdf.model.Resource node) throws AlignmentException
AlignmentException
protected ValueExpression parseValue(com.hp.hpl.jena.rdf.model.RDFNode node) throws AlignmentException
AlignmentException
protected URI getNodeId(com.hp.hpl.jena.rdf.model.Resource node) throws AlignmentException
AlignmentException
protected void parseAnnotation(com.hp.hpl.jena.rdf.model.Statement stmt, EDOALAlignment al) throws AlignmentException
node
- which is the parent of the annotation nodee
- the tag which contains the annotation.
NullPointerException
- if the node or the element is null
AlignmentException
|
Alignment API and Server 4.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |