-
Notifications
You must be signed in to change notification settings - Fork 6
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
Support IRIs but what about double quotes? #41
Comments
Just as a note - I'm a little busy this week and will read this issue carefully only on Friday. |
Sure, take your time, I will deal with the current status in our project first. diff --git a/lib/Serialiser/Ntriples.php b/lib/Serialiser/Ntriples.php
index 4e7a8ab..4db84d8 100644
--- a/lib/Serialiser/Ntriples.php
+++ b/lib/Serialiser/Ntriples.php
@@ -209,7 +209,7 @@ class Ntriples extends Serialiser
*/
protected function serialiseResource($res)
{
- $escaped = $this->escapeString($res);
+ $escaped = NtriplesUtil::escapeIri($res);
if ('_:' == substr($res, 0, 2)) {
return $escaped;
} else { |
Makes a lot of sense to me. The more I look at how it's done now in the easyrdf, the more I think, it's broken :-) When it comes to your Virtuso issue, I'm afraid it's complex. On the normative side the SPARQL specification says:
so basically it can be vendor-specific and you just need to do it in a way your vendor (here Virtuoso) implemented it. |
Any news on your site? |
I am opening an issue because because I would like to first have a small feedback if I am thinking this correctly to not lose too much time here. This is kind of a follow up from #29 where we improved the support for literals and we cleared out a lot about what characters are supported and what are not.
Recently, I had the same issue but for the subject. From what I can read online, the RDF data, support IRIs (Internaltional RIs). That means that IRIs like
http://example.com/person#name="Ηλίας"
is perfectly valid as a resource identifier.2 issues here:
\0x####
version or their\u####
version.either throw an error, or the last one works, but the %22 is not decoded, is passed as is. However, if I am to do this:
I am able to insert the quotes in the database as a normal IRI. Do you have @k00ni any experience with this? Does @zozlak has any experience on how this should be handled?
The text was updated successfully, but these errors were encountered: