private String getPriority(LabeledLink link) { if (link instanceof ObjectPropertyLink && ((ObjectPropertyLink)link).getObjectPropertyType() == ObjectPropertyType.Direct) return "0"; else if (link instanceof ObjectPropertyLink && ((ObjectPropertyLink)link).getObjectPropertyType() == ObjectPropertyType.Indirect) return "1"; else if (link instanceof ObjectPropertyLink && ((ObjectPropertyLink)link).getObjectPropertyType() == ObjectPropertyType.WithOnlyDomain) return "2"; else if (link instanceof ObjectPropertyLink && ((ObjectPropertyLink)link).getObjectPropertyType() == ObjectPropertyType.WithOnlyRange) return "2"; else if (link instanceof ObjectPropertyLink && ((ObjectPropertyLink)link).getObjectPropertyType() == ObjectPropertyType.WithoutDomainAndRange) return "3"; else if (link instanceof SubClassLink) return "4"; else return "5"; }
return w; if (link instanceof ObjectPropertyLink && ((ObjectPropertyLink)link).getObjectPropertyType() == ObjectPropertyType.Direct) w = ModelingParams.PROPERTY_DIRECT_WEIGHT; else if (link instanceof CompactObjectPropertyLink && ((CompactObjectPropertyLink)link).getObjectPropertyType() == ObjectPropertyType.Direct) w = ModelingParams.PROPERTY_DIRECT_WEIGHT; else if (link instanceof ObjectPropertyLink && ((ObjectPropertyLink)link).getObjectPropertyType() == ObjectPropertyType.Indirect) w = ModelingParams.PROPERTY_INDIRECT_WEIGHT; else if (link instanceof CompactObjectPropertyLink && ((CompactObjectPropertyLink)link).getObjectPropertyType() == ObjectPropertyType.Indirect) w = ModelingParams.PROPERTY_INDIRECT_WEIGHT; else if (link instanceof ObjectPropertyLink && ((ObjectPropertyLink)link).getObjectPropertyType() == ObjectPropertyType.WithOnlyDomain) w = ModelingParams.PROPERTY_WITH_ONLY_DOMAIN_WEIGHT; else if (link instanceof CompactObjectPropertyLink && ((CompactObjectPropertyLink)link).getObjectPropertyType() == ObjectPropertyType.WithOnlyDomain) w = ModelingParams.PROPERTY_WITH_ONLY_DOMAIN_WEIGHT; else if (link instanceof ObjectPropertyLink && ((ObjectPropertyLink)link).getObjectPropertyType() == ObjectPropertyType.WithOnlyRange) w = ModelingParams.PROPERTY_WITH_ONLY_RANGE_WEIGHT; else if (link instanceof CompactObjectPropertyLink && ((CompactObjectPropertyLink)link).getObjectPropertyType() == ObjectPropertyType.WithOnlyRange) w = ModelingParams.PROPERTY_WITH_ONLY_RANGE_WEIGHT; else if (link instanceof ObjectPropertyLink && ((ObjectPropertyLink)link).getObjectPropertyType() == ObjectPropertyType.WithoutDomainAndRange) w = ModelingParams.PROPERTY_WITHOUT_DOMAIN_RANGE_WEIGHT; else if (link instanceof CompactObjectPropertyLink && ((CompactObjectPropertyLink)link).getObjectPropertyType() == ObjectPropertyType.WithoutDomainAndRange)
writer.name("hNodeId").value( ((DataPropertyOfColumnLink)l).getSpecializedColumnHNodeId()); if (l instanceof ObjectPropertyLink) writer.name("objectPropertyType").value( ((ObjectPropertyLink)l).getObjectPropertyType().toString()); if (l instanceof ObjectPropertySpecializationLink) { writer.name("specializedLink").value(((ObjectPropertySpecializationLink)l).getSpecializedLinkId());
newLinks.add(new ObjectPropertyLink(id, new Label(lf1.getLinkUri()), ((ObjectPropertyLink) link).getObjectPropertyType())); else if (link instanceof SubClassLink) newLinks.add(new SubClassLink(id)); newLinks.add(new ObjectPropertyLink(id, new Label(lf2.getLinkUri()), ((ObjectPropertyLink) link).getObjectPropertyType())); else if (link instanceof SubClassLink) newLinks.add(new SubClassLink(id));
newLink = new DataPropertyLink(newId, label, this.isProvenance); else if (this instanceof ObjectPropertyLink) newLink = new ObjectPropertyLink(newId, label, ((ObjectPropertyLink)this).getObjectPropertyType()); else if (this instanceof SubClassLink) newLink = new SubClassLink(newId);
link = new DataPropertyLink(id, e.getLabel()); else if (e instanceof ObjectPropertyLink) link = new ObjectPropertyLink(id, e.getLabel(), ((ObjectPropertyLink)e).getObjectPropertyType()); else if (e instanceof SubClassLink) link = new SubClassLink(id);