Mailing list ARC-DEV: Archives

Parsing RDF file locally

From: aatif latif 
Subject: Parsing RDF file locally
Date: Wed, 18 Feb 2009 01:45:17 +0000


--_d17f380e-60c6-4f03-ac63-b19cf5870559_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable



Dear Benjamin

I am relatively new to ARC2 and SPARQL.
I started using ARC2 for parsing an .rdf file.
When I parse .rdf file remotely I am getting the accurate triples.But when =
I try to do this stuff locally from my root drive it is giving me this warn=
ing and yielding nothing.

Here is the Code Snippet:
$parser =3D ARC2::getRDFParser()=3B
$parser->parse("/arc/ldodds-knows.rdf")=3B

Warning:  parse_url(file://) [function.parse-url]: Unable to parse URL in C=
:\arc\ARC2_Reader.php on line 98=20

And will you please provide an example about using this construct to parse =
data.
$parser->parse($base=2C $data)=3B
Sorry these are very basic question but I not able to find enough in docume=
ntation.

Best Regards=20

Aatif Latif

 Read more >>   Options >>    =09
_________________________________________________________________
Get more out of the Web. Learn 10 hidden secrets of Windows Live.
http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!5=
50F681DAD532637!5295.entry?ocid=3DTXT_TAGLM_WL_domore_092008=

--_d17f380e-60c6-4f03-ac63-b19cf5870559_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<style>
..hmmessage P
{
margin:0px=3B
padding:0px
}
body.hmmessage
{
font-size: 10pt=3B
font-family:Verdana
}
</style>
</head>
<body class=3D'hmmessage'>
<br>Dear Benjamin<br><br>I am relatively new to ARC2 and SPARQL.<br>I start=
ed using ARC2 for parsing an .rdf file.<br>When I parse .rdf file remotely =
I am getting the accurate triples.But when I try to do this stuff locally f=
rom my root drive it is giving me this warning and yielding nothing.<br><b>=
<br>Here is the Code Snippet:<br>$parser =3D ARC2::getRDFParser()=3B<br>$pa=
rser-&gt=3Bparse("/arc/ldodds-knows.rdf</b><b>")=3B<br><br>Warning</b>:  pa=
rse_url(file://) [<a href=3D"http://localhost/function.parse-url">function.=
parse-url</a>]: Unable to parse URL in <b>C:\arc\ARC2_Reader.php</b> on lin=
e <b>98</b> <br><br><div>And will you please provide an example about using=
 this construct to parse data.<br><div class=3D"code w95"><pre class=3D"cod=
e">$parser-&gt=3Bparse($base=2C $data)=3B<br></pre></div>Sorry these are ve=
ry basic question but I not able to find enough in documentation.<br><br>Be=
st Regards <br>
<div><strong>Aatif Latif<br></strong></div></div><br><iframe id=3D"AnswersB=
alloonIframe" src=3D"javascript:=3B" style=3D"border: medium none =3B z-ind=
ex: 99998=3B position: absolute=3B width: 490px=3B height: 306px=3B visibil=
ity: hidden=3B background-color: transparent=3B top: 645px=3B left: 76px=3B=
 margin-left: 10px=3B margin-top: 10px=3B"></iframe><div style=3D"width: 49=
0px=3B position: absolute=3B visibility: hidden=3B z-index: 99999=3B text-a=
lign: left=3B top: 645px=3B left: 76px=3B" id=3D"AnswersBalloon"><div class=
=3D"AnswersHeader"><div class=3D"AnswersHeaderInner" id=3D"AnswersHandle0" =
style=3D"cursor: move=3B" handlefor=3D"AnswersBalloon"><div class=3D"Answer=
sHeader1"><a style=3D"float: right=3B" onclick=3D"var ac =3D document.getEl=
ementById('answertipClose')=3B if (ac) ac.innerHTML=3D'close'=3B else windo=
w.status=3D'close'=3B return true=3B"><img id=3D"AnswersCloseImage" style=
=3D"margin-right: 10px=3B position: relative=3B cursor: pointer=3B" alt=3D"=
Close" src=3D"http://www.answers.com/main/images/close.gif" align=3D"top" b=
order=3D"0"></a><a id=3D"AnswertipMore" target=3D"AnswersQueryWindow" oncli=
ck=3D"var ac =3D document.getElementById('answertipClose')=3B if (ac) ac.in=
nerHTML=3D'close'=3B else window.status=3D'close'=3Breturn true=3B" style=
=3D"float: right=3B text-decoration: none=3B visibility: hidden=3B padding-=
right: 10px=3B margin-top: 9px=3B cursor: pointer=3B"><span class=3D"Answer=
sHeader3">&nbsp=3BRead more &gt=3B&gt=3B&nbsp=3B&nbsp=3B</span></a><a id=3D=
"AnswertipOptions" onclick=3D"var ac =3D document.getElementById('answertip=
Close')=3B if (ac) ac.innerHTML=3D'options'=3B else window.status=3D'option=
s'=3Breturn true=3B" style=3D"float: right=3B text-decoration: none=3B padd=
ing-right: 10px=3B margin-top: 9px=3B cursor: pointer=3B"><span class=3D"An=
swersHeader3">&nbsp=3BOptions &gt=3B&gt=3B&nbsp=3B&nbsp=3B</span></a></div>=
<div><a style=3D"float: left=3B cursor: pointer=3B" href=3D"http://www.answ=
ers.com?initiator=3DFFANS"><img id=3D"AnswersLogoImage" style=3D"" alt=3D"V=
isit Answers.com" src=3D"http://www.answers.com/main/images/answers-logo.gi=
f" align=3D"top" border=3D"0"></a></div></div><div id=3D"Answers_frame" cla=
ss=3D"AnswersContentFrame"><table id=3D"Balloontable2" class=3D"donotmoveme=
" style=3D"width: 480px=3B float: left=3B"><tbody><tr><td> <div id=3D"Answe=
rtip" style=3D"overflow: hidden=3B height: 235px=3B width: 473px=3B"></div>=
 <div id=3D"answertipClose" style=3D"display: none=3B"></div></td></tr></tb=
ody></table></div><div class=3D"AnswersFooter" id=3D"Answers_footer"><div s=
tyle=3D"width: 471px=3B height: 22px=3B float: left=3B"><iframe id=3D"Answe=
rsAds" allowtransparency=3D"true" style=3D"border: 0px none =3B padding: 0p=
x=3B width: 100%=3B height: 22px=3B" src=3D"http://www.answers.com/main/tip=
2.jsp?s=3DI%2520am%2520relatively%2520new%2520to%2520%2520&amp=3Bwt=3D1&amp=
=3Bnafid=3D&amp=3Bcobrand=3D" scrolling=3D"no" frameborder=3D"0"></iframe><=
/div>	</div></div><div id=3D"AnswerTipHook" style=3D"background-image: url(=
http://www.answers.com/main/images/hook-bottomL.gif)=3B width: 70px=3B heig=
ht: 29px=3B margin-left: 25px=3B position: relative=3B top: -15px=3B"></div=
></div><br /><hr />Get more out of the Web. Learn 10 hidden secrets of Wind=
ows Live. <a href=3D'http://windowslive.com/connect/post/jamiethomson.space=
s.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=3DTXT_TAGLM_WL_getmore=
_092008' target=3D'_new'>Learn Now</a></body>
</html>=

--_d17f380e-60c6-4f03-ac63-b19cf5870559_--

""" ;
         ns1:returnPath "<aaati_latif@hotmail.com>" ;
         ns1:xOriginalTo "arc-dev@semsol.org" ;
         ns1:deliveredTo "web11p1@p15192371.pureserver.info" ;
         ns1:received """from SNT105-W14 ([65.55.90.9]) by snt0-omc1-s35.snt0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959);
	 Tue, 17 Feb 2009 17:45:16 -0800""" ;
         ns1:messageID "<SNT105-W14C4032CDAA7F91AA48CBA9AB50@phx.gbl>" ;
         ns1:contentType '''multipart/alternative;
	boundary="_d17f380e-60c6-4f03-ac63-b19cf5870559_"''' ;
         ns1:xOriginatingIP "[193.170.224.66]" ;
         ns1:from "aatif latif <aaati_latif@hotmail.com>" ;
         ns1:to "ARC2 Subscription mailing list <arc-dev@semsol.org>" ;
         ns1:subject "Parsing RDF file locally" ;
         ns1:date "Wed, 18 Feb 2009 01:45:17 +0000" ;
         ns1:importance "Normal" ;
         ns1:mIMEVersion "1.0" ;
         ns1:xOriginalArrivalTime "18 Feb 2009 01:45:16.0963 (UTC) FILETIME=[8CAF4F30:01C9916A]" ;
         ns1:xSpamCheckerVersion """SpamAssassin 2.64 (2004-01-11) on 
	p15192371.pureserver.info""" ;
         ns1:xSpamLevel "*" ;
         ns1:xSpamStatus """No, hits=1.1 required=5.0 tests=AWL,HTML_60_70,HTML_MESSAGE,
	HTML_RELAYING_FRAME autolearn=no version=2.64""" ;
         ns1:xUIDL """9`H"!RI'"!EBP"!NR;!!