Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
tviegut committed Oct 23, 2024
1 parent 4a70c2f commit dc46adf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,7 @@ private Element select(SubTypeNode node) throws SAXException {

private void emit(ElementNode node) throws SAXException {
Element elem;

if (node.isDatatype()) {
OntResource range = node.getBaseProperty().getRange();
if (range == null)
Expand Down
5 changes: 2 additions & 3 deletions CIMUtil/src/au/com/langdale/xmi/Translator.java
Original file line number Diff line number Diff line change
Expand Up @@ -241,16 +241,15 @@ protected FrontsNode renameResource(OntResource r, String l) {
if (r.hasProperty(RDF.type, OWL.Class)) {
if ((r.hasProperty(UML.hasStereotype, UML.datatype) || r.hasProperty(UML.hasStereotype, UML.cimdatatype)
|| r.hasProperty(UML.hasStereotype, UML.primitive))
&& !r.hasProperty(UML.hasStereotype, UML.enumeration)) {
&& !r.hasProperty(UML.hasStereotype, UML.enumeration)) {
FrontsNode x = XSDTypeUtils.selectXSDType(l);
if (x != null) {
OntResource resource = result.createResource(x.toString());
resource.addProperty(UML.primitiveDataType, namespace + l);
return resource;
}
}
OntResource resource = result.createResource(namespace + l);
return resource;
return result.createResource(namespace + l);
}

if (r.hasProperty(RDF.type, OWL.ObjectProperty) || r.hasProperty(RDF.type, OWL.DatatypeProperty)
Expand Down

0 comments on commit dc46adf

Please sign in to comment.