|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.interactive_instruments.ShapeChange.Target.Ontology.OntologyModel
public class OntologyModel
Field Summary | |
---|---|
protected String |
backPath
|
protected List<ClassInfo> |
classInfos
|
protected TargetOwlConfiguration |
config
|
protected String |
fileName
|
protected boolean |
finalized
|
protected Set<String> |
globalPropertyNames
|
protected Model |
model
|
protected PackageInfo |
mpackage
|
protected String |
name
|
protected com.hp.hpl.jena.ontology.OntModel |
ontmodel
|
protected com.hp.hpl.jena.ontology.Ontology |
ontology
|
protected Options |
options
|
protected OWLISO19150 |
owliso19150
|
protected String |
path
|
protected String |
prefix
|
protected boolean |
printed
|
protected Map<String,de.interactive_instruments.ShapeChange.Target.Ontology.OntologyModel.OwlProperty> |
properties
|
protected String |
rdfNamespace
|
protected static com.hp.hpl.jena.rdf.model.Model |
refmodel
|
ShapeChangeResult |
result
|
protected String |
targetNamespace
|
Constructor Summary | |
---|---|
OntologyModel(PackageInfo pi,
Model m,
Options o,
ShapeChangeResult r,
String xmlprefix,
OWLISO19150 owliso19150)
|
Method Summary | |
---|---|
protected void |
addAllValuesFrom(com.hp.hpl.jena.ontology.OntClass cls,
PropertyInfo pi,
com.hp.hpl.jena.rdf.model.Property p)
|
void |
addClass(ClassInfo ci)
|
com.hp.hpl.jena.rdf.model.Resource |
addClassDefinition(ClassInfo ci)
|
com.hp.hpl.jena.rdf.model.Resource |
addCodelist(ClassInfo ci)
|
com.hp.hpl.jena.rdf.model.Resource |
addDatatype(ClassInfo ci)
|
com.hp.hpl.jena.rdf.model.Resource |
addEnumeration(ClassInfo ci)
|
com.hp.hpl.jena.rdf.model.Resource |
addFeature(ClassInfo ci)
|
protected void |
addImport(String rdfns,
String uri)
|
com.hp.hpl.jena.rdf.model.Resource |
addInterface(ClassInfo ci)
|
protected void |
addMultiplicity(com.hp.hpl.jena.ontology.OntClass cls,
PropertyInfo pi,
com.hp.hpl.jena.rdf.model.Property p)
|
com.hp.hpl.jena.rdf.model.Resource |
addUnion(ClassInfo ci)
|
static String |
computeBackPath(PackageInfo pi)
|
String |
computeName()
Determines the ontology name of a given package. |
static String |
computePath(PackageInfo pi)
Provides the path (of packages) that leads from the main schema package down to this package. |
void |
finalizeDocument()
|
String |
getBackPath()
|
String |
getCodeNamespace()
|
String |
getFileName()
|
String |
getName()
|
com.hp.hpl.jena.ontology.OntModel |
getOntologyModel()
|
PackageInfo |
getPackage()
|
String |
getPath()
|
String |
getPrefix()
|
String |
getPrefixForCode()
|
String |
getRdfNamespace()
|
com.hp.hpl.jena.rdf.model.Resource |
getResource(ClassInfo ci)
|
protected com.hp.hpl.jena.rdf.model.Property |
mapProperty(PropertyInfo pi)
|
protected com.hp.hpl.jena.rdf.model.Resource |
mapResource(ClassInfo ci,
boolean processMapEntry)
|
protected com.hp.hpl.jena.rdf.model.Resource |
mapTypeResource(PropertyInfo pi)
|
String |
message(int mnr)
This method returns messages belonging to the XML Schema target by their message number. |
protected String |
messageText(int mnr)
This is the message text provision proper. |
static String |
normalizedName(ClassInfo ci)
|
static String |
normalizedName(PackageInfo pi)
Normalizes the name of a package according to the rules in ISO 19150-2owl:ontologyName. |
static String |
normalizedName(PropertyInfo pi)
|
void |
print(String outputDirectory,
ShapeChangeResult r)
|
void |
setupModel()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected com.hp.hpl.jena.ontology.OntModel ontmodel
protected com.hp.hpl.jena.ontology.Ontology ontology
protected static com.hp.hpl.jena.rdf.model.Model refmodel
protected Options options
public ShapeChangeResult result
protected Model model
protected PackageInfo mpackage
protected boolean printed
protected String targetNamespace
protected String name
protected String fileName
protected String rdfNamespace
protected String prefix
protected OWLISO19150 owliso19150
protected boolean finalized
protected String path
protected String backPath
protected List<ClassInfo> classInfos
protected TargetOwlConfiguration config
protected Set<String> globalPropertyNames
protected Map<String,de.interactive_instruments.ShapeChange.Target.Ontology.OntologyModel.OwlProperty> properties
Constructor Detail |
---|
public OntologyModel(PackageInfo pi, Model m, Options o, ShapeChangeResult r, String xmlprefix, OWLISO19150 owliso19150) throws ShapeChangeAbortException
ShapeChangeAbortException
Method Detail |
---|
public String computeName()
OWLISO19150.PARAM_ONTOLOGYNAME_TAGGED_VALUE_NAME
is set and an
according tagged value is set for the package its value is used.OWLISO19150.PARAM_URIBASE
is
set its value is used for constructing the ontologyNameOWLISO19150.RULE_OWL_PKG_PATH_IN_ONTOLOGY_NAME
is in effect, then
the umlPackageName is constructed using the path of the package to the
upmost owner that is in the same targetNamespace - using a combination of
"/" and normalized package names for all parent packages in the same
target namespace; otherwise just the normalized package name is appended
to URIbase as per 19150-2owl:ontologyName.
pi
-
public static String normalizedName(ClassInfo ci)
public static String computePath(PackageInfo pi)
pi
-
normalizedName(PackageInfo)
public static String computeBackPath(PackageInfo pi)
public static String normalizedName(PackageInfo pi)
pi
-
public void setupModel()
public String message(int mnr)
This method returns messages belonging to the XML Schema target by their message number. The organization corresponds to the logic in module ShapeChangeResult. All functions in that class, which require an message number can be redirected to the function at hand.
message
in interface MessageSource
mnr
- Message number
public void finalizeDocument()
finalizeDocument
in interface OntologyDocument
public String getName()
getName
in interface OntologyDocument
public String getRdfNamespace()
getRdfNamespace
in interface OntologyDocument
public String getCodeNamespace()
getCodeNamespace
in interface OntologyDocument
public com.hp.hpl.jena.rdf.model.Resource addFeature(ClassInfo ci)
public com.hp.hpl.jena.rdf.model.Resource addClassDefinition(ClassInfo ci)
protected void addImport(String rdfns, String uri)
protected void addMultiplicity(com.hp.hpl.jena.ontology.OntClass cls, PropertyInfo pi, com.hp.hpl.jena.rdf.model.Property p)
protected void addAllValuesFrom(com.hp.hpl.jena.ontology.OntClass cls, PropertyInfo pi, com.hp.hpl.jena.rdf.model.Property p)
protected com.hp.hpl.jena.rdf.model.Resource mapResource(ClassInfo ci, boolean processMapEntry)
protected com.hp.hpl.jena.rdf.model.Resource mapTypeResource(PropertyInfo pi)
protected com.hp.hpl.jena.rdf.model.Property mapProperty(PropertyInfo pi)
public static String normalizedName(PropertyInfo pi)
public String getFileName()
getFileName
in interface OntologyDocument
public com.hp.hpl.jena.rdf.model.Resource addInterface(ClassInfo ci)
public com.hp.hpl.jena.rdf.model.Resource addDatatype(ClassInfo ci)
public com.hp.hpl.jena.rdf.model.Resource addUnion(ClassInfo ci)
public com.hp.hpl.jena.rdf.model.Resource addCodelist(ClassInfo ci)
public com.hp.hpl.jena.rdf.model.Resource addEnumeration(ClassInfo ci)
public String getPrefix()
getPrefix
in interface OntologyDocument
public String getPrefixForCode()
getPrefixForCode
in interface OntologyDocument
public String getPath()
getPath
in interface OntologyDocument
public String getBackPath()
getBackPath
in interface OntologyDocument
public PackageInfo getPackage()
public com.hp.hpl.jena.ontology.OntModel getOntologyModel()
public void addClass(ClassInfo ci)
addClass
in interface OntologyDocument
public void print(String outputDirectory, ShapeChangeResult r)
print
in interface OntologyDocument
public com.hp.hpl.jena.rdf.model.Resource getResource(ClassInfo ci)
getResource
in interface OntologyDocument
protected String messageText(int mnr)
mnr
- Message number
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |