|
Alignment API and Server 4.5 (1846M) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.inrialpes.exmo.align.gen.alt.BasicAlterator
public abstract class BasicAlterator
Field Summary | |
---|---|
protected Properties |
alignment
|
protected ClassHierarchy |
classHierarchy
|
protected boolean |
debug
|
protected Alignment |
extractedAlignment
|
protected String |
initOntologyNS
|
protected com.hp.hpl.jena.ontology.OntModel |
modifiedModel
|
protected String |
modifiedOntologyNS
|
Constructor Summary | |
---|---|
BasicAlterator()
|
|
BasicAlterator(Alterator om)
|
Method Summary | |
---|---|
com.hp.hpl.jena.ontology.OntClass |
addClass(com.hp.hpl.jena.ontology.OntClass parentClass,
String name)
|
void |
buildClassHierarchy()
|
com.hp.hpl.jena.ontology.OntModel |
changeDomainRange(HashMap<String,String> uris)
|
com.hp.hpl.jena.ontology.OntModel |
changeNamespace(String ns)
Modifies the namespace of the generated ontology This is the initial implementation. |
com.hp.hpl.jena.ontology.OntModel |
changeNamespace2(String base2)
JE: starting an attempt to do the relocation through String reading and writing: The ideal case is that in the generated files, the namespace appears exactly twice: in xmlns and in xml:base. |
void |
checkClassesRestrictions(com.hp.hpl.jena.ontology.OntClass childClass,
com.hp.hpl.jena.ontology.OntClass parentClass)
|
Alignment |
extractAlignment(String base1,
String base2)
|
Alignment |
getAlignment()
Returns the altered Alignment and Ontology in output form |
String |
getBase()
the namespace of the source ontology in the input alignment |
ClassHierarchy |
getHierarchy()
|
static String |
getLocalName(String uri)
|
com.hp.hpl.jena.ontology.OntModel |
getModifiedModel()
|
com.hp.hpl.jena.ontology.OntModel |
getModifiedOntology()
|
String |
getNamespace()
the namespace of the input ontology |
static String |
getNameSpace(String uri)
|
List<com.hp.hpl.jena.ontology.OntClass> |
getOntologyClasses()
|
List<com.hp.hpl.jena.ontology.OntProperty> |
getOntologyProperties()
|
Properties |
getProtoAlignment()
getProtoAlignment, getProtoOntology, getHierarchy are used for accessing these internal structure at creation time. |
com.hp.hpl.jena.ontology.OntModel |
getProtoOntology()
|
String |
getRandomString()
|
protected void |
initModel(Alterator om)
|
abstract Alterator |
modify(Properties params)
modify applies the alteration to the input (the results are kept in internal structures. |
int[] |
randNumbers(int count,
int numElems)
|
void |
relocateTest(String namespaceNew)
Generates an Alignment from the property list hosting the alignment. |
void |
relocateTest(String base1,
String base2)
Modifies the namespaces of source and target ontologies (for the main purpose of outputing them) |
String |
removeClass(com.hp.hpl.jena.ontology.OntClass cls)
|
void |
renameOntology(com.hp.hpl.jena.ontology.OntModel model,
String oldURI,
String newURI)
Rename the ontology, just in case it does not have the same URI as its content... |
void |
setDebug(boolean d)
|
void |
setModifiedModel(com.hp.hpl.jena.ontology.OntModel model)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean debug
protected ClassHierarchy classHierarchy
protected com.hp.hpl.jena.ontology.OntModel modifiedModel
protected Properties alignment
protected Alignment extractedAlignment
protected String modifiedOntologyNS
protected String initOntologyNS
Constructor Detail |
---|
public BasicAlterator()
public BasicAlterator(Alterator om)
Method Detail |
---|
protected void initModel(Alterator om)
public abstract Alterator modify(Properties params)
Alterator
modify
in interface Alterator
public void setDebug(boolean d)
public com.hp.hpl.jena.ontology.OntModel getModifiedOntology()
getModifiedOntology
in interface Alterator
public void setModifiedModel(com.hp.hpl.jena.ontology.OntModel model)
public com.hp.hpl.jena.ontology.OntModel getModifiedModel()
public ClassHierarchy getHierarchy()
getHierarchy
in interface Alterator
public Properties getProtoAlignment()
Alterator
getProtoAlignment
in interface Alterator
public com.hp.hpl.jena.ontology.OntModel getProtoOntology()
getProtoOntology
in interface Alterator
public String getNamespace()
Alterator
getNamespace
in interface Alterator
public String getBase()
Alterator
getBase
in interface Alterator
public static String getLocalName(String uri)
public static String getNameSpace(String uri)
public String getRandomString()
public int[] randNumbers(int count, int numElems)
public void buildClassHierarchy()
public List<com.hp.hpl.jena.ontology.OntClass> getOntologyClasses()
public List<com.hp.hpl.jena.ontology.OntProperty> getOntologyProperties()
public com.hp.hpl.jena.ontology.OntClass addClass(com.hp.hpl.jena.ontology.OntClass parentClass, String name)
public com.hp.hpl.jena.ontology.OntModel changeDomainRange(HashMap<String,String> uris)
public void checkClassesRestrictions(com.hp.hpl.jena.ontology.OntClass childClass, com.hp.hpl.jena.ontology.OntClass parentClass)
public String removeClass(com.hp.hpl.jena.ontology.OntClass cls)
public Alignment getAlignment()
Alterator
getAlignment
in interface Alterator
public void relocateTest(String namespaceNew)
relocateTest
in interface Alterator
public void relocateTest(String base1, String base2)
Alterator
relocateTest
in interface Alterator
public Alignment extractAlignment(String base1, String base2)
public com.hp.hpl.jena.ontology.OntModel changeNamespace(String ns)
public com.hp.hpl.jena.ontology.OntModel changeNamespace2(String base2)
public void renameOntology(com.hp.hpl.jena.ontology.OntModel model, String oldURI, String newURI)
|
Alignment API and Server 4.5 (1846M) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |