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

Problem with translating references with parentheses to RML #88

Closed
TheRazorace opened this issue Nov 18, 2024 · 1 comment
Closed

Problem with translating references with parentheses to RML #88

TheRazorace opened this issue Nov 18, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@TheRazorace
Copy link
Contributor

References that contain parentheses are not translated correctly to RML.

Example YARRRML mappings:

sources:
  table:
    access: 
      /Users/test.csv
    referenceFormulation: csv
    iterator: $

mappings:
  subjectTM:
    sources:
      - table
    s: $(Team)
    po:
      - p: http://www.wikidata.org/prop/direct/P2048
        o:
          - value: $(Payroll (millions))
            datatype: xsd:float

RML output:

<subjectTM_0> a rr:TriplesMap;

	rml:logicalSource [
		a rml:LogicalSource;
		rml:source "/Users/test.csv";
		rml:referenceFormulation ql:CSV;
		rml:iterator "$"
	];
	rr:subjectMap [
		a rr:SubjectMap;
		rml:reference "Team";
	];
	rr:predicateObjectMap [
		rr:predicateMap [
			a rr:PredicateMap;
			rr:constant <http://www.wikidata.org/prop/direct/P2048>;
		];
		rr:objectMap [
			a rr:ObjectMap;
			rml:reference "Payroll (millions";
			rr:datatype xsd:float
		];
	].
dachafra added a commit that referenced this issue Nov 19, 2024
@dachafra
Copy link
Member

Hi @TheRazorace, I think it's solved in dev. I will merge and create a new version :-)

@dachafra dachafra added the bug Something isn't working label Nov 19, 2024
dachafra added a commit that referenced this issue Nov 19, 2024
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