/** * * table IRI: * the relative IRI consisting of the percent-encoded form of the table name. * * @return table IRI */ private String getTableIRI(RelationID tableId) { return baseIRI + R2RMLIRISafeEncoder.encode(tableId.getTableName()); }
/** * * table IRI: * the relative IRI consisting of the percent-encoded form of the table name. * * @return table IRI */ private IRI getTableIRI(RelationID tableId) { return rdfFactory.createIRI(baseIRI + R2RMLIRISafeEncoder.encode(tableId.getTableName())); }
private String getReferencePropertyIRI(ForeignKeyConstraint fk) { List<String> attributes = new ArrayList<>(fk.getComponents().size()); for (Component component : fk.getComponents()) attributes.add(R2RMLIRISafeEncoder.encode(component.getAttribute().getID().getName())); return baseIRI + R2RMLIRISafeEncoder.encode(fk.getRelation().getID().getTableName()) + "#ref-" + Joiner.on(";").join(attributes); }
private IRI getReferencePropertyIRI(ForeignKeyConstraint fk) { List<String> attributes = new ArrayList<>(fk.getComponents().size()); for (Component component : fk.getComponents()) attributes.add(R2RMLIRISafeEncoder.encode(component.getAttribute().getID().getName())); return rdfFactory.createIRI(baseIRI + R2RMLIRISafeEncoder.encode(fk.getRelation().getID().getTableName()) + "#ref-" + Joiner.on(";").join(attributes)); }
/** * Generate an URI for datatype property from a string(name of column) The * style should be "baseIRI/tablename#columnname" as required in Direct * Mapping Definition * * A column in a table forms a literal property IRI: * * Definition literal property IRI: the concatenation of: * - the percent-encoded form of the table name, * - the hash character '#', * - the percent-encoded form of the column name. */ private String getLiteralPropertyIRI(Attribute attr) { return baseIRI + R2RMLIRISafeEncoder.encode(attr.getRelation().getID().getTableName()) + "#" + R2RMLIRISafeEncoder.encode(attr.getID().getName()); }
/** * Generate an URI for datatype property from a string(name of column) The * style should be "baseIRI/tablename#columnname" as required in Direct * Mapping Definition * * A column in a table forms a literal property IRI: * * Definition literal property IRI: the concatenation of: * - the percent-encoded form of the table name, * - the hash character '#', * - the percent-encoded form of the column name. */ private IRI getLiteralPropertyIRI(Attribute attr) { return rdfFactory.createIRI(baseIRI + R2RMLIRISafeEncoder.encode(attr.getRelation().getID().getTableName()) + "#" + R2RMLIRISafeEncoder.encode(attr.getID().getName())); }