On 1/24/13 9:02 AM, Rumi Tsekova wrote:
Hi Yizhen,


Hi all,

I guess it may be a quick question which can be solved by a quick answer.
The problem is that I have a few entity names like
http://yago-knowledge.org/resource/H._L._"Hub"_Hollis_Field

so if i run sparql queries like

Sparql Select * from <yago> where
{<http://yago-knowledge.org/resource/H._L._"Hub"_Hollis_Field> ?a ?b};

It's an instant syntax error. I've tried to escape double quotes using
&quot; %22 and single quotes, none of them work.
Any idea how to correctly escape double quotes? Thanks.

Please try this variant:


SELECT *
FROM <yago>
WHERE
   {
     {`iri('http://yago-knowledge.org/resource/H._L._"Hub"_Hollis_Field')` ?a
?b}
   }


Best Regards,
Rumi Kocis

Live example:

SPARQL Query Results Link:

http://lod.openlinksw.com/sparql?default-graph-uri=&query=SELECT+*%0D%0A%0D%0AWHERE%0D%0A++%7B%0D%0A++++%7B%60iri%28%27http%3A%2F%2Fyago-knowledge.org%2Fresource%2FH._L._%22Hub%22_Hollis_Field%27%29%60+%3Fa+%0D%0A%3Fb%7D%0D%0A++%7D&format=text%2Fhtml&timeout=30000&debug=on

SPARQL Query Definition Link:
http://lod.openlinksw.com/sparql?default-graph-uri=&qtxt=SELECT+*%0D%0A%0D%0AWHERE%0D%0A++%7B%0D%0A++++%7B%60iri%28%27http%3A%2F%2Fyago-knowledge.org%2Fresource%2FH._L._%22Hub%22_Hollis_Field%27%29%60+%3Fa+%0D%0A%3Fb%7D%0D%0A++%7D&format=text%2Fhtml&timeout=30000&debug=on


Kingsley




Yizhen
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
Virtuoso-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/virtuoso-users

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
Virtuoso-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/virtuoso-users




--

Regards,

Kingsley Idehen 
Founder & CEO
OpenLink Software
Company Web: http://www.openlinksw.com
Personal Weblog: http://www.openlinksw.com/blog/~kidehen
Twitter/Identi.ca handle: @kidehen
Google+ Profile: https://plus.google.com/112399767740508618350/about
LinkedIn Profile: http://www.linkedin.com/in/kidehen





Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
Virtuoso-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/virtuoso-users

Reply via email to