RDFSNamedClass category = icdContentModel.getICDCategory("http://who.int/icd#H34.2");
System.out.println("\n" + category.getBrowserText());
Collection<RDFResource> linearizationSpecs = icdContentModel.getLinearizationSpecifications(category);
for (RDFResource linearizationSpec : linearizationSpecs) {
RDFResource linearization = (RDFResource) linearizationSpec.getPropertyValue(icdContentModel.getLinearizationViewProperty());
RDFSNamedClass linearizationParent = (RDFSNamedClass) linearizationSpec.getPropertyValue(icdContentModel.getLinearizationParentProperty());
Boolean isIncludedInLinearization = (Boolean) linearizationSpec.getPropertyValue(icdContentModel.getIsIncludedInLinearizationProperty());
String linSortingLabel = (String) linearizationSpec.getPropertyValue(icdContentModel.getLinearizationSortingLabelProperty());
System.out.println("Linearization: " + linearization.getBrowserText() +
"; is included: " + (isIncludedInLinearization == null ? "(not specified)" : isIncludedInLinearization) +
"; linearization parent: " + linearizationParent.getBrowserText() +
"; linearization sorting label: " + (linSortingLabel == null ? "(not specified)" : linSortingLabel));
}
}