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

JSON support for RML & carml #140

Closed
ktk opened this issue Nov 23, 2022 · 1 comment
Closed

JSON support for RML & carml #140

ktk opened this issue Nov 23, 2022 · 1 comment

Comments

@ktk
Copy link
Member

ktk commented Nov 23, 2022

Right now XRM supports CSV & XML with the generated RML output. JSON is missing.

IMO the only change required for that would be to support JSON as type in XRM and in this case output rml:referenceFormulation ql:JSONPath; in the generated RML or carml dialect.

Instead of XPath like in JSON we would use JSONpath but they are probably handled completely transparent from an XRM point of you. So my guess is there is no change needed for that?

@mchlrch
Copy link
Member

mchlrch commented Feb 9, 2023

Resolved, xrm version 1.3.0 supports mapping of JSON source

Sample source definition in XRM:

logical-source characters {
	type json
	source "characters.json"
	iterator "$.characters[*]"

	referenceables
		id
		firstname
		lastname
		hair
}

Generated rml:logicalSource:

	rml:logicalSource [
		rml:source "characters.json";
		rml:referenceFormulation ql:JSONPath;
		rml:iterator "$.characters[*]"
	];

@mchlrch mchlrch closed this as completed Feb 9, 2023
@mchlrch mchlrch transferred this issue from zazuko/expressive-rdf-mapper Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants