Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve prefixes in the generation of SubjectMap #68

Closed
marioscrock opened this issue Jul 18, 2023 · 1 comment
Closed

Resolve prefixes in the generation of SubjectMap #68

marioscrock opened this issue Jul 18, 2023 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@marioscrock
Copy link

Describe the bug
Considering a SubjectMap s: ex:person/$(firstname) and a prefix ex, the prefix is not resolved when generating the SubjectMap.

To Reproduce
Use this mapping file

prefixes:
  ex: "http://example.com/"

mappings:
  person:
    sources:
      - ['persons.json~jsonpath', '$.persons[*]']
    s: ex:person/$(firstname)
    po:
      - [a, foaf:Person]

Expected behavior
In the SubjectMap generated the ex: is resolved as http://example.com/.

rr:subjectMap [
		a rr:SubjectMap;
		rr:template "http://example.com/person/{firstname}";
	];
@dachafra dachafra added the bug Something isn't working label Jul 18, 2023
@dachafra dachafra added this to the v2.0 milestone Jul 18, 2023
@dachafra
Copy link
Member

Sorry for the late fix, but now prefixes are substituted in any TermMap with reference and prefixes.

dachafra added a commit that referenced this issue Dec 19, 2023
dachafra added a commit that referenced this issue Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants