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

Improve SPARQL serialization with support for IRI namespaces #44

Open
kasei opened this issue Dec 27, 2015 · 1 comment
Open

Improve SPARQL serialization with support for IRI namespaces #44

kasei opened this issue Dec 27, 2015 · 1 comment

Comments

@kasei
Copy link
Owner

kasei commented Dec 27, 2015

Allow serializing SPARQL prefix names when a namespace map is passed to Attean::API::SPARQLSerializable->as_sparql.

AtteanX::Serializer::SPARQL may be constructed with a namespaces namespace map attribute (which comes from Attean::API::AbbreviatingSerializer). This will cause IRI tokens to be turned into prefix names during serialization. Based on that functionality, the Attean::API::SPARQLSerializable->as_sparql method should be updated to take a namespace map object (or possibly a hashref), and pass it to the AtteanX::Serializer::SPARQL->new constructor.

This should be a straightforward and simple patch.

@kasei kasei added the cpan-prc label Jan 1, 2016
@kasei
Copy link
Owner Author

kasei commented Jan 12, 2016

Update: #53 made part of this issue redundant. I've updated the issue description, and this comment can now be ignored as well.

Commit 6cd0674 shows how this was done for the Turtle serializer. This can be mimicked in AtteanX::Serializer::SPARQL.

@kasei kasei added the easy label Jan 12, 2016
Varadinsky added a commit to Varadinsky/attean that referenced this issue Oct 16, 2016
@kasei kasei assigned kasei and unassigned kasei Jan 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant