Skip to content

Commit

Permalink
Fixed generating URL from csvw:propertyURL
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew-Kulich committed Aug 8, 2022
1 parent a20a23b commit 641fd7e
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ ExecutionContext executeSelf() {
columns.add(columnResource);

if (hasTableSchema){
Column schemaColumn = getColumnFromTableSchema(columnTitle, inputTableSchema);
Column schemaColumn = getColumnFromTableSchema(columnName, inputTableSchema);
schemaColumns.add(schemaColumn);
if (schemaColumn == null) {
String mergedMsg = mainErrorMsg + "\n" +
Expand Down Expand Up @@ -258,11 +258,11 @@ ExecutionContext executeSelf() {


String columnPropertyUrl = null;
if (hasTableSchema && schemaColumns.get(j).getProperty() != null) {
columnPropertyUrl = schemaColumns.get(j).getProperty();
if (hasTableSchema && schemaColumns.get(j).getPropertyUrl() != null) {
columnPropertyUrl = schemaColumns.get(j).getPropertyUrl();
outputModel.add(
columnResource,
CSVW.extendedPropertyUrl,
CSVW.propertyUrl, // TODO: csvw-e:property
outputModel.createTypedLiteral(columnPropertyUrl, CSVW.uriTemplate)
);
}
Expand Down

0 comments on commit 641fd7e

Please sign in to comment.