l = new ColumnSubClassLink(id); } else if (type == LinkType.DataPropertyLink) { l = new DataPropertyLink(id, label); } else if (type == LinkType.DataPropertyOfColumnLink) { l = new DataPropertyOfColumnLink(id, hNodeId, specializedLinkId);
public DataPropertyLink addDataPropertyLink(Node source, Node target, Label label, boolean isProvenance) { String id = LinkIdFactory.getLinkId(label.getUri(), source.getId(), target.getId()); DataPropertyLink link = new DataPropertyLink(id, label, isProvenance); if (this.graphBuilder.addLink(source, target, link)) return link; return null; }
HashMap<String, Label> linkList = ontMgr.getDataProperties(); for(Label label : linkList.values()) { properties.add(new DataPropertyLink(label.getUri(), label)); properties.add(new DataPropertyLink(label.getUri(), label)); Map<String, Label> linkList = ontMgr.getObjectPropertiesByDomainRange(domainURI, rangeURI, true); for(Label label : linkList.values()) { properties.add(new DataPropertyLink(label.getUri(), label)); properties.add(new DataPropertyLink(label.getUri(), label));
LabeledLink link = new DataPropertyLink(linkId, new Label(propertyUri)); if (!this.graphBuilder.addLink(source, target, link)) continue;;
LabeledLink link = new DataPropertyLink(linkId, new Label(propertyUri)); if (!this.graphBuilder.addLink(source, target, link)) continue;;
else { Label label = this.ontologyManager.getUriLabel(propertyUri); link = new DataPropertyLink(linkId, label);
DataPropertyLink link = new DataPropertyLink(linkId, new Label(incomingLink.getLabel())); this.graphBuilder.addLink(m, newNode, link, ModelingParams.PATTERN_LINK_WEIGHT); matches.add(newNode);
else { Label label = this.ontologyManager.getUriLabel(propertyUri); link = new DataPropertyLink(linkId, label);
Label label = this.getLabel(); if (this instanceof DataPropertyLink) newLink = new DataPropertyLink(newId, label, this.isProvenance); else if (this instanceof ObjectPropertyLink) newLink = new ObjectPropertyLink(newId, label, ((ObjectPropertyLink)this).getObjectPropertyType());
String id = LinkIdFactory.getLinkId(e.getLabel().getUri(), n1.getId(), n2.getId()); if (e instanceof DataPropertyLink) link = new DataPropertyLink(id, e.getLabel()); else if (e instanceof ObjectPropertyLink) link = new ObjectPropertyLink(id, e.getLabel(), ((ObjectPropertyLink)e).getObjectPropertyType());