How can I programmatically compute path length using Jena RDF/Ontology API?
问题 I have an RDF Graph with only one relationship(RDFS.subClassOf or is-a) between all the classes. The 'size' of each class is equal to the total number of its subclasses. The 'size' of each RDFS.subClassOf property is 0.5 if it is connecting from a class with fewer total number of subclasses and 1 if it is connecting from class with large total number of subclasses to class with less total number of subclasses. I want to perform an arithmetic sum of all the sizes of each semantic component