public class JModel extends Object
Modifier and Type | Field and Description |
---|---|
Set<URI> |
knownProperties |
Constructor and Description |
---|
JModel(JClass root)
the only constructor:
|
Modifier and Type | Method and Description |
---|---|
void |
addInverseProperties()
generates artificial inverse properties, named propertyName + "_Inverse"
TODO read inverse props from OWL, this generates ALL inverse
|
void |
addMapping(Resource id,
JClass jc)
Add a mapping to the JModel
|
void |
addPackage(JPackage jp) |
boolean |
containsJClass(JClass jclass) |
void |
flattenInheritanceHierarchy(JPackage jp)
remove self-references and circles.
|
JClass |
getMapping(Resource resource) |
List<JPackage> |
getPackages() |
JClass |
getRoot() |
boolean |
hasMapping(Object id) |
boolean |
isConsistent()
apply consistency checks to this JModel and all instances of JPackage,
JClass and JProperty in it.
|
void |
materialiseMissingProperties(JPackage jp,
boolean skipbuiltins)
Turn all those "missingProperties" that would have been present via
inheritance from the super-classes, but where the superclass has been
removed by flattening the hierarchy
|
void |
setRoot(JClass root)
Set the root of this JModel
|
String |
toReport() |
String |
toString() |
public JModel(JClass root)
root
- is the root JClass of the new JModelpublic boolean isConsistent()
public String toReport()
public void flattenInheritanceHierarchy(JPackage jp)
jp
- public void addPackage(JPackage jp)
public void addInverseProperties()
public JClass getRoot()
public void addMapping(Resource id, JClass jc)
id
- is a Java Objectjc
- is the JClass in this JModel to which the Java Object should be
mappedpublic JClass getMapping(Resource resource)
resource
- is a Java Objectpublic boolean hasMapping(Object id)
id
- is a Java Objectpublic void setRoot(JClass root)
root
- is the new root JClasspublic boolean containsJClass(JClass jclass)
public void materialiseMissingProperties(JPackage jp, boolean skipbuiltins)
jp
- skipbuiltins
- Copyright © 2005–2016 IT-Consulting Dr. Max V?lkel | Project started at FZI Forschungszentrum Informatik, www.fzi.de. All rights reserved.