Skip to content

Invalid result when using rr:template if the column name is a substring of the template URI #39

@HueyNemud

Description

@HueyNemud

Hi

Take for instance this mapping :

map:Person
  rr:logicalTable [ rr:sqlQuery """
		SELECT foo from foobar
	""" ];

  rr:subjectMap [
    rr:template 'http://someurlthatcontainsfoo/{"foo"}';
    rr:class foaf:Person;
  ];
.

with table foobar :
| foo |
| 1 |

The generated URI will be <1> instead of <http://some/uri/that/contains/foo/1>

But with <http://someurithatdoesnotcontains/{"foo"}> the result is correct (i.e. <http://someurithatdoesnotcontains/1>)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions