in core/src/main/java/org/apache/sdap/mudrod/ontology/pre/AggregateTriples.java [158:196]
private void getAllClass() throws IOException {
List<?> classElements = rootNode.getChildren("Class", Namespace.getNamespace("owl", owl_namespace));
for (Object classElement1 : classElements) {
Element classElement = (Element) classElement1;
String className = classElement.getAttributeValue("about", Namespace.getNamespace("rdf", rdf_namespace));
if (className == null) {
className = classElement.getAttributeValue("ID", Namespace.getNamespace("rdf", rdf_namespace));
}
List<?> subclassElements = classElement.getChildren("subClassOf", Namespace.getNamespace("rdfs", rdfs_namespace));
for (Object subclassElement1 : subclassElements) {
Element subclassElement = (Element) subclassElement1;
String subclassName = subclassElement.getAttributeValue("resource", Namespace.getNamespace("rdf", rdf_namespace));
if (subclassName == null) {
Element allValuesFromEle = findChild("allValuesFrom", subclassElement);
if (allValuesFromEle != null) {
subclassName = allValuesFromEle.getAttributeValue("resource", Namespace.getNamespace("rdf", rdf_namespace));
OSW.write(cutString(className) + ",SubClassOf," + cutString(subclassName) + "\n");
}
} else {
OSW.write(cutString(className) + ",SubClassOf," + cutString(subclassName) + "\n");
}
}
List equalClassElements = classElement.getChildren("equivalentClass", Namespace.getNamespace("owl", owl_namespace));
for (Object equalClassElement1 : equalClassElements) {
Element equalClassElement = (Element) equalClassElement1;
String equalClassElementName = equalClassElement.getAttributeValue("resource", Namespace.getNamespace("rdf", rdf_namespace));
if (equalClassElementName != null) {
OSW.write(cutString(className) + ",equivalentClass," + cutString(equalClassElementName) + "\n");
}
}
}
}