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

Issue #44 PR #104

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Issue #44 PR #104

wants to merge 4 commits into from

Conversation

Varadinsky
Copy link
Contributor

@Varadinsky Varadinsky commented Oct 16, 2016

Added the namespaces parmeter to as_sparql that accepts either the URI::NamespaceMap object or HASH ref that is then used to create the instance of URI::NamespaceMap inside the method.
#44

Zoran

@kasei
Copy link
Owner

kasei commented Oct 26, 2016

Oh, that's interesting. The tests reveal some unintended serializations coming out of AtteanX::Serializer::SPARQL. The changes here look good, but I'm going to have to think about how to fix the serializer before I'm comfortable merging this.

Thanks!


my $s = do {

if ($args{namespaces} && $self->value->isa('Attean::IRI')) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops. Not all Attean::API::SPARQLSerializable objects will have a value method, so this will crash. I don't think the second part of the if condition is necessary, though, so it could just be if ($args{namespaces}) {...}

@Varadinsky
Copy link
Contributor Author

Varadinsky commented Nov 2, 2016

I see. No probs, let me know when you decide to merge and I will update tests.

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

Successfully merging this pull request may close these issues.

2 participants