From 50000481@plink.cityu.edu.hk Tue Sep 12 11:59:26 2000 Received: from plink2.cityu.edu.hk (carol.cityu.edu.hk [144.214.5.208]) by swi.psy.uva.nl (8.9.3/8.9.3) with ESMTP id LAA18287 for ; Tue, 12 Sep 2000 11:59:24 +0200 (MET DST) Received: from ceciserver (cpct78.cityu.edu.hk) by plink2.cityu.edu.hk (Sun Internet Mail Server sims.3.5.1999.03.02.17.58.p5) id <0G0R00201QCXU9@plink2.cityu.edu.hk> for prolog@swi.psy.uva.nl; Tue, 12 Sep 2000 17:58:09 +0800 (HKT) Received: from ceciserver (cpct78.cityu.edu.hk) by plink2.cityu.edu.hk (Sun Internet Mail Server sims.3.5.1999.03.02.17.58.p5) with SMTP id <0G0R00KSBQCWXE@plink2.cityu.edu.hk> for prolog@swi.psy.uva.nl; Tue, 12 Sep 2000 17:58:08 +0800 (HKT) Date: Tue, 12 Sep 2000 17:59:50 +0800 From: Cecilia Wong <50000481@plink.cityu.edu.hk> Subject: about using assert_list in parsing RDF To: prolog@swi.psy.uva.nl Message-id: <000c01c01ca0$30a21e90$4e14d690@cityu.edu.hk> MIME-version: 1.0 X-Mailer: Microsoft Outlook Express 5.50.4133.2400 Content-type: MULTIPART/ALTERNATIVE; BOUNDARY="Boundary_(ID_2LSXriQ9LcitNptFIgSxcw)" X-MSMail-Priority: Normal X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Priority: 3 This is a multi-part message in MIME format. --Boundary_(ID_2LSXriQ9LcitNptFIgSxcw) Content-type: text/plain; charset="big5" Content-transfer-encoding: quoted-printable Hi, I am trying to use the RDF parser to parse a rdf file which is quite = long. I have managed to get rid of any error message, that I supposed = to be successfully parsed my data. However, the returning triple list is = truncated with something like, "rdf(..., ..., ...)|...] at the end of = the list. Does anyone have an idea how can I redirect the resulting = triples list into another text file? Can the example, "assert_list([]). assert_list([H|T]) :- assert(H), assert_list(T)." be used in my case. Sorry, I am just getting started with it and I'm not = so familiarized with Prolog. So, I am not sure if I can make use with = the example to deal with my problem and where to put into those lines of = the example? Thank you very much in advance! Cecilia =20 --Boundary_(ID_2LSXriQ9LcitNptFIgSxcw) Content-type: text/html; charset="big5" Content-transfer-encoding: quoted-printable
Hi,
 
    I am trying to use = the RDF=20 parser to parse a rdf file which is quite long.  I have managed to = get rid=20 of any error message, that I supposed to be successfully = parsed my=20 data. However, the returning triple list is truncated with something = like,=20 "rdf(..., ..., ...)|...] at the end of the list. Does anyone have = an idea=20 how can I redirect the resulting triples list into = another text=20 file?  Can the example,
"assert_list([]).
assert_list([H|T]) = :-
 assert(H),
 assert_list(T)."
be used in my case. Sorry, I am just = getting=20 started with it and I'm not so familiarized with Prolog. So, I am not=20 sure if I can make use with the example to deal with my problem and = where=20 to put into those lines of the example?  Thank you very much = in=20 advance!
 
Cecilia

 
--Boundary_(ID_2LSXriQ9LcitNptFIgSxcw)--