de.fuberlin.wiwiss.semmf.descr
Class MatchingDescriptionReader

java.lang.Object
  extended by de.fuberlin.wiwiss.semmf.descr.MatchingDescriptionReader

public abstract class MatchingDescriptionReader
extends java.lang.Object

This class reads a matching description from an RDF-file and returns a GraphMatchingDescription object. NOTE: This class does not validate the correctness of the matching description. I hope I can add this in the future.

Version:
1.1 last modified on 29.11.2006
Author:
Radoslaw Oldakowski

Constructor Summary
MatchingDescriptionReader()
           
 
Method Summary
static GraphMatchingDescription read(java.lang.String mdURL, java.lang.String lang)
          Reads a matching description
private static ClusterMatchingDescription readCMD(com.hp.hpl.jena.rdf.model.Model m, com.hp.hpl.jena.rdf.model.Resource cmdJ)
           
private static NodeMatchingDescription readNMD(com.hp.hpl.jena.rdf.model.Model m, com.hp.hpl.jena.rdf.model.Resource nmdJ)
           
private static PropertyMatchingDescription readPMD(com.hp.hpl.jena.rdf.model.Model m, com.hp.hpl.jena.rdf.model.Resource pmdJ)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MatchingDescriptionReader

public MatchingDescriptionReader()
Method Detail

read

public static GraphMatchingDescription read(java.lang.String mdURL,
                                            java.lang.String lang)
Reads a matching description

Parameters:
mdURL - location of the RDF representation of a matching description
lang - - serialization language: "RDF/XML" or "N3"
Returns:
SemMF internal representation of a matching description.

readCMD

private static ClusterMatchingDescription readCMD(com.hp.hpl.jena.rdf.model.Model m,
                                                  com.hp.hpl.jena.rdf.model.Resource cmdJ)

readNMD

private static NodeMatchingDescription readNMD(com.hp.hpl.jena.rdf.model.Model m,
                                               com.hp.hpl.jena.rdf.model.Resource nmdJ)

readPMD

private static PropertyMatchingDescription readPMD(com.hp.hpl.jena.rdf.model.Model m,
                                                   com.hp.hpl.jena.rdf.model.Resource pmdJ)