我正在使用OWL API来解析本体,问题是我无法获得“非常好的打印”。的表达方式。例如,给定下一个公理:
// actor class stores general information about an actor in a json file
export class Actor {
name: string;
id: number;
}
// Inherits name and id from Actor
export class MovieCharacter extends Actor {
character: string;
}
我想获得一个更干净的版本,例如:
EquivalentClasses(<http://www.owl-ontologies.com/generations.owl#OffSpring>
ObjectIntersectionOf(<http://www.owl-ontologies.com/generations.owl#Person>
ObjectSomeValuesFrom(<http://www.owl-ontologies.com/generations.owl#hasParent>
<http://www.owl-ontologies.com/generations.owl#Person>)))
我从here得到了示例本体。